@extends('admin.layouts.app') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
TICKET PREVIEW
Code : {{ $ticket->id }}

Draw Date and Time : {{ $game->game_draw_date }}

Customer Name : {{ getUserNameById($ticket->user_id) }}

Customer Phone No : {{ getUserPhoneNumberById($ticket->user_id) }}

@php $matchedAmounts = []; @endphp @for ($i = 0; $i < count($ticket_sequence); $i += 6)
TICKET NO :
    @for ($j = $i; $j < min($i + 6, count($ticket_sequence)); $j++)
  • @endfor
@php $countStatusOne = 0; // Initialize the count variable @endphp @for ($j = $i; $j < min($i + 6, count($ticket_sequence)); $j++) @if($ticket_sequence[$j]->status == 1) {{-- Add any logic or display for status 1 records here --}} @php $countStatusOne++; // Increment the count for each status 1 record @endphp @endif @endfor {{--

Total Count: {{ $countStatusOne }}

--}} @if($countStatusOne > 0) @foreach ($result_check as $result) @if ($result->number_range == $countStatusOne)

{{ $result->description }}

@php $matchedAmounts[] = $result->amount; @endphp {{-- Add any logic or display for the matching result_check here --}} @endif @endforeach @else

Sorry No number matched. You Lost !

@endif
@php $totalAmount = array_sum($matchedAmounts); @endphp
{!! QrCode::size(150)->generate(route('print-qr.ticket', $ticket->id)) !!}
@endfor
DRAW PRIZES
@if(!empty($result_check)) @foreach ($result_check as $result) @endforeach @else No Result Found @endif
Number Amount Description
{{ $result->number_range }} {{ $result->amount }} {{ $result->description }}
RESULTS
@if($game->result_publish != 1) @else
Winning Number
    @foreach ($winning_numbers as $win)
  • @endforeach
{{-- "JACK POT - You Win." --}} @if($ticket->claimed == 1) Amount Claimed @else @if($totalAmount>0) Claim Amount @endif @endif
@endif
@push('scripts') @endpush @endsection