@php // Use absolute path for PDF rendering $logoPath = public_path('assets/images/ROWellnessSuitelogo.png'); // Check if file exists and encode to base64 for PDF compatibility if (file_exists($logoPath)) { $imageData = base64_encode(file_get_contents($logoPath)); $imageMimeType = mime_content_type($logoPath); $logoUrl = 'data:' . $imageMimeType . ';base64,' . $imageData; } else { // Fallback if logo not found $logoUrl = null; } $createdAt = \Carbon\Carbon::parse($booking->created_at)->timezone('America/Chicago'); $appointmentDate = $booking->date ? \Carbon\Carbon::parse($booking->date)->format('m/d/Y') : 'N/A'; $dueDate = $appointmentDate; @endphp
@if ($logoUrl) @endif

RO Wellness Suite

Invoice {{ $booking->booking_id }}

Tax invoice

BILL TO

{{ $user->firstName ?? '' }} {{ $user->lastName ?? '' }}

{{ $user->address ?? 'Address on file' }}

{{ $user->city ?? '' }} {{ $user->state ?? '' }} {{ $user->zipCode ?? '' }}

{{ $user->country ?? '' }}

Issue date: {{ $createdAt->format('m/d/Y') }}

Due date: {{ $dueDate }}

Reference: {{ $booking->booking_id }}

Invoice No.: {{ $booking->booking_id }}
Issue Date: {{ $createdAt->format('m/d/Y') }}
Due date: {{ $dueDate }}
Total due: ${{ number_format($grandTotal, 2) }}
@foreach ($items as $item) @php $description = $item['name'] ?? 'Service'; $price = (float) ($item['price'] ?? 0); @endphp @endforeach
Description Quantity Unit price ($) Amount ($)
{{ $description }} 1 {{ number_format($price, 2) }} {{ number_format($price, 2) }}
@if ($tax > 0) @endif @if ($discount > 0) @endif
Subtotal: ${{ number_format($subtotal, 2) }}
GST 10% from ${{ number_format($subtotal, 2) }} ${{ number_format($tax, 2) }}
Discount: -${{ number_format($discount, 2) }}
Total: ${{ number_format($grandTotal, 2) }}