@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 icon

Cancel
{{-- Include JustValidate --}} @endsection