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

{{ Auth::user()->name }}

{{ Auth::user()->country_code }} {{ Auth::user()->phone }}

{{ Auth::user()->email }}

Total Tickets Placed:{{ @$total_ticket ? $total_ticket : 0 }}

Total Tickets Won: {{ @$wonTicketsCount ? $wonTicketsCount : 0 }}

No Match:{{ @$lostTicketsCount ? $lostTicketsCount : 0 }}

{{-- @if(Auth::user()->profile_image) --}} {{-- profile --}} {{-- @else profile profile @endif --}} {{--

{{ Auth::user()->name }}

--}} {{--

Name: {{ Auth::user()->name }}

--}} {{--

{{ Auth::user()->email }}

{{ Auth::user()->country_code }} {{ Auth::user()->phone }}

--}}
TICKET HISTORY WIN TICKETS
@isset($tickets) @php @$ticket_count = count(@$tickets); @endphp @if ($ticket_count > 0) @foreach ($tickets as $ticket) @php $ticket_sequences = App\Models\TicketSequence::where('ticket_detail_id', $ticket->id)->get(); $result_publish = App\Models\ResultPublish::where('game_id', $ticket->game_id)->first(); $result_numbers = App\Models\ResultPublishDetail::where('result_publish_id', $result_publish->id)->get(); $totalMatchingNumbersCount = 0; foreach ($ticket_sequences as $sequence) { $winningNumbers = explode(',', $sequence->winning_sequence); $matchingNumbersCount = 0; foreach ($winningNumbers as $winningNumber) { $matchingNumber = App\Models\WinningNumber::where('number', $winningNumber)->first(); if ($matchingNumber) { $matchingNumbersCount++; } } $totalMatchingNumbersCount += $matchingNumbersCount; } $description = []; $amount = []; foreach($result_numbers as $number){ if($number->number_range == $totalMatchingNumbersCount) { $description[] = $number->description; $amount[] = $number->amount; } } @endphp @endforeach @else @endif @endisset
SL NO Ticket No Ticket Date Draw Date Result Claim Amount Claim Status Action
{{ ++$loop->index }} {{ $ticket->ticket_code }} {{ $ticket->created_at->format('Y-m-d') }} {{ getGameDetailById($ticket->game_id, 'game_draw_date')}} @php $game = getGameDetailById($ticket->game_id, 'result_publish'); @endphp @if ($game == 1) Published @else Waiting @endif @if (count($amount) > 0 && $game == 1) @foreach ($amount as $amnt) $ {{ $amnt }}
@endforeach @elseif (count($amount) == 0 && $game == 1) No Amount Available @else $ 0 @endif
@if ($ticket->is_claimed == 1) Claimed @elseif($ticket->is_claimed == 2) Pending @else Not Applicable @endif @if ($game == 1) @foreach ($amount as $amnt) @if($amnt > 0) @if($ticket->is_claimed == 1) Claimed @elseif($ticket->is_claimed == 2) Claim Requested @else Click To Claim @endif @endif @endforeach @endif
No records found
Total Credits Available : $ {{ @$wallet->amount }}
@if(isset($wallet_transactions)) @if(@$wallet_transactions->count() > 0) @php $count = 1; @endphp @foreach ($wallet_transactions as $transaction) @endforeach
SL NO Amount Type(Credit/Debit) Date Ticket No Claim Status
{{ $count++ }} $ {{ @$transaction->amount }} @if (@$transaction->type == 1) Credit @elseif (@$transaction->type == 2) Debit @else N/A @endif {{ @$transaction->created_at->format('Y-m-d') }} {{ @$transaction->ticket_id }} @if ($transaction->status == 1) Claimed @else -- @endif
{!! $wallet_transactions->links() !!} @else

No records found.

@endif
@endif
@endsection