{{-- START OF CHANGE 1: Add a descriptive title for the page --}}

My Placed Bets

Here are all the events you've placed a bet on.

{{-- END OF CHANGE 1 --}}
{{--
--}}
@forelse($events as $event)
@if($event->image) {{ $event->title }} @else
@endif
{{-- START OF CHANGE 2: Add the "Bet Placed" indicator --}} @if($event->bets->isNotEmpty())
Bet Placed
@endif {{-- END OF CHANGE 2 --}}
{{ $event->status }}
@if($event->category)
{{ $event->category->name }}
@endif

{{ $event->title }}

{{ $event->description }}

Total Pool €{{ number_format($event->total_yes_amount + $event->total_no_amount, 2) }}
@php $totalPool = $event->total_yes_amount + $event->total_no_amount; $yesPercentage = $totalPool > 0 ? ($event->total_yes_amount / $totalPool) * 100 : 50; @endphp
{{ round($yesPercentage) }}% Yes {{ 100 - round($yesPercentage) }}% No
Closes: {{ $event->betting_close_at->format('M d, Y H:i') }}
@empty {{-- START OF CHANGE 3: Update the empty state message --}}

No Bets Found

You haven't placed any bets yet. Go to an event and place a bet to see it here!

{{-- END OF CHANGE 3 --}} @endforelse
{{ $events->links() }}
{{-- Toast notifications and script can remain as they are --}}
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif