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

My Offers

@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @else @endif @foreach($offers as $offer) @if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @else @endif @if($offer->status === \App\Enum\OfferStatus::IN_PROGRESS->value) @elseif($offer->status === \App\Enum\OfferStatus::COMPLETED->value) @elseif($offer->status === \App\Enum\OfferStatus::DECLINED->value) @elseif($offer->status === \App\Enum\OfferStatus::WAITING_FOR_PAYMENT->value) @endif @endforeach
#ToFromEvent Name Status Price (USD) Event Date & Start Time City & Country Event Type Options
{{ $loop->index+1 }} {{ $offer->artist->user->name }} {{ $offer->event->organizer->user->name }}{{ $offer->event->title }}

In Progress

Completed

Declined

Waiting for payment

@if($offer->price != null) @currency($offer->price) @else Not yet defined @endif {{ $offer->event->event_date->isoFormat('DD-MMM-Y') . ", " . $offer->event->start_time->isoFormat('H:mm') }} {{ $offer->event->city }}, {{ $offer->event->country }} {{ $offer->event->event_type->name }}
{!! $offers->links() !!}
@endsection