{{ $invoice?->invoice_number ?? ('INV-' . ($booking->id ?? '')) }}

Invoiced To:
{{ data_get($invoice->billing_address, 'name') }}
{{ data_get($booking->devotee_details, 'phone') }}
{{ data_get($invoice->billing_address, 'email') }}
{{ trim(collect([ data_get($invoice->billing_address, 'street_address'), data_get($invoice->billing_address, 'city'), data_get($invoice->billing_address, 'state'), data_get($invoice->billing_address, 'postal_code') ])->filter()->implode(', ')) }}
Gothram: {{ data_get($booking->devotee_details, 'gotram') }}

INVOICE

Invoice #: {{ $invoice->invoice_number ?? $invoice->id }}
Created: {{ optional($invoice->invoice_date)->format('d M Y') }}
Status: {{ ucfirst($invoice->status) }}
Payment Method: {{ optional($booking->order)->payment_method ?? 'Online' }}
@foreach(($booking->cart_data ?? []) as $i => $item) @endforeach
# DESCRIPTION SLOTS RATE SUBTOTAL
{{ $loop->iteration }}
{{ ucwords(data_get($item, 'name')) }}
Date: {{ \Carbon\Carbon::parse(data_get($item, 'date'))->format('d M Y') }} @if(data_get($item, 'time_slot')) | Time: {{ data_get($item, 'time_slot') }} @endif
{{ (int) data_get($item, 'slots', 1) }} ₹{{ number_format((float) data_get($item, 'price', 0), 2) }} ₹{{ number_format((float) data_get($item, 'price', 0) * (int) data_get($item, 'slots', 1), 2) }}
{{--
Online Fee :₹{{ collect($booking->cart_data)->sum('slots') * 10 }}
--}}{{--
Discount :₹0.00
Tax :0%
--}}{{--
Total:₹{{ number_format((float) $invoice->amount, 2) }}
--}}
Online Fee: ₹{{ number_format((float) (collect($booking->cart_data)->sum('slots') * 10), 2) }}
Total: ₹{{ number_format((float) $invoice->amount, 2) }}

Thank you for your trust and choice of Seva at Sri Vidya Saraswathi Sri Shani Temples