@extends('layouts.app') @section('title', 'Bangladesh Unbound - Ongoing Tours') @section('page-title', 'Ongoing Tours') @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') }}
@if (empty($booking->others_discount_amount) && $booking->others_discount_amount <= 0) @can('booking-set-discount')
Enter discount amount to apply to this booking
@endcan @endif
Customer
{{ $booking?->customer?->full_name }}

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

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

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

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

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

Assign a Team

@can('assign-team')
@endcan

Manage Order

@can('payment-refund') @if ($booking->paid_amount > 0) @endif @endcan
@foreach (orderStatus() as $key => $status)
@if ($key != 3) order_status == $key ? 'checked' : '' }}> @endif
@endforeach
@can('change-order-status') , @endcan

Booking Payment Status

@foreach ($paymentStatus as $key => $status)
@if ($booking->payment_status == $key) payment_status == $key ? 'checked' : '' }} readonly onclick="return false;"> @endif
@endforeach
Paid: ৳ {{ $booking->paid_amount }}
Due: ৳ {{ $booking->due_amount }}

Payment History

@can('payment-create') @endcan
@foreach ($paymentHistory as $history) @if ($history->payment_status == 'pending') @endif @endforeach
Transaction ID Amount Gateway Active Status Date Action
{{ $history->transaction_number }} ৳ {{ number_format($history->amount, 2) }} {{ $history?->payment_gateway }} @php $badgeClass = match ($history->payment_status) { 'success' => 'bg-success', 'pending' => 'bg-warning', 'failed' => 'bg-danger', 'refunded' => 'bg-secondary', default => 'bg-light', }; @endphp {{ $history->payment_status }} {{ $history->created_at->format('d M Y') }}
@include('admin.booking.partials.payment') @include('admin.booking.partials.collect-payment') @include('admin.booking.partials.make-refund-modal') @endsection @push('scripts') @endpush