@foreach($expenses as $value) @if($page_type == 'report') @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 {{$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 @if($systemPoliciesFlag){{$value->label}}@endif {{!is_null($value->hr_date)?dateFromat($value->hr_date):''}} {!!statusName($application_status)!!} @else {{$value->empcod}} {{$value->name}} {{ dateFromat($value->added_on) }} {{ dateFromat($value->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 @if ($value->lm_status == 1) Pending @elseif ($value->lm_status == 2) Approved @elseif ($value->lm_status == 3) DisapprovedCm @endif @if ($value->hr_status == 1) Pending @elseif ($value->hr_status == 2) Approved @elseif ($value->hr_status == 3) DisapprovedCm @endif @endif @endforeach