@switch($enquiry->type)
@case('loan_application')
@if($enquiry->loanApplication)
Loan Amount
{{ number_format($enquiry->loanApplication->loan_amount ?? 0, 0) }} TZS
Loan Duration
{{ $enquiry->loanApplication->loan_duration ?? 'N/A' }} months
Interest Rate
{{ $enquiry->loanApplication->interest_rate ?? 'N/A' }}%
Monthly Deduction
{{ number_format($enquiry->loanApplication->monthly_deduction ?? 0, 0) }} TZS
Loan Type
{{ ucfirst($enquiry->loanApplication->loan_type ?? 'N/A') }}
@endif
@break
@case('refund')
@if($enquiry->refund)
Refund Amount
{{ number_format($enquiry->refund->refund_amount ?? 0, 0) }} TZS
Refund Duration
{{ $enquiry->refund->refund_duration ?? 'N/A' }} months
@endif
@break
@case('retirement')
@if($enquiry->retirement)
Date of Retirement:
{{ $enquiry->retirement->date_of_retirement ?? 'N/A' }}
@endif
@break
@case('condolences')
@if($enquiry->condolence)
Gender:
{{ ucfirst($enquiry->condolence->gender ?? 'N/A') }}
Dependent Member Type:
{{ ucfirst($enquiry->condolence->dependent_member_type ?? 'N/A') }}
@endif
@break
@case('deduction_add')
@if($enquiry->deduction)
From Amount:
{{ number_format($enquiry->deduction->from_amount ?? 0, 0) }} TZS
To Amount:
{{ number_format($enquiry->deduction->to_amount ?? 0, 0) }} TZS
@endif
@break
@case('injured_at_work')
@if($enquiry->injury)
@if($enquiry->injury->description)
Injury Description:
{{ $enquiry->injury->description }}
@endif
@endif
@break
@case('share_enquiry')
@if($enquiry->share)
Share Amount:
{{ number_format($enquiry->share->amount ?? 0, 0) }} TZS
Share Type:
{{ ucfirst($enquiry->share->type ?? 'N/A') }}
Request Date:
{{ $enquiry->share->request_date ?? 'N/A' }}
@endif
@break
@case('withdraw_savings')
@case('withdraw_deposit')
@if($enquiry->withdrawal)
Withdrawal Amount:
{{ number_format($enquiry->withdrawal->amount ?? 0, 0) }} TZS
Withdrawal Type:
{{ ucfirst($enquiry->withdrawal->type ?? str_replace('_', ' ', $enquiry->type)) }}
Request Date:
{{ $enquiry->withdrawal->request_date ?? 'N/A' }}
@endif
@break
@case('join_membership')
@case('unjoin_membership')
@if($enquiry->membershipChange)
Category:
{{ ucfirst($enquiry->membershipChange->category ?? 'N/A') }}
Action:
{{ ucfirst($enquiry->membershipChange->action ?? 'N/A') }}
@endif
@break
@case('sick_for_30_days')
@if($enquiry->sickLeave)
Start Date:
{{ $enquiry->sickLeave->start_date ?? 'N/A' }}
End Date:
{{ $enquiry->sickLeave->end_date ?? 'N/A' }}
Total Days:
{{ $enquiry->sickLeave->total_days ?? 'N/A' }}
@endif
@break
@case('ura_mobile')
@if($enquiry->uraMobile)
Service Type:
{{ $enquiry->uraMobile->service_type ?? 'N/A' }}
Phone Number:
{{ $enquiry->uraMobile->phone_number ?? 'N/A' }}
@endif
@break
@default
No specific details available for this enquiry type
General enquiry information is displayed in the sections above.
@endswitch