@extends('layouts.app') @section('content')
Count: {{ $approvalsSummary->total_count }}
Amount: {{ number_format($approvalsSummary->total_sum, 2) }}
Count: {{ $approvalsSummary->approved_count }}
Amount: {{ number_format($approvalsSummary->approved_sum, 2) }}
Count: {{ $approvalsSummary->pending_count }}
Amount: {{ number_format($approvalsSummary->pending_sum, 2) }}
Count: {{ $approvalsSummary->rejected_count }}
Amount: {{ number_format($approvalsSummary->rejected_sum, 2) }}
Date | Type | Customer/Supplier | Amount | Status |
---|---|---|---|---|
{{ $approval->date }} | {{ (get_class($approval) == 'App\Models\Recovery')?"Recovery":"Disbursement" }} | @if (get_class($approval) === 'App\Models\Recovery') {{ $approval->customer->name ?? 'N/A' }} @elseif (get_class($approval) === 'App\Models\Disbursement') {{ $approval->supplier->name ?? 'N/A' }} @else N/A @endif | {{ number_format($approval->amount, 2) }} | {{ $approval->status ?? 'N/A' }} |