@php $rules = null; if (checkEventInstance($collection)) { $rounds = $collection->event_rounds; } else { $rounds = $collection->challenge_round; $rules = json_decode($collection->challenge_detail->additional_rules); } @endphp @if (checkEventInstance($collection)) This weeks Host Event consists of the following: @else This challenge consists of the following: @endif @foreach ($rounds as $key => $round) Photo Required {{ $collection->image_required ? 'Y' : 'N' }} Video Required {{ $collection->video_required ? 'Y' : 'N' }} Yards {{ $round->yards ?? 'N/A' }} Re-load Required (y/n) {{ $round->reload_required ? 'Y' : 'N' }} @if ($round->shots) Shots {{ $round->shots ? $round->shots : 'N/A' }} Target zone {{ $round->target_zone ? strtoupper($round->target_zone) : 'N/A' }} Hand (s/w) {{ $round->hand ? 'Y' : 'N' }} @endif @if ($round->shots2) Shots {{ $round->shots2 ? $round->shots2 : 'N/A' }} Target zone {{ $round->target_zone2 ? strtoupper($round->target_zone2) : 'N/A' }} Hand (s/w) {{ $round->hand2 ? $round->hand2 : 'N/A' }} @endif @endforeach Official Rules @if (checkEventInstance($collection)) click to view @else click to view @endif {{-- rules modal --}} @include('host.event-new-flow.modal.comon-modal')
Photo Required
Video Required
Yards
Re-load Required (y/n)
Shots
Target zone
Hand (s/w)