@extends('layouts.app') @section('content')

CLAIM TICKET WIN AMOUNT

@php $matchedAmounts = []; @endphp @foreach($ticket_sequence as $ticketDetail)
TICKET NO :
    @foreach($ticket_sequence[$loop->index] as $sequence)
  • @endforeach
@php $countStatusOne = 0; // Initialize the count variable for each ticket detail @endphp @foreach($ticket_sequence[$loop->index] as $sequence) @if($sequence->status == 1) {{-- Add any logic or display for status 1 records here --}} @php $countStatusOne++; // Increment the count for each status 1 record @endphp @endif @endforeach @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 numbers matched. You Lost!

@endif
@endforeach
@php $totalAmount = array_sum($matchedAmounts); @endphp
{{ csrf_field() }}
@foreach ($amount as $amnt) @if ($amnt > 0) @else @endif @endforeach
@endsection