@extends('layout.app') @section('css') @endsection @section('content')

Expense List

{{-- --}} @foreach ($expenses as $row) @endforeach
# StatusIncome HeadName Expense Head Employee Invoice Number Date Amount Documents Description Create By Action
{{ $row->id }} @if ($row->status == 'pending') Pending @elseif($row->status == 'approved') Approved @endif {{ $row->name }} {{ $row->head->name ?? '' }} {{ $row->employee->name ?? '' }} {{ $row->invoice_number }} {{ date('d/m/Y', strtotime($row->date)) }} {{ $row->amount }} @if (!empty($row->attach_document)) @php $isS3 = checkSettings('store_image_to_s3') === 'enable'; $imgUrl = $isS3 ? $row->attach_document // already full URL from S3 : asset('storage/expenseDocument/' . $row->attach_document); // local path @endphp Document @else

No File

@endif
{{ $row->description }} {{ $row->admin->name ?? '' }}
@endsection @section('ajax') {{-- --}} @endsection