@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @push('prev-next-head')
@endpush @section('content')

Loan Information

@if ($loanRequest->approvalLevels->isNotEmpty())

Approval Details

@foreach ($loanRequest->approvalLevels as $key => $requestApproval) @endforeach
# Name Status Remarks Action At
{{ $key + 1 }} {{ $requestApproval->approver->name }} {{ $requestApproval->approver->employee_code ? '(' . $requestApproval->approver->employee_code . ')' : '' }} {{ $requestApproval->status }} {{ $requestApproval->remarks }} {{ $requestApproval->action_at }}
@endif

EMI Details @if (!in_array($loanRequest->status, ['paid', 'early_closure', 'closed'])) (Tentative) @endif

@if (@$loanRequest) @endif
EMI Type Interest Type Interest Total Amount
{{ \App\Helpers\ConstantHelper::EMI_TYPES[$loanRequest->emi_type] }} {{ \App\Helpers\ConstantHelper::INTEREST_TYPES[$loanRequest->interest_type] }} {{ $loanRequest->total_interest }} {{ $loanRequest->total_payment }}
@if ($loanRequest->mode_of_payment != 'salary_deduction') @endif @php $flag = true; @endphp @foreach (@$loanRequest->emis ?: [] as $key => $emi) @if ($loanRequest->mode_of_payment != 'salary_deduction') @endif @endforeach
# Month EMI Principal Interest Bal. Status RemarksAction
{{ $emi->sr_no }} {{ date('M, y', strtotime("$emi->year-$emi->month-01")) }} {{ $emi->emi }} {{ $emi->principal }} {{ $emi->interest }} {{ $emi->balance }} {{ $emi->status }} {{ $emi->payment_remarks ?? '-' }} @if ($flag && $emi->status == 'pending' && $emi->month <= date('m') && $emi->year <= date('Y') && $authType == 'user') @php $flag = false; @endphp @else - @endif
@endsection @push('footer-script') @endpush