@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
{{ $companyWebsite }}
{{ $companyAddress }}
@endif @if($companyPhone)Tel: {{ $companyPhone }}
@endif @if($companyEmail){{ $companyEmail }}
@endifHost Receipt: {{ $hostReceipt->receipt_number }}
Booking #{{ $booking->id }} | Invoice: {{ $booking->invoice_number }}
Issue Date
{{ now()->format('M d, Y') }}
{{ strtoupper($hostReceipt->payout_status) }}Host (Payee)
{{ $booking->listing->host->name }}
{{ $booking->listing->host->email }}
@if($booking->listing->host->phone){{ $booking->listing->host->phone }}
@endifGuest
{{ $booking->user->name }}
{{ $booking->user->email }}
Booked: {{ $booking->created_at->format('M d, Y') }}
{{ $booking->listing->title }}
| Base Rental (RM {{ number_format($booking->listing->price_per_day, 2) }} × {{ $days }} {{ $days > 1 ? 'days' : 'day' }}) | RM {{ number_format($hostReceipt->base_amount, 2) }} |
| Add-ons Revenue | RM {{ number_format($hostReceipt->addon_amount, 2) }} |
| Discount Applied | -RM {{ number_format($hostReceipt->discount_amount, 2) }} |
| Gross Revenue | RM {{ number_format($hostReceipt->subtotal, 2) }} |
| Platform Fee | -RM {{ number_format($hostReceipt->platform_fee, 2) }} |
| Service Fee | -RM {{ number_format($hostReceipt->service_fee, 2) }} |
| Total Deductions | -RM {{ number_format($hostReceipt->total_deductions, 2) }} |
| YOUR PAYOUT | RM {{ number_format($hostReceipt->host_payout, 2) }} |
Payout Information
{{ $footerText }}
@if($companyEmail)Contact: {{ $companyEmail }} @if($companyPhone) | Tel: {{ $companyPhone }}@endif
@endifAutomatically generated host receipt. Proof of earnings and deductions.