@extends('reports.layout') @section('content') @php function fmt($amount) { return '$ ' . number_format((float)$amount, 2); } $jalaliMonths = ['حمل', 'ثور', 'جوزا', 'سرطان', 'اسد', 'سنبله', 'میزان', 'عقرب', 'قوس', 'جدی', 'دلو', 'حوت']; @endphp
|
مجموع عایدات
{{ fmt($totals['income']) }}
|
مجموع مصارف
{{ fmt($totals['expense']) }}
|
سود خالص
{{ fmt($totals['profit']) }}
|
| ماه | عایدات | مصارف | فروشات تادیه شده | سود ماهانه |
|---|---|---|---|---|
| {{ $jalaliMonths[$m['month'] - 1] }} | {{ fmt($m['income'] ?? 0) }} | {{ fmt($m['expense'] ?? 0) }} | {{ fmt($m['received'] ?? 0) }} | {{ fmt($monthProfit) }} |
| مجموع | {{ fmt($totals['income']) }} | {{ fmt($totals['expense']) }} | {{ fmt($totalReceived) }} | {{ fmt($totals['profit']) }} |