@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)); $hostReceipt = $booking->hostReceipt; @endphp
View Guest Receipt @if(auth()->user()->isAdmin() && $hostReceipt->payout_status !== 'completed') @endif Back to Bookings
@if($showLogo && $siteLogo)
{{ $companyName }}
@endif

{{ $companyName }}

@if($companyAddress)

{{ $companyAddress }}

@endif @if($companyPhone)

Tel: {{ $companyPhone }}

@endif @if($companyEmail)

Email: {{ $companyEmail }}

@endif @if($companyWebsite)

{{ $companyWebsite }}

@endif

HOST PAYOUT RECEIPT

Host Receipt #: {{ $hostReceipt->receipt_number }}

Booking #: {{ $booking->id }}

Invoice Number: {{ $booking->invoice_number }}

Issue Date: {{ now()->format('M d, Y') }}

{{ ucfirst($hostReceipt->payout_status) }}

Host (Payee) Information

Name

{{ $booking->listing->host->name }}

Email

{{ $booking->listing->host->email }}

@if($booking->listing->host->phone)

Phone

{{ $booking->listing->host->phone }}

@endif

Booking Details

Booking ID

#{{ $booking->id }}

Guest Name

{{ $booking->user->name }}

Booking Date

{{ $booking->created_at->format('M d, Y h:i A') }}

Your Listing

{{ $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' }}

Earnings Breakdown

Base Rental (RM {{ number_format($booking->listing->price_per_day, 2) }} × {{ $days }} {{ $days > 1 ? 'days' : 'day' }}) RM {{ number_format($hostReceipt->base_amount, 2) }}
@if($hostReceipt->addon_amount > 0)
Add-ons Revenue RM {{ number_format($hostReceipt->addon_amount, 2) }}
@endif @if($hostReceipt->discount_amount > 0)
Discount Applied -RM {{ number_format($hostReceipt->discount_amount, 2) }}
@endif
Gross Revenue RM {{ number_format($hostReceipt->subtotal, 2) }}

Deductions

Platform Fee -RM {{ number_format($hostReceipt->platform_fee, 2) }}
@if($hostReceipt->service_fee > 0)
Service Fee -RM {{ number_format($hostReceipt->service_fee, 2) }}
@endif
Total Deductions -RM {{ number_format($hostReceipt->total_deductions, 2) }}
Your Payout RM {{ number_format($hostReceipt->host_payout, 2) }}

Payout Information

Status

{{ ucfirst($hostReceipt->payout_status) }}

@if($hostReceipt->payout_date)

Payout Date

{{ $hostReceipt->payout_date->format('M d, Y h:i A') }}

@endif @if($hostReceipt->payout_reference)

Reference Number

{{ $hostReceipt->payout_reference }}

@endif @if($hostReceipt->payout_notes)

Notes

{{ $hostReceipt->payout_notes }}

@endif

{{ $footerText }}

@if($companyEmail)

For inquiries, please contact us at {{ $companyEmail }}

@endif @if($companyPhone)

Phone: {{ $companyPhone }}

@endif

This is an automatically generated host receipt. This document serves as proof of earnings and platform deductions.