@php $title = 'Expense Requests' @endphp @section('title') {{$title}} @endsection @extends('layout') @section('main-content')

{{$title}}

@foreach($expenseRequests as $expenseRequest) @endforeach
Sl.no Employee Type Amount Proof Expense Date Remarks Status Actions
{{$expenseRequest->id}} {{$expenseRequest->user->getFullName()}} {{$expenseRequest->expenseType->name}} {{$expenseRequest->amount}} @if(empty($expenseRequest->document)) No Proof @else @endif {{$expenseRequest->created_at}} {{$expenseRequest->remarks}}
@if($expenseRequest->status == 'pending') Pending @elseif($expenseRequest->status == 'approved') Approved @elseif($expenseRequest->status == 'rejected') Rejected @endif
@endsection @section('scripts') @endsection