@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
@php
$rounds = $event->event_rounds;
// $noOfRounds = $rounds->count();
@endphp
@php
$challengeCompatibles = $event
? $event->challenge_compatibles
: null;
@endphp
Divisions
@if (!$challengeCompatibles)
@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
@endforeach
@endif
Event Documents