@extends('doctor.layouts.app') @section('content') @include('doctor.logos')

Predict winners for match?

Earn points to use in the future.
@php $match_time = strtotime($match->date_time_gmt. ' +5 hours 30 minutes'); $time_remaining = $match_time - time(); @endphp
{{ $match->match_type }}
img
{{ $match->team_1 }}

{{ date('h:i A', $match_time) }}

{{ date('d M Y', $match_time) }}
{{ $match->venue }}
img
{{ $match->team_2 }}
@if($time_remaining > 900) @if($prediction)
@csrf @method('POST') @else @csrf @endif
winner == $match->team_1 ? 'checked' : '' }}>
winner == $match->team_2 ? 'checked' : '' }}>
@foreach($players as $player) top_batter == $player->name ? 'checked' : '' }}> @endforeach
@foreach($players as $player) top_bowler == $player->name ? 'checked' : '' }}> @endforeach
@else
Prediction Closed

Your submitted prediction:

  • Predict the Winner Team: {{ $prediction->winner ?? 'N/A' }}
  • Predict the Logo 2 Scorer (Top Batsman who scores Logo 2 ): {{ $prediction->top_batter ?? 'N/A' }}
  • Predict the Score (Runs) of your selected Batsman: {{ $prediction->top_batter_score ?? 'N/A' }}
  • Predict the Logo 2 wicket taker (Top Bowler who takes Logo 2 wickets): {{ $prediction->top_bowler ?? 'N/A' }}
  • Predict the number of Wickets of your selected Bowler: {{ $prediction->top_bowler_wicket ?? 'N/A' }}
@endif
@foreach([$match->mt1id, $match->mt2id] as $team) @php $teamId = $team ?? null; $opponentTeamId = $teamId == $match->mt1id ? $match->mt2id : $match->mt1id; $teamname = App\Models\MatchTeam::where('id',$teamId)->first()->teamname; $score = App\Models\Scorecard::where('match_id',$match->match_id)->where('team_name',$teamname." Inning 1")->first() ?? null; @endphp @if($score)
{{ $teamname." Inning" }} {{$score->runs}}-{{$score->wickets}}/{{$score->overs}} Ov
{{-- Batting Performance --}} @foreach($batsmens->where('team_id', $teamId) as $batsman) @endforeach
Batsman R B 4s 6s
{{ $batsman->name }} {{ $batsman->runs }} {{ $batsman->balls }} {{ $batsman->fours }} {{ $batsman->sixes }}
@foreach($bowlers->where('team_id', $opponentTeamId) as $bowler) @endforeach
Bowler O M W R
{{ $bowler->name }} {{ $bowler->overs }} {{ $bowler->maidens }} {{ $bowler->wickets }} {{ $bowler->runs_conceded }}
@endif @endforeach
@foreach($dailyWinners as $index => $user) @endforeach
Rank User Points
#{{ $index + 1 }} {{ $user->doctorname }} {{ $user->total_points }}
@endsection @section('footers') @endsection