{{-- Prediction --}}
| Doctor |
Winner |
Batsman |
Batsman Score |
Bowler |
Bowler Wicket |
@foreach($prediction as $p)
| {{ $p->doctorname }} |
{{ $p->winner }} |
{{ $p->top_batter }} |
{{ $p->top_batter_score }} |
{{ $p->top_bowler }} |
{{ $p->top_bowler_wicket }} |
@endforeach
{{-- Scoreboard --}}
@foreach([$match->mt1id, $match->mt2id] as $team)
@php
$teamId = $team;
$opponentTeamId = $teamId == $match->mt1id ? $match->mt2id : $match->mt1id;
$teamname = App\Models\MatchTeam::find($teamId)->teamname;
$score = App\Models\Scorecard::where('match_id',$match->match_id)
->where('team_name',$teamname." Inning 1")->first();
@endphp
@if($score)
{{ $teamname }} Inning
{{ $score->runs }}-{{ $score->wickets }} / {{ $score->overs }} Ov
| Batsman |
R |
B |
4s |
6s |
@foreach($batsmens->where('team_id',$teamId) as $b)
| {{ $b->name }} |
{{ $b->runs }} |
{{ $b->balls }} |
{{ $b->fours }} |
{{ $b->sixes }} |
@endforeach
| Bowler |
O |
M |
W |
R |
@foreach($bowlers->where('team_id',$opponentTeamId) as $bw)
| {{ $bw->name }} |
{{ $bw->overs }} |
{{ $bw->maidens }} |
{{ $bw->wickets }} |
{{ $bw->runs_conceded }} |
@endforeach
@endif
@endforeach
{{-- Winner --}}
| Rank |
User |
Points |
@foreach($dailyWinners as $i => $u)
| #{{ $i+1 }} |
@if($i==0) 🥇
@elseif($i==1) 🥈
@elseif($i==2) 🥉
@endif
{{ $u->doctorname }}
|
{{ $u->total_points }} |
@endforeach