@extends('layouts.app') @section('title', 'Bangladesh Unbound - Upcoming Bookings') @section('page-title', 'Upcoming Bookings') @section('breadcrumb') @endsection @section('content')
Tour Icon

{{ $booking?->tourPackage?->name }}

{{ $booking->duration }}

Order ID: {{ $booking->order_id }}
Package: {{ $booking?->tourPackage?->name }}
Pickup Location: {{ $booking->pickup_location ?? '' }}
Drop off Location: {{ $booking->dropoff_location }}
Unit Amount: ৳ {{ number_format($booking->grand_total, 2) }}
@if (!empty($booking->coupon_amount) && $booking->coupon_amount > 0)
Coupon Applied: ৳ {{ number_format($booking->coupon_amount, 2) }}
@endif @if (!empty($booking->others_discount_amount) && $booking->others_discount_amount > 0)
Special Discount Amount: ৳ {{ number_format($booking->others_discount_amount, 2) }}
@endif @if (!empty($booking->tourPackage?->discount_price) && $booking->tourPackage->discount_price> 0)
Package Discount Amount: ৳ {{ number_format($booking->tourPackage?->discount_price, 2) }}
@endif @php $totalDiscount = ($booking->discount_amount ?? 0) + ($booking->others_discount_amount ?? 0); @endphp @if ($totalDiscount > 0)
Total Discount Amount: ৳ {{ number_format($totalDiscount, 2) }}
@endif
Total Payable Amount: ৳ {{ number_format($booking->total_payable_amount, 2) }}
Amount Paid: ৳ {{ number_format($booking->paid_amount, 2) }}
Amount Due: ৳ {{ number_format($booking->due_amount, 2) }}
Payment Due Date: {{ \Carbon\Carbon::parse($booking->payment_due_date)->format('d M Y') }}
Customer
{{ $booking?->customer?->full_name }}

{{ $booking?->customer?->full_name }}

{{ $booking?->customer?->phone }}

{{ $booking?->customer?->country }}

{{ $booking?->customer?->email }}

Customer ID: #HG{{ $booking?->customer?->id }}

Tour Guide

{{--
--}}

Order Status

@foreach (orderStatus() as $key => $status)
@if ($key != 3) order_status == $key ? 'checked' : '' }} disabled> @endif
@endforeach

Booking Payment Status

@foreach ($paymentStatus as $key => $status)
payment_status == $key ? 'checked' : '' }} disabled>
@endforeach
Paid: ৳ {{$booking->paid_amount}}
Due: ৳ {{$booking->due_amount}}

Payment History

@forelse ($paymentHistory as $history) @empty @endforelse
Transaction ID Amount Gateway Status Date
{{ $history->transaction_number }} ৳ {{ number_format($history->amount, 2) }} {{ $history?->payment_gateway }} @php $lastPaymentStatus = $history->payment_status; $badgeClass = match ($lastPaymentStatus) { 'success' => 'bg-success', 'pending' => 'bg-warning', 'failed' => 'bg-danger', 'refunded' => 'bg-secondary', 'cancelled' => 'bg-dark', default => 'bg-light', }; @endphp {{ $lastPaymentStatus ?? 'N/A' }} {{ $history->created_at->format('d M Y') }}
No payment history found.
@include('admin.booking.partials.payment') @endsection @push('scripts') @endpush