@extends('layouts.app') @section('content')
{{-- Title: --}} {{ @$gameDetail->game_title }}
{{-- Draw Date: --}} {{ @$gameDetail->game_end_date }} {{ date('h:i A', strtotime($gameDetail->game_end_time)) }}
{{ @$gameDetail->game_draw_date }} {{ date('h:i A', strtotime($gameDetail->game_draw_date)) }} {{-- Ticket Price: $ {{ $gameDetail->game_ticket_prize }} --}}
{{-- Time: --}}
{{-- @if($gameDetail->result_publish == 1) Result Published @else Wait For Result @endif --}}
@if(@ $gameDetail->featured_image) @else @endif
@php $matchedAmounts = []; @endphp @for ($i = 0; $i < count($ticket_sequences_new); $i += 6)
TICKET NO :
    @for ($j = $i; $j < min($i + 6, count($ticket_sequences_new)); $j++)
  • @endfor
@php $countStatusOne = 0; // Initialize the count variable @endphp @for ($j = $i; $j < min($i + 6, count($ticket_sequences_new)); $j++) @if($ticket_sequences_new[$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
@endsection