@extends('layouts.app') @section('content')
Event Details
Back to Events

{{ $event->event_name }}

{{ $event->date }}
{{ $event->time }}
{{ $event->event_place }}

{{ $event->photographers->count() }}

Photographers

{{ $event->images->count() }}

Photos

Active

Status

@if(auth()->user()->is_event_manager == 1)

Team Management

Manage photographers assigned to this event

Assigned Photographers

@forelse($event->photographers as $photographer)

{{ $photographer->name }}

{{ $photographer->email }}

@csrf @method('DELETE')
@empty

No photographers assigned yet

Use the form to assign photographers to this event

@endforelse

Assign New Photographer

@csrf

Event Gallery Management

{{ $event->images->count() }} photos uploaded

@if($event->images->count() > 0)
@foreach($event->images as $image)
@csrf @method('DELETE')
Event Image

{{ $image->created_at->format('M d, Y H:i') }}

@endforeach
@else

No images uploaded yet

Photographers will upload images here during the event

@endif
@endif @if(auth()->user()->is_photographer == 1)

Upload Event Photos

Share your captured moments with the event

@csrf
@endif @if(auth()->user()->is_admin == 1)

Administrator View

Full event oversight and management

@if($event->images->count() > 0)
@foreach($event->images as $image)
Event Image

{{ $image->created_at->format('M d, Y H:i') }}

@endforeach
@else

No images uploaded yet

Images will appear here as photographers upload them

@endif
@endif @if(auth()->user()->is_admin == 0 && auth()->user()->is_event_manager == 0 && auth()->user()->is_photographer == 0)

Event Gallery

{{ $event->images->count() }} beautiful moments captured

@if($event->images->count() > 0)
@foreach($event->images as $image)
Event Image

{{ $image->created_at->format('M d, Y H:i') }}

View
@endforeach
@else

Gallery Coming Soon

Photos will be available here after the event

@endif
@endif @if(session('success'))
{{ session('success') }}
@endif
@endsection