@extends('admin.layouts.masterlayout') @section('title') View Booking @endsection @section('head_title') Booking Management @endsection @section('content')

Booking Details

Booking Details / Booking Management

Booking Information

Selected Slots:

@if($booking->bookingTimeslots->count()) @foreach($booking->bookingTimeslots as $slot) {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $slot->date . ' ' . $slot->time)->format('d M Y h:i A') }}
@endforeach @else - @endif

Selected Date:

@php $selectedSlot = $booking->bookingTimeslots->firstWhere('is_selected', true); @endphp {{ $selectedSlot ? \Carbon\Carbon::parse($selectedSlot->date . ' ' . $selectedSlot->time)->format('d M Y h:i A') : '-' }}

Status:

@if(isset($booking->status))
{{ $statusMap[$booking->status] ?? 'Unknown' }}
@else - @endif

Shop Email:

{{ isset($booking->shopDetail->shop_email) ? $booking->shopDetail->shop_email : '-' }}

Address:

{{ isset($booking->ArtistDetail->shop_address) ? $booking->shopDetail->shop_address : '-' }}

Artist Name:

{{ isset($booking->ArtistDetail->name) ? $booking->ArtistDetail->name : '-' }}

Artist Email:

{{ isset($booking->ArtistDetail->email) ? $booking->ArtistDetail->email : '-' }}

Country:

{{ isset($booking->shopDetail->country) ? $booking->shopDetail->country : '-' }}

City:

{{ isset($booking->shopDetail->city) ? $booking->shopDetail->city : '-' }}

Client Information

Client Name:

{{ $booking->customerDetail->name ?? '-' }}

Email:

{{ $booking->customerDetail->email ?? '-' }}

Phone:

{{ $booking->customerDetail->phone ?? '-' }}

Payment Method:

{{ $booking->payment_method ?? '-' }}

Placement:

{{ $booking->placement ?? '-' }}

Size:

{{ $booking->size ?? '-' }}

Description:

{{ $booking->description ?? '-' }}

Reference Images:

@if($booking->bookingReferencePhotos->isNotEmpty()) @foreach($booking->bookingReferencePhotos as $photo)
Reference Photo
@endforeach @else

-

@endif
@if(!empty($booking_payment))

Payment Information

Base Amount:

{{ $currency_symbol }}{{ $booking_payment->base_amount ?? '0' }}

Discount Amount:

-{{ $currency_symbol }}{{ $booking_payment->discount_amount ?? '0' }}

VAT Amount:

+{{ $currency_symbol }}{{ $booking_payment->vat_amount ?? '0' }}


Total:

{{ $currency_symbol }}{{ (($booking_payment->base_amount+$booking_payment->vat_amount) - $booking_payment->discount_amount) }}

Paid Amount:

{{ $currency_symbol }}{{ $booking_payment->paid_amount ?? '-' }}

Remaining Amount:

{{ $currency_symbol }}{{ $booking_payment->remaining_amount ?? '-' }}

@endif
@endsection @section('script') @endsection