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

Update Event

@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
@error('event_code') {{ $message }} @enderror
@error('event_name') {{ $message }} @enderror
@error('host_by_name') {{ $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
@include('include.rounds', [ 'create' => false, 'roundDetailsShown' => true, ]) @for ($key = 0; $key < config('validation.max-round-for-host') - $noOfRounds; $key++)
@include('include.add-default-round', [ 'round_no' => $noOfRounds + $key + 1, 'newKey' => $noOfRounds + $key, ])
@endfor
Divisions
{{-- @php $challengeCompatibles = $event ? $event->challenge_compatibles : null; @endphp @if (!$challengeCompatibles)

No divisions found.

@else @foreach ($challengeCompatibles as $challengeCompatible)
@error('division_code') {{ $message }} @enderror
@error('division_name') {{ $message }} @enderror
@endforeach @endif --}}
@php $eventDivisionType = @$event->challenge_compatibles->first()->division_type; @endphp
    @php $divisions = $event ? $event->user->directDivisions : null; @endphp @if ($divisions->count() > 0) @foreach ($divisions as $index => $division) @php $eventDivisionIds = $event ? $event ->challenge_compatibles() ->pluck('division_id') ->unique() ->toArray() : null; @endphp
  • id, $eventDivisionIds) ? 'checked' : '') : '' }}>
  • @endforeach @else
  • No divisions found.

  • @endif
Event Documents
{{-- --}}
@endsection @section('editcontent') @include('admin.event.event-docs-popup') {{-- SHOW EVENT DOCUMENTS --}} @include('host.event-new-flow.modal.comon-modal') {{-- TARGET IMAGE CROPPER MODAL --}} {{-- @include('host.event-new-flow.modal.image-cropper') --}} @include('host.event-new-flow.modal.image-cropper-target') @endsection @push('pagespecificscripts') @includeFirst(['validation']) @include('validations.js_event_new') @endpush