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

Employees Loan List

{{csrf_field()}}
@if(Session::has('success')) @endif {{--
--}} @php $count= 1; @endphp @foreach( $loan as $list ) @php $total = \App\HrmEmployeeLoanAdjusment::getData($list->id , $list->employ_id); @endphp @endforeach
S.No Date Type Amount Recived Remaining Loan status status approve Action
{{$count++}} {{$list->date}} {{$list->type}} {{$list->loan_amount}} {{$total[0]}} {{$list->remaning}} @if($list->remaning == 0 )
  • Completed
  • @elseif($list->remaning != 0)
  • Pending
  • @endif
    @if($list->is_approved == 0 )
  • Not Approved
  • @elseif($list->is_approved != 0)
  • Approved
  • @endif
    @if($list->is_approved != 1 ) Edit   Delete Approve @endif @if($list->is_approved != 0 ) Receipt @endif
    {{--
    --}}
    {{-- file bank --}}

    File Bank


    @foreach($employee_document as $d)

    @if(strpos($d->document_url, 'docx') !== false) @elseif(strpos( $d->document_url,'pdf') !== false) @else @endif

    @if(strpos($d->document_url, 'docx') !== false)  Download            @else  Preview    Download   @endif  Delete
    @endforeach
    @stop @section('js') @stop