@extends('admin.layouts.app') @section('title', 'View Company Expenses') @section('content')

View Company Expenses Add Expense

@foreach ($expenses as $index => $row) @endforeach
# Date Expense Type Description Amount (₹) Payment Mode Reference No Attachment Created By Action
{{ $index + 1 }} {{ $row->ExpenseDate ? $row->ExpenseDate->format('d/m/Y') : '' }} {{ $row->category->Name ?? 'Unknown' }} {!! nl2br(e($row->Description)) !!} {{ number_format((float) $row->Amount, 2) }} {{ $row->PaymentMode }} {{ $row->ReferenceNo }} @if ($row->Attachment && file_exists(public_path('uploads/expenses/'.$row->Attachment))) View @else No File @endif {{ $row->creator->Name ?? '' }}
@csrf @method('DELETE')
Total Expense: ₹ {{ number_format((float) $total, 2) }}
@endsection @push('scripts') @endpush