@extends('layouts.admin') @section('content')
{{-- --}}

Event Details

@csrf
@php $bothRole = $event->user->hasRole(['Member' , 'Host']) ? true : false; $profile = $bothRole ? $event->user->hostProfile->profile_pic_path : $event->user->user_details->profile_pic_path; @endphp
{{-- @if ($event->eventLogo->first()) @endif --}} {{-- --}}
@error('event_code') {{ $message }} @enderror
@error('event_name') {{ $message }} @enderror
@error('hosted_by') {{ $message }} @enderror
@error('event_fee') {{ $message }} @enderror
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
@php $rounds = $event->event_rounds; // $noOfRounds = $rounds->count(); @endphp
@foreach ($rounds as $key => $round)
Round {{ $round_no ?? $key + 1 }}
@if($round->yards)
@endif @if($round->shots)
@endif @if($round->shots2)
@endif
@endforeach {{-- @include('include.rounds', [ 'create' => false, 'isReadOnly' => true, 'roundDetailsShown' => true, ]) --}} {{-- @for ($key = 0; $key < 5 - $noOfRounds; $key++) @include('include.add-default-round', [ 'round_no' => $noOfRounds + $key + 1, ]) @endfor --}}
@php $challengeCompatibles = $event ? $event->challenge_compatibles : null; @endphp
Divisions
@if (!$challengeCompatibles)

No divisions found.

@else @foreach ($challengeCompatibles as $challengeCompatible) {{--

{{ optional($challengeCompatible->divisions)->code }} - {{ optional($challengeCompatible->divisions)->name }}

--}} @php $divisionType = null; if ($challengeCompatible->division_type == 'male') { $divisionType = "(Men's)"; } elseif ($challengeCompatible->division_type == 'female') { $divisionType = "(Female's)"; } else { $divisionType = "(Men's / Women's)"; } @endphp
@error('division_code') {{ $message }} @enderror
@error('division_name') {{ $message }} @enderror
@endforeach @endif
Event Documents
{{-- --}}
{{-- --}}

Event Earnings

{{-- --}} @forelse ($joinedEvents as $joinedEvent) {{-- --}} {{-- @if ($loop->last) @endif --}} @empty @endforelse
S. No. Joined Member User Name Date Amount Transaction IDStatus Action
{{ $loop->index + 1 }} {{ $joinedEvent->user->email ?? 'N/A' }} {{ @$joinedEvent->user->username ?? 'N/A' }} {{ @$joinedEvent->created_at ? $joinedEvent->created_at->format('m/d/Y') : 'N/A' }} ${{ $joinedEvent->amount ?? '0.00' }} {{ $joinedEvent->transcation_id ?? 'N/A' }} {{ ($joinedEvent && isPayoutExistsForPaymentId($joinedEvent->id) || $joinedEvent && isPayoutExistForEvent($joinedEvent->event_id)) ? 'Paid' : 'Not Paid' }} @if (!(($joinedEvent && isPayoutExistsForPaymentId($joinedEvent->id)) || ($joinedEvent && isPayoutExistForEvent($joinedEvent->event_id)))) @endif
Did not found any earning
@endsection @section('editcontent') @include('admin.event.event-docs-popup') @include('admin.event.payout-details-popup') {{-- SHOW EVENT DOCUMENTS --}} @include('host.event-new-flow.modal.comon-modal') {{-- EVENT PRIZE MODAL --}} @include('host.event-new-flow.modal.event-prize') @endsection @push('pagespecificscripts') @endpush