|
@if(!empty($organisation->logo))
@php
$logoPath = 'storage/app/public/' . ltrim(str_replace('storage/', '', $organisation->logo), '/');
$absolutePath = base_path($logoPath);
@endphp
@if(file_exists($absolutePath))
|
{{ $organisation->organisation_name ?? 'VERIFIN' }}
Requisition Retirement Report
|
| Department: {{ $requisition->department->name ?? 'N/A' }} | Requested By: {{ ($requisition->requested_by->first_name ?? 'N/A') . ' ' . ($requisition->requested_by->last_name ?? '') }} | Retirement Date: {{ isset($retirement->created_at) ? \Carbon\Carbon::parse($retirement->created_at)->format('d/m/Y H:i') : 'N/A' }} |
| Total Approved: {{ number_format($requisition->cash_requisition_items->sum('approved_total_cost') ?? 0, 2) }} | Total Disbursed: {{ number_format($requisition->cash_requisition_items->sum('disbursed_amount') ?? 0, 2) }} | Retired By: {{ ($retirement->retired_by->first_name ?? 'N/A') . ' ' . ($retirement->retired_by->last_name ?? '') }} |
| # | Item Description | Budget Line | Approved ({{ $requisition->currency->code ?? 'USD' }}) | Disbursed ({{ $requisition->currency->code ?? 'USD' }}) | Variance | Verified | Status |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $item->purpose ?? 'N/A' }} | {{ $item->budget_item->chart_of_account->name ?? 'N/A' }} {{ $item->budget_item->chart_of_account->code ?? '' }} |
{{ number_format($item->approved_total_cost ?? 0, 2) }} | {{ number_format($item->disbursed_amount ?? 0, 2) }} | {{ number_format($variance, 2) }} | {{ ($item->retirement_verified ?? false) ? '✔' : '✖' }} | @if($item->needs_audit ?? false) Requires Audit @elseif($item->retirement_verified ?? false) Verified @else Pending Verification @endif |
| No retirement items found | |||||||
| TOTALS | {{ number_format($requisition->cash_requisition_items->sum('approved_total_cost') ?? 0, 2) }} | {{ number_format($requisition->cash_requisition_items->sum('disbursed_amount') ?? 0, 2) }} | {{ number_format(($requisition->cash_requisition_items->sum('approved_total_cost') ?? 0) - ($requisition->cash_requisition_items->sum('disbursed_amount') ?? 0), 2) }} | ||||
| Retirement Notes: | {!! nl2br(e($retirement->notes ?? 'No notes provided')) !!} |
| Attachments: |