@extends('layouts.app') @section('content')

Match List

{{-- Tabs --}}
{{-- UPCOMING --}}
@foreach ($matches as $match)
{{ $match->match_type }}
{{ $match->mt1shortname }}

{{ $match->match_started ? 'Live' : date('h:i A', strtotime($match->date_time_gmt . ' +5 hours 30 minutes')) }}

{{ date('d M Y, H:i', strtotime($match->date_time_gmt)) }}
View Details
{{ $match->mt2shortname }}
@endforeach
{{-- LIVE --}}
@if($livematches->count() > 0) @foreach ($livematches as $match)
{{ $match->match_type }}
{{ $match->mt1shortname }}

{{ $match->match_ended ? 'ENDED' : 'LIVE' }}

{{ date('d M Y, H:i', strtotime($match->date_time_gmt)) }}
View Details
{{ $match->mt2shortname }}
@endforeach @else

No Live Match Right Now !!

@endif
{{-- END --}}
@foreach ($endmatches as $match)
{{ $match->match_type }}
{{ $match->mt1shortname }}

ENDED

{{ date('d M Y, H:i', strtotime($match->date_time_gmt)) }}
View Details
{{ $match->mt2shortname }}
@endforeach
@endsection