@if($expense) @if(count($expense->expense_details) > 0) @foreach ($expense->expense_details as $key=> $exp) @endforeach @else @endif @endif
Expense details of {{$expense->name}}
@php $date=date_create($expense->exp_date); $lm_status = "Pending"; $hr_status = "Pending"; if($expense->lm_status == 2){ $lm_status = "Approved"; } if($expense->lm_status == 3){ $lm_status = "Disapproved"; } if($expense->lm_status == 4){ $lm_status = "Resubmit"; } if($expense->hr_status == 2){ $hr_status = "Approved"; } if($expense->hr_status == 3){ $hr_status = "Disapproved"; } if($expense->hr_status == 4){ $hr_status = "Resubmit"; } @endphp [Expense Month: {{date_format($date,"F Y")}}]   [Line Manager Status: {{$lm_status}}]   [HR Status: {{$hr_status}}]
[Total Amount: {{$expense->symbol}} {{$expense->total_amount}}]
Sr.# Expense Date Type Description Amount Receipt
{{$key+1}} {{$exp->exp_date}} {{$exp->type}} {{$exp->descr}} {{$exp->amount}} View
Line Manager's Comments: 
HR Manager's Comments: 
No expense found