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

{{ $artist->user->name }} | Details

@auth @if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @endif @if(Auth::user()->type === \App\Enum\UserType::ARTIST->value && Auth::id() === $artist->user->id) @endif @endauth
@if(!(is_null($artist->instagram_link) || is_null($artist->spotify_link) || is_null($artist->apple_music_link) || is_null($artist->youtube_link) || is_null($artist->soundcloud_link))) @endif
Property Value
Name {{ $artist->user->name }}
Home City & Country {{ $artist->city }}, {{ $artist->country }}
Birthdate {{ $artist->birth_date ? $artist->birth_date->isoFormat('Do MMMM Y') : ''}}
Price Per Hour (USD) @if($artist->price_per_hour != null) @currency($artist->price_per_hour) @else Not yet defined @endif
Artist Type {{ $artist->artist_type ? $artist->artist_type->name : ''}}
Artist is available on @if(!is_null($artist->instagram_link)) Instagram
@endif @if(!is_null($artist->spotify_link)) Spotify
@endif @if(!is_null($artist->apple_music_link)) Apple Music
@endif @if(!is_null($artist->youtube_link)) YouTube
@endif @if(!is_null($artist->soundcloud_link)) Soundcloud
@endif
Genres @foreach($artist->genres as $genre)

{{ $genre->name }}

@endforeach

Reviews

@foreach($artist->reviews as $review) @endforeach
Review Rating By Date & Time
{{ $review->content }} {{ $review->rating }} {{ $review->organizer->user->name }} {{ $review->created_at->isoFormat('DD-MMM-Y') }}
@if ($abilityToPostReview)
@csrf 1 2 3 4 5

@endif
@if($abilityToSeeAndManageOffers)

Offers

@foreach($offers as $offer) @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
# From Event Name Status Price (USD) Event Date & Start Time City & Country Event Type Options
{{ $loop->index+1 }} {{ $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() !!}
@endif
@endsection