@extends('admin.layout.master') @section('content') @include('flash-message')
{{__('obs.loan_list')}}
{{__('obs.add_loan')}}
{{-- --}} {{-- --}} @if(!empty($loans)) @foreach ($loans as $l) {{-- --}} {{-- --}} @endforeach @endif
{{__('obs._name')}} {{__('obs.employee_code')}} {{__('obs.department')}} {{__('obs.amount')}} {{__('obs.due')}} {{__('obs.apply_date')}} {{__('obs.start_at')}}approve atStatusAction{{__('obs.')}}
{{$l->empinfo->emp_name ?? null}} {{$l->empinfo->emp_code ?? null}} {{$l->empinfo->fetch_department->name ?? null}} {{$l->amount}} {{$l->amount - $l->loan_advance_payment_history->sum('total_adjusted_amount')}} {{date('d-m-Y', strtotime($l->application_date))}} {{$l->start_month ? date('F-Y', strtotime($l->start_month)) : null}}{{$l->disburse_date}}
@if ($l->approve_status == 2) @endif {{-- Approval --}} @if($l->approve_status==1) @if($l->start_month) {!! getApprovalInputField($l->id,$action_id) !!} @endif @else   @endif {{__('obs.edit')}}  @if ($l->approve_status == 2) @endif @if ($l->approve_status == 5) @endif
@include('payroll.loan_advance.loan.loan_payment_modal') @include('payroll.loan_advance.loan.loan_approve_modal') @endsection @section('script') @endsection