@if ($application->application_type_id == 2)
Applicant Details
@if ($application->name)
Name on Minor child
{{ $application->name }}
@endif
@if ($application->birth_certificate_number)
Birth Certificate Number
{{ $application->birth_certificate_number }}
@endif
@if ($application->childs_aadhaar_number)
Minor Child's Aadhar Number
{{ $application->childs_aadhaar_number }}
@endif
@if ($application->loanee_name)
Full Name of Deceased
{{ $application->loanee_name }}
@endif
@if ($application->loan_account_number)
Loan Number
{{ $application->loan_account_number }}
@endif
@if ($application->ration_card_number)
Ration Card Number
{{ $application->ration_card_number }}
@endif
@if ($application->annual_income)
Annual Income
₹{{ $application->annual_income }}
@endif
Address Details
@if ($application->addressBook)
Door Number
@if ($application->addressBook)
{{ $application->addressBook->door_no }}
@endif
Building Name
@if ($application->addressBook)
{{ $application->addressBook->building_name }}
@endif
Street/ Locality
@if ($application->addressBook)
{{ $application->addressBook->street }}
@endif
Post Office
@if ($application->addressBook)
@if ($application->addressBook->postOffice)
{{ $application->addressBook->postOffice->post_office_name }}
@endif
@endif
Taluk
@if ($application->addressBook)
@if ($application->addressBook->taluk)
{{ $application->addressBook->taluk->taluk_name }}
@endif
@endif
District
@if ($application->addressBook)
@if ($application->addressBook->district)
{{ $application->addressBook->district->district }}
@endif
@endif
Pincode
@if ($application->addressBook)
@if ($application->addressBook->postOffice)
{{ $application->addressBook->postOffice->pincode }}
@endif
@endif
@endif
Society & Membership
@if ($application->society->code)
Society Code
{{ $application->society->code }}
@endif
@if ($application->societyType)
Society Type
{{ $application->societyType->name }}
@endif
@if ($application->society)
Society Name
{{ $application->society->name }}
@endif
@if ($application->society_membership_number)
Membership Number
{{ $application->society_membership_number }}
@endif
@if ($application->society_sb_account_number)
Society SB Account Number
{{ $application->society_sb_account_number }}
@endif
@if ($application->societyTaluk)
Society Taluk
{{ $application->societyTaluk->taluk_name }}
@endif
@if ($application->societyDistrict)
Society District
{{ $application->societyDistrict->district }}
@endif
Guardian Details
@if ($application->guardian_name)
Guardian's Name
{{ $application->guardian_name }}
@endif
@if ($application->guardianRelationship)
Guardian's Relationship with Child
{{ $application->guardianRelationship->name }}
@endif
@if ($application->guardians_phone_number)
Guardian's Phone Number
{{ $application->guardians_phone_number }}
@endif
Parents Death Details
@if ($application->death_certificate_number_father)
Death Certificate Number (Father)
{{ $application->death_certificate_number_father }}
@endif
@if ($application->date_of_death_father)
Date of Death (Father)
{{ date('d/m/Y', strtotime($application->date_of_death_father)) }}
@endif
@if ($application->death_certificate_number_mother)
Death Certificate Number (Mother)
{{ $application->death_certificate_number_mother }}
@endif
@if ($application->date_of_death_mother)
Date of Death (Mother)
{{ date('d/m/Y', strtotime($application->date_of_death_mother)) }}
@endif
@if ($application->membership_date)
Details added by society secretary
@if ($application->membership_date)
Society Membership Date
{{ date('d/m/Y', strtotime($application->membership_date)) }}
@endif
@if ($application->society_resolution)
@endif
@endif
{{-- loan account details --}}
@if ($application->LoanAccounts->count() > 0)
Associated Loans
@foreach ($application->LoanAccounts as $loan)
{{ $loan->loan_account_number }}
₹{{ $loan->loan_amount }}
₹{{ $loan->outstanding_amount }}
@endforeach
@endif
{{-- @if ($application->loan_amount)
Loan Details
@if ($application->loan_amount)
Loan Amount
₹{{ $application->loan_amount }}
@endif
@if ($application->loan_numbers)
Loan Numbers
{{ $application->loan_numbers }}
@endif
@if ($application->outstanding_amount)
Outstanding Amount
₹{{ $application->outstanding_amount }}
@endif
@endif --}}
@elseif($application->application_type_id == 1)
Applicant & Address
@if ($application->name)
Full Name
{{ $application->name }}
@endif
@if ($application->phone_number)
Mobile Number
{{ $application->phone_number }}
@endif
@if ($application->aadhaar_number)
Aadhar Number
{{ $application->aadhaar_number }}
@endif
@if ($application->ration_card_number)
Ration Card Number
{{ $application->ration_card_number }}
@endif
@if ($application->annual_income)
Anual Income
₹{{ $application->annual_income }}
@endif
Address Details
@if ($application->addressBook)
Door Number
@if ($application->addressBook)
{{ $application->addressBook->door_no }}
@endif
Building Name
@if ($application->addressBook)
{{ $application->addressBook->building_name }}
@endif
Street/ Locality
@if ($application->addressBook)
{{ $application->addressBook->street }}
@endif
Post Office
@if ($application->addressBook)
@if ($application->addressBook->postOffice)
{{ $application->addressBook->postOffice->post_office_name }}
@endif
@endif
Taluk
@if ($application->addressBook)
@if ($application->addressBook->taluk)
{{ $application->addressBook->taluk->taluk_name }}
@endif
@endif
District
@if ($application->addressBook)
@if ($application->addressBook->district)
{{ $application->addressBook->district->district }}
@endif
@endif
Pincode
@if ($application->addressBook)
@if ($application->addressBook->postOffice)
{{ $application->addressBook->postOffice->pincode }}
@endif
@endif
@endif
Society & Membership
@if ($application->society->code)
Society Code
{{ $application->society->code }}
@endif
@if ($application->societyType)
Society Type
{{ $application->societyType->name }}
@endif
@if ($application->society)
Society Name
{{ $application->society->name }}
@endif
@if ($application->society_membership_number)
Membership Number
{{ $application->society_membership_number }}
@endif
@if ($application->society_sb_account_number)
Society SB Account Number
{{ $application->society_sb_account_number }}
@endif
@if ($application->societyTaluk)
Society Taluk
{{ $application->societyTaluk->taluk_name }}
@endif
@if ($application->societyDistrict)
Society District
{{ $application->societyDistrict->district }}
@endif
Medical & Financial Details
@if ($application->diseaseAccident)
Disease/Accident
{{ $application->diseaseAccident->name }}
@endif
@if ($application->disease_accident_description)
Description
{{ $application->disease_accident_description }}
@endif
@if ($application->hospital)
Hospital
{{ $application->hospital->name }}
@endif
@if ($application->amount_spent)
Amount Spent
₹{{ $application->amount_spent }}
@endif
@if ($application->amount_expected_for_treatment)
Amount Expected
₹{{ $application->amount_expected_for_treatment }}
@endif
@if ($application->membership_date)
Details added by society secretary
@if ($application->membership_date)
Society Membership Date
{{ date('d/m/Y', strtotime($application->membership_date)) }}
@endif
@if ($application->society_resolution)
@endif
@endif
@endif
Recommendation & Actions
{{--
--}}
Uploaded Documents
| # |
Document Name |
Actions |
@foreach ($application->attachments as $key => $attachment)
| {{ $key + 1 }} |
@if ($attachment->file_type == 'medical_certificate')
Medical Certificate
@else
{{ $attachment->attachment_name }}
@endif
|
View
|
@endforeach
Recommended Amount History
| # |
Amount Suggested by |
Comment |
Amount |
@if (count($application->amountRecommendations) > 0)
@foreach ($application->amountRecommendations as $key => $recommendation)
| {{ $key + 1 }} |
{{ $recommendation->user->name }}-{{ $recommendation->Seat->name }}-{{ $recommendation->Seat->office->name }}
|
{{ $recommendation->comments ?? '-' }} |
₹{{ $recommendation->amount }} |
@endforeach
@else
| No recommendations yet |
@endif
@foreach ($application->fileFlows as $flow)
application_status_id == 2 || $flow->application_status_id == 11) style="background-color:BlanchedAlmond;" @endif>
From:
{{ $flow->Initiator->name }} @if ($flow->initiatorSeat)
-{{ $flow->initiatorSeat->name }} of
{{ $flow->initiatorSeat->office->name }}
@endif
Status: {{ $flow->ApplicationStatus->status_name }}
@if ($flow->Recommendation)
Recommendation: {{ $flow->Recommendation->name }}
@endif
@if ($flow->actual_recommended_amount)
Recommended Amount: ₹{{ $flow->actual_recommended_amount }}
@endif
------------------------------------- >
To:
@if ($flow->Receiver)
{{ $flow->Receiver->name }}
@else
Receiver not assigned
@endif
@if ($flow->receiverSeat)
- {{ $flow->receiverSeat->name }} of
@endif
Status:
@if ($flow->status == 1)
Action Pending
@else
@if ($flow->file_flow_type_id == 1)
Action Taken
@elseif($flow->file_flow_type_id == 2)
Reversed
@elseif($flow->file_flow_type_id == 3)
Marked as defect
@endif
@endif
Movement on: {{ date('d M Y h:i:s a', strtotime($flow->created_at)) }}
@if ($flow->comments)
Comment: {{ $flow->comments }}
@endif
@endforeach
@if ($application->application_status_id == 9)
@if ($application->application_type_id == 1)
Disbursement Details
| # |
Status |
Amount |
Date |
Disbursed By |
@foreach ($application->disbursements as $key => $d)
| {{ $key + 1 }} |
{{ $d->status->name ?? '-' }} |
₹ {{ number_format($d->amount_disbursed, 2) }} |
{{ date('d/m/Y', strtotime($d->disbursement_date)) }}
|
{{ $d->secretary->name ?? '-' }} |
@endforeach
@endif
@if ($application->application_type_id == 2 && $loanAccounts->isNotEmpty())
Disbursement Details
| # |
Loan Account |
Amount |
Outstanding |
Seat |
Disbursed By |
@foreach ($loanAccounts as $key => $loan)
| {{ $key + 1 }} |
{{ $loan->loan_account_number }} |
₹ {{ number_format($loan->loan_amount, 2) }} |
₹ {{ number_format($loan->outstanding_amount, 2) }}
|
{{ $loan->seat->name ?? '-' }} |
{{ $loan->user->name ?? '-' }} |
@endforeach
@endif
@endif