@extends('layouts.app') @section('content')

Event Details

@auth @if (Auth::user()->type === \App\Enum\UserType::ORGANIZER->value && $event->organizer_id === Auth::id()) @endif @endauth
Property Value
Title {{ $event->title }}
Date {{ $event->event_date->isoFormat('dddd, MMMM Do Y') }}
City {{ $event->city }}
Country {{ $event->country }}
Starting Time {{ $event->start_time->isoFormat('H:mm') }}
Ending Time {{ $event->end_time->isoFormat('H:mm') }}
Event Type {{ $event->event_type->name }}
Description {{ $event->description }}
@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value)

Offers for this event

@foreach($event->offers as $eventOffer) @if($eventOffer->status === \App\Enum\OfferStatus::IN_PROGRESS->value) @elseif($eventOffer->status === \App\Enum\OfferStatus::COMPLETED->value) @elseif($eventOffer->status === \App\Enum\OfferStatus::DECLINED->value) @elseif($eventOffer->status === \App\Enum\OfferStatus::WAITING_FOR_PAYMENT->value) @endif @endforeach
Artist Name Current Offer Price (USD) Status Options
{{ $eventOffer->artist->user->name }} @if($eventOffer->price != null) @currency($eventOffer->price) @else Not yet defined @endif

In Progress

Completed

Declined

Waiting for payment

@endif
@endsection