@extends('layouts.master') @section('title') LT-168 :: สรุปผลการแทง @endsection @section('customStyle') @endsection @section('sub_title') รายงานสรุปยอดแทง @endsection @section('content')
@php if($currentRoundStatus){ $badgeText = 'เปิดงวด'; $badgeClass = 'success'; }else{ $badgeText = 'ปิดงวด'; $badgeClass = 'danger'; } @endphp

รายงานสรุปผลการแทง   {{ $badgeText }}

ยอดแทง: {{ $sumAmountFormat['amount'] }} ส่วนลด: {{ $sumAmountFormat['discount'] }} ยอดสุทธิ: {{ $sumAmountFormat['payment'] }} ยอดถูก: {{ $sumAmountFormat['won'] }}
@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 @endforeach @foreach ($lotteryType as $typeVal) @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 @else @endif @endforeach @endfor
{{ $typeVal->type }} ยอดแทง
ยอดรวม @if (isset($sumByType[$typeVal->type])) {{ number_format($sumByType[$typeVal->type], 2) }} @else 0.00 @endif
{{ $render[$typeVal->type][$i]['number'] }} {{ number_format($render[$typeVal->type][$i]['amount'], 2) }} - -
@else



ระบบกำลังดึงผลรางวัลอัตโนมัติ...

@endif
@endsection @section('scripts') @endsection