Aylık maliyet ve gelir analizi
| Ay | Satışlar | Maliyetler | Kar/Zarar | Karlılık Oranı | Durum |
|---|---|---|---|---|---|
|
{{ $report['monthName'] ?? 'Ay' }} {{
$report['year'] }}
|
{{ number_format($report['sales'], 2, ',', '.') }} ₺
|
{{ number_format($report['costs'], 2, ',', '.') }} ₺
|
{{ number_format($report['profit'], 2, ',', '.') }} ₺
|
@php
$profitRate = $report['sales'] > 0 ? (($report['profit'] / $report['sales']) * 100) : 0;
@endphp
{{ number_format($profitRate, 2, ',', '.') }}%
|
{{ $report['profit'] >= 0 ? 'Kar' : 'Zarar' }} |
| Veri bulunamadı | |||||
| Toplam | {{ number_format(collect($reports)->sum('sales'), 2, ',', '.') }} ₺ | {{ number_format(collect($reports)->sum('costs'), 2, ',', '.') }} ₺ | {{ number_format(collect($reports)->sum('profit'), 2, ',', '.') }} ₺ | @php $totalSales = collect($reports)->sum('sales'); $totalProfit = collect($reports)->sum('profit'); $totalProfitRate = $totalSales > 0 ? (($totalProfit / $totalSales) * 100) : 0; @endphp {{ number_format($totalProfitRate, 2, ',', '.') }}% | |