@extends('admin.layouts.app') @section('title', 'Expense Report') @section('content')
| # | Date | Expense Type | Description | Amount (₹) | Payment Mode | Reference No | Attachment | Created By |
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $row->ExpenseDate ? date('d/m/Y', strtotime($row->ExpenseDate)) : '' }} | {{ $row->ExpenseTypeName ?? 'Unknown' }} | {!! nl2br(e($row->Description ?? '')) !!} | {{ number_format((float) $row->Amount, 2) }} | {{ $row->PaymentMode }} | {{ $row->ReferenceNo }} | @if (! empty($row->Attachment) && file_exists(public_path('uploads/expenses/'.$row->Attachment))) View @else No File @endif | {{ $row->CreatedByName ?? '' }} |
| Total Expense: | ₹ {{ number_format($total, 2) }} | |||||||