@extends('portal.layout.app') @section('content')
HR Services / Expenses / Expense Applications
@php if(!empty($data)){ $total_amount = $data[2]; $system_policies_flag = $data[1]; $data=(object)$data[0]; $data->data=(object)$data->data; } else{ $data = []; $total_amount = $data[2]??0; $system_policies_flag = $data[1]??null; } @endphp
[ Download PDF / XLS  ]
Expense Applications Status Report
@if($system_policies_flag) @endif @if(isset($data->total) && $data->total != 0) @foreach($data->data as $key =>$value) @php $value=(object)$value; @endphp @if(isset($value->empcod)) @php $exp_date=''; if(isset($value->exp_date)) { $exp_date=dateFromat($value->exp_date); } $application_status='Approved'; if($value->hr_status == 1) { $application_status='Pending'; } if($value->lm_status == 3 || $value->hr_status == 3) { $application_status='Disapproved'; } if($value->lm_status == 4 || $value->hr_status == 4) { $application_status='Resubmit'; } @endphp @if($system_policies_flag)@endif @endif @endforeach() @else @endif
Sr No. Emp Code Name Region Application Date Expense Month Expense Type Amount Cost Center Approval Date Application Status
{{$key+1}} {{$value->empcod}} {{$value->name}} {{$value->e_country}} {{ dateFromat($value->added_on) }} {{$exp_date}} {{$value->type}} {{$value->symbol}}  @if ($value->tar_adv_amt) {{number_format($value->tar_adv_amt - $value->tamount, 2)}} @else {{number_format($value->tamount, 2)}} @endif {{$value->label}}{{ $value->hr_date?dateFromat($value->hr_date):'' }} {!!statusName($application_status)!!}
No Data Found
{{number_format($total_amount, 2)}}
@stop @section('scripts') @endsection