@if(file_exists(public_path('build/manifest.json'))) @vite(['resources/css/app.css', 'resources/js/app.js']) @else @endif
@php $companyName = \App\Models\Setting::get('receipt_company_name', \App\Helpers\SeoHelper::siteName()); $companyAddress = \App\Models\Setting::get('receipt_company_address', ''); $companyPhone = \App\Models\Setting::get('receipt_company_phone', ''); $companyEmail = \App\Models\Setting::get('receipt_company_email', ''); $companyWebsite = \App\Models\Setting::get('receipt_website', url('/')); $footerText = \App\Models\Setting::get('receipt_footer_text', 'Thank you for your business!'); $showLogo = \App\Models\Setting::get('receipt_show_logo', true); $siteLogo = \App\Helpers\SeoHelper::logo(); $days = \Carbon\Carbon::parse($booking->check_in)->diffInDays(\Carbon\Carbon::parse($booking->check_out)); $baseSubtotal = $booking->listing->price_per_day * $days; $subtotalAfterDiscount = $baseSubtotal - ($booking->discount_amount ?? 0); $addOnsTotal = $booking->addOns->sum('pivot.price_paid'); $bookingAmount = $subtotalAfterDiscount + $addOnsTotal; // Gateway fee (payment processing fee) - charged to guest $gatewayFee = $booking->platform_fee > 0 ? $booking->platform_fee : \App\Services\GatewayFeeService::calculateFee($bookingAmount); // Get gateway fee settings for display $gatewayFeeType = \App\Models\Setting::get('payment_gateway_fee_type', 'fixed'); $gatewayFeeFixed = \App\Models\Setting::get('payment_gateway_fee_fixed', 0); $gatewayFeePercentage = \App\Models\Setting::get('payment_gateway_fee_percentage', 0); @endphp{{ $companyAddress }}
@endif @if($companyPhone)Tel: {{ $companyPhone }}
@endif @if($companyEmail)Email: {{ $companyEmail }}
@endif @if($companyWebsite){{ $companyWebsite }}
@endifReceipt #: {{ $booking->id }}
Invoice Number: {{ $booking->invoice_number }}
Issue Date: {{ now()->format('M d, Y') }}
Name
{{ $booking->user->name }}
{{ $booking->user->email }}
Phone
{{ $booking->user->phone }}
Booking ID
#{{ $booking->id }}
Booking Date
{{ $booking->created_at->format('M d, Y h:i A') }}
Transaction ID
{{ $booking->payment->transaction_id }}
{{ $booking->listing->title }}
Type
{{ $booking->listing->rentalType->name }}
Location
{{ $booking->listing->location->name }}
Guests
{{ $booking->guests }} {{ $booking->guests > 1 ? 'Guests' : 'Guest' }}
Check-in
{{ \Carbon\Carbon::parse($booking->check_in)->format('M d, Y') }}
Check-out
{{ \Carbon\Carbon::parse($booking->check_out)->format('M d, Y') }}
Duration
{{ $days }} {{ $days > 1 ? 'Days' : 'Day' }}
Pickup Location
{{ $booking->pickupLocation->name }}
{{ date('h:i A', strtotime($booking->pickup_time)) }}
Dropoff Location
{{ $booking->dropoffLocation->name }}
{{ date('h:i A', strtotime($booking->dropoff_time)) }}
Add-ons
@foreach($booking->addOns as $addOn){{ $footerText }}
@if($companyEmail)For inquiries, please contact us at {{ $companyEmail }}
@endif @if($companyPhone)Phone: {{ $companyPhone }}
@endifThis is an automatically generated receipt. No signature required.