{{ $recipient->first_name }} {{ $recipient->second_name }} {{ $recipient->third_name }} {{ $recipient->last_name }}
{{ $recipient->city }} - {{ $recipient->district }}
|
{{ $recipient->id }} |
{{ $recipient->birth_date }} |
{{ $recipient->city }} |
@forelse($recipient->phoneNumbers as $phone)
{{ $phone->phone_number }}
@empty
No phones
@endforelse
|
@forelse($recipient->nationalIds as $nid)
{{ $nid->national_id_number }}
@empty
No IDs
@endforelse
|
@forelse($recipient->fundRegistrations as $fund)
{{ ucfirst($fund->fund_type) }}
@empty
No Fund
@endforelse
|
@forelse($recipient->fundRegistrations as $fund)
{{ $fund->application_date }}
@empty
No Date
@endforelse
|
@forelse($recipient->urgentCases as $urgent)
{{ number_format($urgent->required_amount, 2) }} YR
@empty
No Amount
@endforelse
|
@forelse($recipient->urgentCases as $urgent)
{{ number_format($urgent->collected_amount, 2) }} YR
@empty
No Amount
@endforelse
|
@foreach($recipient->urgentCases as $urgent)
@if($urgent->collected_amount >= $urgent->required_amount)
completed
@else
Not completed
@endif
@endforeach
|
@forelse($recipient->fundRegistrations as $fund)
@switch($fund->fstatus)
@case('approved')
Approved
@break
@case('rejected')
Rejected
@break
@case('pending')
Pending
@break
@default
{{ $fund->fstatus }}
@endswitch
@empty
No Fund
@endforelse
|
@switch($recipient->status)
@case('Active')
Active
@break
@case('Canceled')
Canceled
@break
@case('Pending')
Pending
@break
@endswitch
|
|
@php
$statusFormId = 'urgentfunds-status-form-' . $recipient->id;
@endphp
|
|
@endforeach