@extends('reports.layout') @section('content') @php function fmt($amount) { return '$ ' . number_format((float)$amount, 2); } @endphp @if($expenses->isEmpty())
@else| # | تاریخ | دستهبندی | حساب | توضیحات | مبلغ |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ \App\Helpers\Jalali::formatForDisplay(substr($expense->date, 0, 10)) }} | {{ $expense->category->name_fa ?? '-' }} | {{ $expense->account->name ?? '-' }} | {{ $expense->description ?? '-' }} | {{ fmt($expense->amount) }} |
| مجموع | {{ fmt($total) }} | ||||