@extends('layouts.app') @section('title', 'Booking Order Details') @section('content') @php use Carbon\Carbon; @endphp

Booking Order Details

Booking Info

{{ $booking->unique_booking_id }}

{{ optional($booking->customer)->name ?? '-' }}

{{ optional($booking->vendor)->name ?? '-' }}

{{ ucwords(array_flip(config('constant.booking_status'))[$booking->booking_status] ?? 'N/A') }}

{{ config('constant.booking_types')[$booking->booking_type] ?? 'N/A' }}

{{ ucfirst($booking->payment_type) }}

{{ $booking->booking_date_formatted }}

{{ number_format($booking->total_price, 2) . ' ' . $currency }}

{{ number_format($booking->discount_amount, 2) . ' ' . $currency }}

{{ number_format($booking->final_price, 2) . ' ' . $currency }}

{{ ($booking->promoCode)->code ?? '-' }}

@if($booking->BookingCancelReason)

{{ optional($booking->BookingCancelReason)->reason ?? '-' }}

@endif

Booking Items
@foreach($bookingItems as $key => $item) @endforeach @if($bookingItems->isEmpty()) @endif
# Service Name Category Total Discount Final
{{ $key+1 }} {{ $item->service_name }} {{ $item->category_name }} {{ number_format($item->total_price, 2) }} {{ number_format($item->discount_price, 2) }} {{ number_format($item->final_price, 2) }}
No items found.

{{-- Payment Transactions --}} @if($mergedTransactions->where('type', '!=', 'Wallet')->isNotEmpty())
Payment Transactions
@php $index = 1; @endphp @foreach($mergedTransactions->where('type', '!=', 'Wallet') as $trans) @endforeach
# Type Transaction ID Amount Invoice ID Date
{{ $index++ }} {{ $trans['type'] }} {{ $trans['transaction_id'] }} {{ number_format($trans['amount'], 2) . ' ' . $currency }} {{ $trans['invoice_id'] ?? '-' }} {{ $trans['created_at'] }}
@endif {{-- Wallet Transactions --}} @if($walletTransactions->isNotEmpty())
Wallet Transaction
@foreach($walletTransactions as $index => $trans) @endforeach
# Type Transaction ID Amount Invoice ID Date
{{ $index + 1 }} {{ $trans['type'] }} {{ $trans['transaction_id'] }} {{ number_format($trans['amount'], 2) . ' ' . $currency }} {{ $trans['invoice_id'] ?? '-' }} {{ $trans['created_at'] }}
@endif
@endsection