@extends('layouts.master') @section('title') LT-168 :: ขึ้นเงิน @endsection @section('customStyle') @endsection @section('sub_title') ขึ้นเงิน @endsection @section('content')

รายการ

ยอดถูก: 0.00 THB ยังไม่ขึ้นเงิน: 0.00 THB ขึ้นเงินแล้ว: 0.00 THB
รอบวันที่ ยอดถูก ยังไม่ขึ้นเงิน ขึ้นเงินแล้ว
@php $rounds = []; $totalPrized = []; $redeemed = []; $unredeemed = []; $n = 0; @endphp @if ($records->count()) @foreach ($records as $key => $item) @php $lotteryRound = $item->lotteryRound; $n++; $billWon = 0; foreach ($item->bet as $bet) { if (isset($bet['won']) && $bet['won'] !== false) { $billWon += $bet['won']; } } if ($billWon) { $rounds[] = $lotteryRound->display_date; $totalPrized[$lotteryRound->display_date] = ($totalPrized[$lotteryRound->display_date] ?? 0) + $billWon; $redeemed[$lotteryRound->display_date] = ($redeemed[$lotteryRound->display_date] ?? 0) + ($item['prize_payment_status'] == 1 ? $billWon : 0); $unredeemed[$lotteryRound->display_date] = ($unredeemed[$lotteryRound->display_date] ?? 0) + (!$item['prize_payment_status'] ? $billWon : 0); } @endphp @if ($n == $records->count()) @php $rounds = array_values(array_unique($rounds)); sort($rounds); @endphp @endif @endforeach @else @endif
วันที่ หวย เลขตั๋ว เบอร์โทร สถานะ ยอดแทง ส่วนลด สุทธิ ยอดถูก ดำเนินการ
{{ THdatetime($item->created_at) }}
IP ADDR: {{ $item->ip_address }}
{{ lotteryName($item->country) }} @if ($item->lotteryRound->round_name)
{{ $item->lotteryRound->round_name }}
@endif
{{ $item->bill_id }} {{ $item->phone }} {{ redeemStatus($item)['text'] }} {{ number_format($item->amount, 2) }} THB -{{ number_format($item->discount, 2) }} THB {{ number_format($item->payment, 2) }} THB {{ number_format($billWon, 2) }} THB
ไม่พบข้อมูล
@endsection @section('scripts') {{-- --}} @endsection