@extends('admin.layouts.masterlayout') @section('title') View Booking @endsection @section('head_title') Booking Management @endsection @section('content')
@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
@php $selectedSlot = $booking->bookingTimeslots->firstWhere('is_selected', true); @endphp {{ $selectedSlot ? \Carbon\Carbon::parse($selectedSlot->date . ' ' . $selectedSlot->time)->format('d M Y h:i A') : '-' }}
{{ isset($booking->shopDetail->shop_email) ? $booking->shopDetail->shop_email : '-' }}
{{ isset($booking->ArtistDetail->shop_address) ? $booking->shopDetail->shop_address : '-' }}
{{ isset($booking->ArtistDetail->name) ? $booking->ArtistDetail->name : '-' }}
{{ isset($booking->ArtistDetail->email) ? $booking->ArtistDetail->email : '-' }}
{{ isset($booking->shopDetail->country) ? $booking->shopDetail->country : '-' }}
{{ isset($booking->shopDetail->city) ? $booking->shopDetail->city : '-' }}
{{ $booking->customerDetail->name ?? '-' }}
{{ $booking->customerDetail->email ?? '-' }}
{{ $booking->customerDetail->phone ?? '-' }}
{{ $booking->payment_method ?? '-' }}
{{ $booking->placement ?? '-' }}
{{ $booking->size ?? '-' }}
{{ $booking->description ?? '-' }}
-
@endif{{ $currency_symbol }}{{ $booking_payment->base_amount ?? '0' }}
-{{ $currency_symbol }}{{ $booking_payment->discount_amount ?? '0' }}
+{{ $currency_symbol }}{{ $booking_payment->vat_amount ?? '0' }}
{{ $currency_symbol }}{{ (($booking_payment->base_amount+$booking_payment->vat_amount) - $booking_payment->discount_amount) }}
{{ $currency_symbol }}{{ $booking_payment->paid_amount ?? '-' }}
{{ $currency_symbol }}{{ $booking_payment->remaining_amount ?? '-' }}