@extends('portal.layout.app') @section('content')
HR Services / Expense / Expense Applications
@php if(!empty($data)){ $data=(object)$data[0]; $data->data=(object)$data->data; } else{ $data = []; } @endphp
Expense List
@if(isset($data->total) && $data->total != 0) @foreach ($data->data as $key=>$app) @php $app=(object)$app; @endphp @endforeach @else @endif
Employee ID Name Application Date Expense Month Expense Type Amount LM Status HR Status
{{$app->empcod}} {{$app->name}} {{ dateFromat($app->added_on) }} {{ dateFromat($app->exp_date) }} {{$app->type}} {{$app->symbol}}  @if ($app->tar_adv_amt) {{ number_format($app->tar_adv_amt - $app->tamount, 2) }} @else {{ number_format($app->tamount, 2) }} @endif @if ($app->lm_status == 1) Pending @elseif ($app->lm_status == 2) Approved @elseif ($app->lm_status == 3) DisapprovedCm @endif @if ($app->hr_status == 1) Pending @elseif ($app->hr_status == 2) Approved @elseif ($app->hr_status == 3) DisapprovedCm @endif
No Data Found
@endsection @section('scripts') @endsection