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

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

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

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

Total Tickets Placed:20

Total Tickets Won:5

No Match:15

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

--}}
@php @$tickets = App\Models\Ticket::orderBy('created_at', 'asc') ->where('user_id', Auth::user()->id) ->distinct('game_id') ->get(); $games = []; foreach ($tickets as $ticket) { $game = App\Models\GameDetail::find($ticket->game_id); if ($game) { $games[] = $game; } } $uniqueGameIds = collect($games)->unique('id'); foreach ($uniqueGameIds as $game) { echo $game->id; } @$lastTicket = App\Models\Ticket::latest()->first(); @$ticket_sequences_new = App\Models\TicketSequence::where('ticket_id', $lastTicket->id)->get(); @$totalPairs = $ticket_sequences_new->count() @endphp
@foreach ($uniqueGameIds as $game)

Checking
Numbers
6
Loss
Won
@endforeach
{{--
Checking
Numbers
23 8 45 42 50 47 5
Loss
Won
Checking
Numbers
23 8 45 42 50 47 5
Loss
Won
Checking
Numbers
23 8 45 42 50 47 5
Loss
Won
--}}
{{--

Ticket No:

57576575654654

25th December 2022
Active
--}} {{--

Ticket No:

57576575654654

25th December 2022
Active
--}} {{--

Ticket No:

57576575654654

25th December 2022
Active
--}}
@endsection