@extends('layouts.admin') @section('title', 'Admin | Update Edit') @section('content')

Update / Event

Back to list
@php $e = $event ?? null; @endphp
@csrf @if(!empty($event)) @method('PUT') @endif
{{-- LEFT: Main details --}}
General > General infromation about your app and event
{{-- Title + Slug --}}
@php $exts = array_map('trim', explode(',', config('app.image_mime_types'))); $acceptList = implode(',', array_map(fn($e) => (stripos($e, 'image/') === 0 ? $e : 'image/'.$e), $exts)); @endphp
@php $hasImage = !empty($event->photo) && !empty($event->photo->file_path); $imgSrc = $hasImage ? (Str::startsWith($event->photo->file_path, ['http://','https://']) ? $event->photo->file_path : Storage::url($event->photo->file_path)) : ''; @endphp
{{-- Placeholder --}}
Drag & drop an image here, or
Max {{ (int) config('app.blog_image_size') }} KB
{{-- Inline preview --}} Preview {{-- Remove button --}}
@error('image')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('slug')
{{ $message }}
@enderror
{{-- Location --}}
@error('location')
{{ $message }}
@enderror
{{-- YouTube link --}}
@error('youtube_link')
{{ $message }}
@enderror
@php $availableTags = $availableTags ?? ['Music', 'Meetup', 'Conference', 'Workshop', '2025']; $selectedTags = collect(explode(',', old('tags', $e->tags ?? ''))) ->map(fn($t) => trim($t)) ->filter(); @endphp @foreach($availableTags as $tag) @php $id = 'tag-'.\Illuminate\Support\Str::slug($tag); @endphp contains($tag))> @endforeach
{{-- If you store as comma string instead of array, uncomment below & include sync script further down --}} {{-- --}} @error('tags')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Event Settings
{{-- Start / End dates --}}
@error('start_date')
{{ $message }}
@enderror
@error('end_date')
{{ $message }}
@enderror
{{-- Status / Visibility --}}
@error('status')
{{ $message }}
@enderror
@error('visibility')
{{ $message }}
@enderror

Cancel
@endsection @section('scripts') @endsection