@php use Carbon\Carbon; @endphp
@if ($selectedEvent)
Event Details: {{ $selectedEvent->EventName }}

Bot Name: {{ $selectedEvent->BotName }}

Discord: {{ $selectedEvent->Discord_Page }}

Conditions:
    @php $curLevelStart = $selectedEvent->rules->Cur_Level_Start ?? null; $curLevelEnd = $selectedEvent->rules->Cur_Level_End ?? null; $strengthStart = $selectedEvent->rules->Strength_Start ?? null; $strengthEnd = $selectedEvent->rules->Strength_End ?? null; $intellectStart = $selectedEvent->rules->Intellect_Start ?? null; $intellectEnd = $selectedEvent->rules->Intellect_End ?? null; @endphp @if ($curLevelStart !== null && $curLevelEnd !== null)
  • Max Level: {{ $curLevelStart }} - {{ $curLevelEnd }}
  • @endif @if ($strengthStart !== null || $strengthEnd !== null)
  • Strength: STR Yes
  • @endif @if ($intellectStart !== null || $intellectEnd !== null)
  • Intellect: INT Yes
  • @endif @foreach ($selectedEvent->rules->getAttributes() as $key => $value) @if ( $value !== null && $value != 0 && $key != 'EventID' && $key != 'Reset' && !in_array($key, [ 'Cur_Level_Start', 'Cur_Level_End', 'Strength_Start', 'Strength_End', 'Intellect_Start', 'Intellect_End', ]))
  • {{ ucwords(str_replace('_', ' ', $key)) }}: {{ is_bool($value) ? ($value ? 'Yes' : 'No') : $value }}
  • @endif @endforeach

Countdown to Event End

{{--

Refreshing player data...

--}} Time :{{ $events->first() && $events->first()->timers->first() ? '' : 'No End Time Available' }}
@if ($selectedEvent && $selectedEvent->ID == 21) @if (auth()->check()) @if ($playerExists)
Event Voting
@foreach ($voteSites as $index => $site) @php // $userVote = $userVotes->firstWhere('vote_site_id', $site->id); $userVote = $userVotes->where('vote_site_id', $site->id)->last(); $nextVoteTime = $userVote ? Carbon::parse($userVote->next_vote_time) : null; $now = Carbon::now(); $isVoteAvailable = !$nextVoteTime || $nextVoteTime->lessThanOrEqualTo($now); $voteLink = str_replace( ['!username', '!JID'], [Auth::user()->username, Auth::user()->JID], $site->vote_link, ); // تحديد لون النقاط بناءً على القيمة $pointsClass = $site->Points >= 10 ? 'text-success' : ($site->Points >= 5 ? 'text-warning' : 'text-danger'); @endphp @endforeach
# Vote Logo Site Name Next Vote Time Points Action
{{ $index + 1 }} Vote Logo {{ $site->site_name }} {{ $nextVoteTime ? $nextVoteTime->format('j/n/Y - h:i:s A') : 'Now' }} +{{ $site->Points }}
@else
You need to log in to the game to participate in the voting event.
@endif @else
You must log in to see the voting list.
@endif @endif
Player Rankings and Rewards:
@foreach ($players->take(3) as $index => $player)
Avatar @if ($player->Charname)
{{ $player->Charname }}
@else Unknown @endif

Points: {{ $player->Points }}

Reward :
{{ $player->fullReward }}

Rank {{ $index + 1 }}
@endforeach
@foreach ($players->slice(3) as $index => $player) @endforeach
# Player Name Points Start Event Last Point Reward
{{ $index + 1 }} @if ($player->Charname) {{ $player->Charname }} @else Unknown @endif {{ $player->Points }} {{ $player->StartEvent }} {{ $player->LastPoint }} {{ $player->fullReward }}
@else
No active events currently.
@endif