@if (!$pageStatus || Auth::user()->id != 1)
@foreach ($lotteryType as $typeVal)
@php
$topTrClasss = 'table-success';
if(strpos($typeVal->type, '2 ตัว') !== false){
$topTrClasss = 'table-warning';
}else if(strpos($typeVal->type, '4 ตัว') !== false){
$topTrClasss = 'table-grey';
}
@endphp
| {{ $typeVal->type }} |
ยอดแทง |
@endforeach
@foreach ($lotteryType as $typeVal)
|
ยอดรวม
|
@if (isset($sumByType[$typeVal->type]))
{{ number_format($sumByType[$typeVal->type], 2) }}
@else
0.00
@endif
|
@endforeach
@for ($i = 0; $i < $maxCount; $i++)
@foreach ($lotteryType as $typeVal)
@php
$topTrClasss = 'table-success';
if(strpos($typeVal->type, '2 ตัว') !== false){
$topTrClasss = 'table-warning';
}else if(strpos($typeVal->type, '4 ตัว') !== false){
$topTrClasss = 'table-grey';
}
@endphp
@if (isset($render[$typeVal->type][$i]))
@php
if($render[$typeVal->type][$i]['red'])
{
$topTrClasss = 'table-danger-more text-dark';
}
$toadClass = '';
$toadAttr = '';
if(isset($render[$typeVal->type][$i]['toad']))
{
$toadClass = 'toadDetail';
$toadAttr = 'data-toad='.$render[$typeVal->type][$i]['toad'];
// dd($toadAttr);
}
@endphp
|
{{ $i }}
|
{{ $render[$typeVal->type][$i]['number'] }}
|
{{ number_format($render[$typeVal->type][$i]['amount'], 2) }}
|
@else
-
|
-
|
-
|
@endif
@endforeach
@endfor
@else
ระบบกำลังดึงผลรางวัลอัตโนมัติ...
@endif