@extends('layouts.app') @section('title') Loan List @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Employees Loan Report

@if(Session::has('success')) @endif @php $count= 1; @endphp @foreach( $employees as $list ) @php $total = \App\HrmEmployeeLoan::getData($list->id); @endphp @if($total[0] + $total[3] > 0) @endif @endforeach
S.No Name Total Advance Received Advance Remaining Advance Total Loan Recived Loan Remaining Loan Status Action
{{$count++}} {{$list->name}} {{number_format($total[3])}} {{number_format($total[4])}} {{number_format($total[5])}} {{number_format($total[0])}} {{number_format($total[2])}} {{number_format($total[1])}} @if($total[1] + $total[5] == 0 )
  • Completed
  • @elseif($total[1] + $total[5] != 0)
  • Pending
  • @endif