@extends('reports.layout') @section('content') @php function fmt($amount) { return '$ ' . number_format((float)$amount, 2); } @endphp
فروشات (پرداختی فاکتورها)
@forelse($salesTransactions as $index => $sale) @empty @endforelse
# تاریخ مشتری شماره فاکتور توضیحات مبلغ
{{ $index + 1 }} {{ \App\Helpers\Jalali::formatForDisplay(substr($sale->date, 0, 10)) }} {{ $sale->invoice->customer->name ?? '-' }} {{ $sale->invoice->invoice_number ?? '-' }} {{ $sale->description ?? '-' }} {{ fmt($sale->amount) }}
داده‌ای ثبت نشده است
مجموع فروشات {{ fmt($totalSales) }}
عایدات متفرقه
@forelse($otherIncome as $index => $income) @empty @endforelse
# تاریخ نوع توضیحات مبلغ
{{ $index + 1 }} {{ \App\Helpers\Jalali::formatForDisplay(substr($income->date, 0, 10)) }} {{ $income->category->name_fa ?? '-' }} {{ $income->description ?? '-' }} {{ fmt($income->amount) }}
داده‌ای ثبت نشده است
مجموع عایدات متفرقه {{ fmt($totalOther) }}
خلاصه عایدات
مجموع فروشات {{ fmt($totalSales) }}
مجموع عایدات متفرقه {{ fmt($totalOther) }}
مجموع عایدات کل {{ fmt($grandTotal) }}
@endsection