@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
@for ($i = 0; $i < count($ticket_sequence); $i += 6)
Your Number @for ($j = $i; $j < min($i + 6, count($ticket_sequence)); $j++) {{ $ticket_sequence[$j]->winning_sequence }} @endfor
Winning Number @for ($j = $i; $j < min($i + 6, count($ticket_sequence)); $j++) @if($ticket_sequence[$j]->status == 1) {{ $ticket_sequence[$j]->winning_sequence }} @else {{ $ticket_sequence[$j]->winning_sequence }} @endif @endfor

Draw Prize

@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 }}

{{-- Add any logic or display for the matching result_check here --}} @endif @endforeach @else

Sorry No number matched. You Lost !

@endif
@endfor
@endsection