@extends('admin.layouts.app') @section('title', 'View Company Expenses') @section('content')
| # | 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 ?? '' }} | |
| Total Expense: | ₹ {{ number_format((float) $total, 2) }} | ||||||||