@php $proofLogoSrc = null; if (!empty($logoDataUri)) { $proofLogoSrc = $logoDataUri; } elseif (!empty($settings->hotel_logo)) { $val = $settings->hotel_logo; if (preg_match('/^https?:\\/\\//i', $val)) { $proofLogoSrc = $val; } else { $diskPath = \Illuminate\Support\Facades\Storage::disk('public')->path($val); if (is_file($diskPath)) { $mime = @mime_content_type($diskPath) ?: 'image/png'; $data = @file_get_contents($diskPath); if ($data !== false) { $proofLogoSrc = 'data:' . $mime . ';base64,' . base64_encode($data); } } if (!$proofLogoSrc) { $proofLogoSrc = asset(\Illuminate\Support\Facades\Storage::url($val)); } } } @endphp @if($proofLogoSrc) @endif
@if($settings)
{{ $settings->hotel_address }}
{{ $settings->hotel_phone }} | {{ $settings->hotel_email }}
@endif
Bukti Booking

Informasi Tamu

Nama {{ $booking->guest->name ?? $booking->guest_name ?? '-' }} Email {{ $booking->guest->email ?? $booking->guest_email ?? '-' }}
Telepon {{ $booking->guest->phone ?? $booking->guest_phone ?? '-' }} Permintaan Khusus {{ $booking->special_requests ?? '-' }}

Ringkasan

@php $st = strtolower($booking->status ?? 'pending'); $cls = 'badge badge-' . $st; @endphp
Kode Booking {{ $booking->booking_code ?? '-' }} Status{{ ucfirst($booking->status ?? 'pending') }}
Dibuat Pada @if($booking->booking_date) {{ \Carbon\Carbon::parse($booking->booking_date)->format('d/m/Y H:i') }} @else {{ $booking->created_at ? $booking->created_at->format('d/m/Y H:i') : '-' }} @endif Sumber Booking {{ ($booking->booking_source ?? '') === '' ? 'Internal' : $booking->booking_source }}
Referensi Sumber {{ $booking->source_reference ?? '-' }} Oleh Petugas {{ $booking->user->name ?? 'System' }}

Detail Menginap

@php $ci = $booking->check_in_date ? \Carbon\Carbon::parse($booking->check_in_date) : null; $co = $booking->check_out_date ? \Carbon\Carbon::parse($booking->check_out_date) : null; $nights = ($ci && $co) ? $ci->diffInDays($co) : null; @endphp
Hotel {{ $settings->hotel_name ?? ($booking->room->hotel->name ?? '-') }} Kamar {{ $booking->room->room_number ?? $booking->unit_number ?? '-' }}
Tipe {{ $booking->room->type ?? '-' }} Tamu {{ $booking->guests ?? 1 }}
Check-in {{ $booking->check_in_date ? \Carbon\Carbon::parse($booking->check_in_date)->format('d/m/Y') : '-' }} Check-out {{ $booking->check_out_date ? \Carbon\Carbon::parse($booking->check_out_date)->format('d/m/Y') : '-' }}
Durasi{{ $nights !== null ? ($nights . ' malam') : '-' }} Total Harga Rp {{ number_format($booking->total_price ?? 0, 0, ',', '.') }}