@extends('layouts.app') @section('content')
{{-- Title: --}} {{ @$game->game_title }}
{{-- Draw Date: --}} {{ @$game->game_end_date }} {{ date('h:i A', strtotime($game->game_end_time)) }}
{{ @$game->game_draw_date }} {{ date('h:i A', strtotime($game->game_draw_date)) }} {{-- Ticket Price: $ {{ $game->game_ticket_prize }} --}}
$ 0
{{-- Ticket Price: $ {{ $game->game_ticket_prize }} --}}
@if(@ $game->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
Winning Number
    @foreach ($winning_numbers as $win)
  • @endforeach
{{-- "JACK POT - You Win." --}} @if($ticket->is_claimed == 1) Amount Claimed @else @if($totalAmount>0) Claim Amount @endif @endif
@endsection