@extends('layouts.app',['path'=>'loans.index']) @section('title', 'Employee Loans - HRMS') @section('content') @can('loan.read')
@include('partials.new_alerts')
Employee Loans List
@foreach ($loans as $loan) @endforeach
Employee Name Employee No Amount Installments Start Month End Month Status Actions
@if($loan['employee_profile_image']) img @else img @endif

{{ $loan['employee_no'] }}

{{ amount_format_number($loan['amount'])?? '*****' }} {{ $loan['installments'] }} {{ formatDisplayDateMY($loan['start_date']) }} {{ formatDisplayDateMY($loan['end_date']) }} {{ ucfirst($loan['status']) }}
@can('loan.view_detail') @endcan @if($loan['paid_installments'] == 0) @can('loan.update') @endcan @can('loan.delete') @endcan @endif @can('logs.read') @endcan
@endcan @endsection