@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']) }}
@forelse($months as $m) @php $monthProfit = (float)($m['income'] ?? 0) - (float)($m['expense'] ?? 0); @endphp @empty @endforelse @php $totalReceived = 0; foreach($months as $m) { $totalReceived += (float)($m['received'] ?? 0); } @endphp
ماه عایدات مصارف فروشات تادیه شده سود ماهانه
{{ $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']) }}
@endsection