@extends('temple.layouts.app') @section('title', 'Receipt Issued Successfully') @section('content')
{{-- Glowing Success Icon --}}

Receipt Issued Successfully!

The devotee vazhipad offering has been recorded in the devaswom register with an official voucher.

{{-- Voucher Summary Box --}}
Vazhipad Booking Summary
Confirmed
@if(!empty($receipts->nakshatram)) @endif @if($receipts->items && $receipts->items->count() > 0) @elseif($receipts->vazhipad) @endif
Receipt ID #RC-{{ str_pad($receipts->id, 6, '0', STR_PAD_LEFT) }}
Devotee Name {{ $receipts->devotee_name }}
Birth Star (Nakshatram) {{ $receipts->nakshatram }}
Receipt Date {{ $receipts->receipts_date ? \Carbon\Carbon::parse($receipts->receipts_date)->format('d F Y, l') : 'N/A' }}
Offering(s) Booked {{ $receipts->items->map(fn($i) => ($i->vazhipad->name ?? 'Offering') . ' (x' . $i->quantity . ')')->implode(', ') }}
Offering Booked {{ $receipts->vazhipad->name }}
Total Dakshina Paid ₹{{ number_format($receipts->total_amount ?? $receipts->amount ?? 0, 2) }}
@endsection