@extends('doctor.layouts.app') @section('content') {{-- Logo Marquee --}} @include('doctor.logos')
{{-- Tabs --}}
{{-- UPCOMING --}}
@foreach ($matches as $match)
{{-- Background layers --}}
{{-- Top: match type + predicted badge --}}
{{ $match->match_type }} @if(App\Models\Prediction::where('match_id', $match->match_id) ->where('doctor_id', Auth::guard('enroll_doctor')->user()->doctorid) ->exists()) ✓ Predicted @endif
{{-- Teams --}}
{{-- Home team --}}
{{ str_ireplace('RCBW', 'RCB', $match->mt1shortname) }}
{{ $match->team_1}}
{{-- Center: VS + time --}}
VS
@if($match->match_started) LIVE @else {{ date('h:i A', strtotime($match->date_time_gmt.' +5 hours 30 minutes')) }} @endif
{{ date('d M Y', strtotime($match->date_time_gmt.' +5 hours 30 minutes')) }}
{{-- Away team --}}
{{ str_ireplace('RCBW', 'RCB', $match->mt2shortname) }}
{{ $match->mt2teamname ?? $match->team_2 }}
{{-- Footer --}}
@endforeach
{{-- LIVE --}}
@if($livematches->count()) @foreach ($livematches as $match)
{{-- Background layers --}}
{{-- Top: match type + predicted badge --}}
{{ $match->match_type }} @if(App\Models\Prediction::where('match_id', $match->match_id) ->where('doctor_id', Auth::guard('enroll_doctor')->user()->doctorid) ->exists()) ✓ Predicted @endif
{{-- Teams --}}
{{-- Home team --}}
{{ $match->mt1shortname }}
{{ $match->team_1}}
{{-- Center: VS + time --}}
VS
@if($match->match_started) LIVE @else {{ date('h:i A', strtotime($match->date_time_gmt.' +5 hours 30 minutes')) }} @endif
{{ date('d M Y', strtotime($match->date_time_gmt.' +5 hours 30 minutes')) }}
{{-- Away team --}}
{{ $match->mt2shortname }}
{{ $match->mt2teamname ?? $match->team_2 }}
{{-- Footer --}}
@endforeach @else

No Live Match Right Now

@endif
{{-- END --}}
@foreach ($endmatches as $match)
{{-- Background layers --}}
{{-- Top: match type + predicted badge --}}
{{ $match->match_type }} @if(App\Models\Prediction::where('match_id', $match->match_id) ->where('doctor_id', Auth::guard('enroll_doctor')->user()->doctorid) ->exists()) ✓ Predicted @endif
{{-- Teams --}}
{{-- Home team --}}
{{ $match->mt1shortname }}
{{ $match->team_1}}
{{-- Center: VS + time --}}
VS
ENDED
{{ date('d M Y h:i A', strtotime($match->date_time_gmt.' +5 hours 30 minutes')) }}
{{-- Away team --}}
{{ $match->mt2shortname }}
{{ $match->mt2teamname ?? $match->team_2 }}
{{-- Footer --}}
@endforeach
@endsection