@extends('reports.layout') @section('content') @php function fmt($amount) { return '$ ' . number_format((float)$amount, 2); } @endphp @if($expenses->isEmpty())
داده‌ای ثبت نشده است
@else @foreach($expenses as $index => $expense) @endforeach
# تاریخ دسته‌بندی حساب توضیحات مبلغ
{{ $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) }}
@endif @endsection