@extends('layout.main')
@section('content')
{{ __('Update Loan Status') }}
{{ __('Status') }}
@switch($loan->level_status_id)
@case(0)
Pending
@break
@case(1)
Approved
@break
@case(3)
Declined
@break
@endswitch
{{ __('Amount') }}
{{ number_format($loan->loan_amount) }}
{{ __('Loan Type') }}
{{ $loan->loanType->product_name }}
{{ __('Client(s)') }}
@if ($loan->loan_category_id == \App\Constants\LoanConstants::INDIVIDUAL_LOAN)
{{ optional($loan->individualClient)->client->fullname }}
@else
@foreach ($loan->groupClients as $groupClient)
{{ $groupClient->client->fullname }}
@endforeach
@endif
{{ __('Loan Officer') }}
{{ $loan->officers->fullname }}
{{ __('Interest Rate') }}
{{ $loan->interest_rate }} %
@endsection