@extends('admin.layouts.app') @section('title','Assistance — '.$beneficiary->name) @section('breadcrumb') / Beneficiaries / {{ $beneficiary->name }} / Assistance @endsection @section('content') @if(session('error'))
{{ session('error') }}
@endif
Record Assistance
@csrf
{{ $assistance->total() }}
Total Records
₹{{ number_format($assistance->sum('amount'),0) }}
Total Amount (page)
₹{{ number_format($beneficiary->total_assistance,0) }}
All Time Amount
Assistance History
@forelse($assistance as $ast) @empty @endforelse
IDTypeProduct/Qty AmountDateProjectByDoc
{{ $ast->assistance_id }} {{ ucfirst($ast->assistance_type) }} @if($ast->product)
{{ $ast->product->product_name }}
Qty: {{ $ast->quantity }}
@else @endif
{{ $ast->amount ? '₹'.number_format($ast->amount,2) : '—' }} {{ $ast->assistance_date->format('d M Y') }} {{ Str::limit($ast->project?->project_title,25) ?? '—' }} {{ $ast->createdBy?->name ?? '—' }} @if($ast->supporting_document) @else @endif
No assistance records yet
@if($assistance->hasPages()) @endif
@endsection @push('scripts') @endpush