@extends('layouts.app',['path'=>'loans.index']) @section('title', 'Detail Employee Loan - HRMS') @section('content') @can('loan.view_detail')
@include('partials.new_alerts')
@if($loan['employee']['profile_image']) Img @else @endif
{{ $loan['employee']['name'] }}
{{ $loan['employee']['designation'] ?? '' }} {{ $loan['employee']['experience_message']?? '' }}
Employee No

{{ $loan['employee']['employee_no'] }}

Department

{{ $loan['employee']['department'] ?? '' }}

Loan Amount

{{ amount_format_number($loan['amount']) }}

Paid Amount

{{ amount_format_number($loan['paid_amount']) }}

Remaining Amount

{{ amount_format_number($loan['remaining_amount']) }}

Start Month

{{ formatDisplayDateMY($loan['start_date']) }}

End Month

{{ formatDisplayDateMY($loan['end_date']) }}

Total Installments

{{ $loan['installments'] ?? '' }}

Joining Date

{{ formatDisplayDate($loan['employee']['joining_date']) }}

Office

{{ $loan['employee']['office_location'] ?? '' }}

@if($loan['description'])
Description

{{ $loan['description'] }}

@endif
Loan Installments
{{-- @can('logs.read') @endcan --}}
@foreach ($installments as $installment) @endforeach
Installment # Due Date Amount Paid Amount Status Actions
{{ $installment['installment_number'] }} {{ formatDisplayDateMY($installment['due_date']) }} {{ amount_format_number($installment['amount']) }} {{ amount_format_number($installment['paid_amount']) }} {{ ucfirst($installment['status']) }}
@if($installment['status'] != 'paid') @can('loan.update') @endcan @can('loan.delete') @endcan @endif
@endcan @endsection @push('scripts') @endpush