@extends('temple.layouts.app') @section('title', 'Vazhipad Receipts') @section('content')
Manage devotee booking receipts, sankalpam details, and dakshina accounts
| Receipt No | Devotee & Nakshatram | Vazhipad Offering | Receipt Date | Total Dakshina | Action |
|---|---|---|---|---|---|
| {{ $receipts->receipt_number ?: '#RC-' . str_pad($receipts->id, 6, '0', STR_PAD_LEFT) }} | {{-- ================================================= DEVOTEE & NAKSHATRAM ================================================== --}}
{{ $devoteeName }}
@if($devoteeCount > 1)
+{{ $devoteeCount - 1 }} more
@endif
@if(!empty($nakshatram))
{{ $nakshatram }}
@endif
|
{{-- =================================================
VAZHIPAD OFFERING
================================================== --}}
@forelse($allItems->take(3) as $item)
@php
$vazhipad = $item->vazhipad ?? null;
$vazhipadName = $vazhipad?->name
?? $vazhipad?->vazhipad_name
?? 'Deleted Vazhipad';
@endphp
{{ $vazhipadName }}
@if((int) ($item->quantity ?? 1) > 1)
× {{ $item->quantity }}
@endif
@empty
No Vazhipad
@endforelse
@if($allItems->count() > 3)
+{{ $allItems->count() - 3 }} more item(s)
@endif
|
{{-- =================================================
RECEIPT DATE
================================================== --}}
@if($receiptDate)
{{ \Carbon\Carbon::parse($receiptDate)->format('d M Y') }}
@else
No Date
@endif
|
{{-- =================================================
TOTAL DAKSHINA
================================================== --}}
₹ {{ number_format((float) ($receipts->total_amount ?? 0), 2) }} | {{-- ================================================= ACTION ================================================== --}}View |
| No receipts found. | |||||