@extends('layout') @section('content')
@csrf

{{ __('Basic Information') }} icon

@error('title') {{ $message }} @enderror
@error('provider_id') {{ $message }} @enderror
icon {{ __('It describes how the event is being held.') }} @error('type') {{ $message }} @enderror
icon {{ __('It describes what the event is about.') }} @error('category') {{ $message }} @enderror
@error('image') {{ $message }} @enderror

{{ __('Dates & Location') }} icon

icon @error('start_date') {{ $message }} @enderror
icon @error('end_date') {{ $message }} @enderror
icon @error('start_time') {{ $message }} @enderror
icon @error('end_time') {{ $message }} @enderror
icon {{ __('It describes how the event is being held.') }} @error('venue') {{ $message }} @enderror
icon {{ __('Exactly Location') }} @error('location') {{ $message }} @enderror

{{ __('Tickets Information') }} icon

icon {{ __('Select from default types or customize the Type') }}
icon {{ __('Edit to Customize the default price') }}
@php $oldTickets = []; foreach (old() as $key => $value) { if (preg_match('/^ticket_(\d+)_(type|price|qty)$/', $key, $matches)) { $id = $matches[1]; $field = $matches[2]; $oldTickets[$id][$field] = $value; } } @endphp @if (!empty($oldTickets)) @foreach ($oldTickets as $ticketId => $ticket) @endforeach @endif
{{ __('Ticket Type') }} {{ __('Price') }} {{ __('Quantity') }}
@php $ticketName = collect($tickets)->firstWhere('id', $ticket['type']) ->name ?? ''; @endphp {{ $ticketName }} {{ $ticket['price'] }} {{ $ticket['qty'] }}

{{ __('Question Related To Event') }} icon

@php $oldQuestions = collect(old()) ->filter(fn($v, $k) => Str::startsWith($k, 'question_')) ->values() ->map( fn($id) => [ 'id' => $id, 'question' => optional($questions->firstWhere('id', $id))->question, ], ) ->filter(fn($q) => !is_null($q['question'])) ->toArray(); @endphp
@foreach ($oldQuestions ?? [] as $question) @endforeach

{{ __('Event Setting') }} icon

icon
icon {{ __('Registration closes on this date or once capacity is reached, whichever comes first') }} @error('registeration_deadline') {{ $message }} @enderror
icon {{ __('It describes how the event is being held.') }} @error('max_capacity') {{ $message }} @enderror
{{--
--}}
{{-- terms and conditions --}} {{--

Terms and Conditions icon

--}}
{{ __('Cancel') }}
{{-- Include JustValidate --}} @endsection