@extends('layouts.master') @section('title') LT-99 :: จัดการตั๋ว @endsection @section('customStyle') @endsection @section('sub_title') จัดการตั๋ว @endsection @section('content')

ตั้งค่าการปริ้นท์

ยอดแทง: 0.00 THB ส่วนลด: 0.00 THB สุทธิ: 0.00 THB ยอดถูก: 0.00 THB ยอดถูกสุทธิ: 0.00 THB
@php $betAmount = 0; $betDiscount = 0; $betSummary = 0; $betReward = 0; $betTotal = 0; $n = 0; @endphp @if ($records->count()) @foreach ($records as $key => $item) @php $n++; if ($item->status !== App\Bill::STATUS_CANCELLED){ $betAmount += $item->amount; $betDiscount += $item->discount; $betSummary += $item->payment; } foreach ($item->bet as $bet) { if (isset($bet['won']) && $bet['won'] !== false) { $betReward += $bet['won']; } } @endphp prize_payment_status === App\Bill::PRIZE_PAYMENT_COMPLETED) hidden @endif data-bill-id="{{ $item->bill_id }}" data-country="{{ $item->country }}" data-lottery-round-id="{{ $item->lotteryRound->id }}" data-status="{{ $item->status }}" data-bet="{{ json_encode($item->bet, JSON_UNESCAPED_UNICODE) }}" > @if ($n == $records->count()) @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->user->username }} {{ $item->phone }} {{ billStatus($item)['text'] }} {{ number_format($item->amount, 2) }} THB -{{ number_format($item->discount, 2) }} THB {{ number_format($item->payment, 2) }} THB @if ($item->lotteryRound->status) เพิ่มตั๋ว @endif
ไม่พบข้อมูล
@endsection @section('scripts') @endsection