@php $items = \App\Models\FinancialItem::where('related_type', \App\Models\Project::class) ->where('related_id', $getRecord()?->id) ->get(); @endphp @if($items->isEmpty())
No financial items linked yet. Use the "Add Mandatory Levy" or "Add Voluntary Donation" buttons at the top of this page.
@else
@foreach($items as $item) @endforeach
Name Category Amount Type Status
{{ $item->title }} {{ \App\Models\FinancialItem::CATEGORIES[$item->category] ?? ucfirst($item->category) }} {!! '₦' !!}{{ number_format($item->amount, 2) }} @if($item->is_optional) Voluntary @else Mandatory @endif @if($item->is_active) Active @else Inactive @endif
@endif