@extends('layouts.app') @section('content')
Quick access to filter options
|
|
Employee
|
Salary
|
Deductible
|
Requested
|
Take Home
|
Employee Bank | Tenure | Submitted | Approval | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
{{ $offer->first_name }} {{ $offer->last_name }}
@if($offer->loan_type === 'topup' || $offer->offer_type === 'TOP_UP')
TOPUP
@else
NEW
@endif
{{ $offer->check_number }}
@if($offer->loan_type === 'topup' && $offer->topupAsNew && $offer->topupAsNew->original_loan_number)
{{ $offer->topupAsNew->original_loan_number }}
@endif
|
{{ number_format($offer->basic_salary ?? 0, 0) }}
Net: {{ number_format($offer->net_salary ?? 0, 0) }}
|
{{ number_format($offer->desired_deductible_amount ?? 0, 0) }}
|
{{ number_format($offer->requested_amount ?? 0, 0) }}
|
{{ number_format($offer->take_home_amount ?? $offer->net_loan_amount ?? 0, 0) }}
|
@if($offer->bank) {{ $offer->bank->short_name ?: $offer->bank->name }} @elseif($offer->swift_code) {{ $offer->swift_code }} @else No bank info @endif | @if($offer->tenure) {{ $offer->tenure }} mo @else - @endif |
@php
$isPending = in_array($offer->approval, ['PENDING', null]);
$daysWaiting = $offer->created_at ? now()->diffInDays($offer->created_at) : 0;
$hoursWaiting = $offer->created_at ? now()->diffInHours($offer->created_at) : 0;
@endphp
{{ $offer->created_at ? $offer->created_at->format('d/m/Y H:i') : 'N/A' }}
@if($isPending)
@if($daysWaiting > 7)
{{ $daysWaiting }}d waiting
@elseif($daysWaiting > 3)
{{ $daysWaiting }}d waiting
@elseif($daysWaiting >= 1)
{{ $daysWaiting }}d waiting
@elseif($hoursWaiting < 24)
{{ $hoursWaiting }}h ago
@endif
@endif
|
@switch($offer->approval)
@case('APPROVED')
Approved
@break
@case('REJECTED')
Rejected
@if($offer->reason)
@break
@case('CANCELLED')
{{ Str::limit($offer->reason, 40) }}
@endif
Cancelled
@if($offer->reason)
@break
@case('PENDING')
Pending
@break
@default
Pending
@endswitch
{{ Str::limit($offer->reason, 40) }}
@endif
|
@php
$state = $offer->state ?? $offer->status ?? 'Initiated';
@endphp
@switch(strtolower($state))
@case('initiated')
Initiated
@break
@case('loan offer at fsp')
At FSP
@break
@case('fsp rejected')
@if($offer->reason)
FSP Rejected
@else
FSP Rejected
@endif
@break
@case('loan offer at employee')
FSP Approved - At Employee
@break
@case('employee rejected')
Employee Rejected
@break
@case('pending for approval')
Pending Approval
@break
@case('employee canceled')
@case('employee cancelled')
Employee Cancelled
@if($offer->reason)
{{ Str::limit($offer->reason, 35) }} @endif @break @case('employer rejected')
Employer Rejected
@if($offer->reason)
@break
@case('submitted for disbursement')
@case('submitted_for_disbursement')
Submitted for Disbursement
@break
@case('fsp canceled')
@case('fsp cancelled')
FSP Cancelled
@break
@case('completed')
@case('disbursed')
Completed
@break
@case('waiting for liquidation')
Waiting Liquidation
@break
@case('disbursement failure')
@case('disbursement_failed')
Disbursement Failed
@break
@case('liquidated')
@case('full_settled')
Liquidated
@break
@case('approved')
Employer Approved
@break
@case('cancelled')
Cancelled
@break
@default
{{ ucfirst(str_replace('_', ' ', $state)) }}
@endswitch
{{ Str::limit($offer->reason, 40) }}
@endif
|
|
No Loan Applications FoundStart by syncing data from ESS or adjusting your filters |
|||||||||||