@if($data['org_facilities_info'])

Payable Informaton:

@foreach($data['org_facilities_info']->facilities as $org_facility) @endforeach
Facilities Own Org Interest Total
{{ $org_facility->name }} {{ ($org_facility->amount_info && isset($org_facility->amount_info['own'])) ? number_format($org_facility->amount_info['own'], 2) : '-' }} {{ ($org_facility->amount_info && isset($org_facility->amount_info['org'])) ? number_format($org_facility->amount_info['org'], 2) : '-' }} {{ ($org_facility->amount_info && isset($org_facility->amount_info['interest'])) ? number_format($org_facility->amount_info['interest'], 2) : '-' }} {{ ($org_facility->total_amount) ? number_format($org_facility->total_amount, 2) : '0.00' }}
Total {{ number_format($data['org_facilities_info']->ownTotalAmount, 2) }} {{ number_format($data['org_facilities_info']->orgTotalAmount, 2) }} {{ number_format($data['org_facilities_info']->interestTotalAmount, 2) }} {{ number_format($data['org_facilities_info']->grandTotalAmount, 2) }}

@endif @php $totalLoanAmount = $data['emp_loan_info']['salary_advanced_loan_amount'] + $data['emp_loan_info']['vehicle_loan_amount'] + $data['emp_loan_info']['pf_loan_amount'] + $data['emp_loan_info']['other_advanced'] + $data['emp_loan_info']['wf_loan']; if($data['getLatestAmountValue'] && isset($data['getLatestAmountValue']['other_loan'])) { $totalLoanAmount = $totalLoanAmount + $data['getLatestAmountValue']['other_loan']; } if($historyData != null && isset($historyData->payable_N_loan->loan->fine_loan)) { $totalLoanAmount = $totalLoanAmount + $historyData->payable_N_loan->loan->fine_loan; } else if($data['getLatestAmountValue'] != null && isset($data['getLatestAmountValue']['fine_loan'])) { $totalLoanAmount = $totalLoanAmount + $data['getLatestAmountValue']['fine_loan']; } @endphp

Loan & Other Deduction:

Salary Advanced Vehicle Loan PF Loan Other Loan
Other Advanced Fine payable_N_loan->loan->fine_loan)) value='{{ $historyData->payable_N_loan->loan->fine_loan }}' @elseif($data['getLatestAmountValue'] != null && isset($data['getLatestAmountValue']['fine_loan'])) value='{{ $data['getLatestAmountValue']['fine_loan'] }}' @else value='' @endif /> Wf Contri. Total