@foreach ($brandBreakdown as $row)
| {{ $row['name'] }} |
@if ($can['sales'])
{{ number_format($row['sales'], 2) }} |
{{ number_format($row['profit'], 2) }} |
@endif
@if ($can['purchases'])
{{ number_format($row['purchases'], 2) }} |
@endif
@if ($can['inventory'])
{{ number_format($row['stock'], 2) }} |
@endif
@endforeach
| All brands |
@if ($can['sales'])
{{ number_format($brandBreakdown->sum('sales'), 2) }} |
{{ number_format($brandBreakdown->sum('profit'), 2) }} |
@endif
@if ($can['purchases'])
{{ number_format($brandBreakdown->sum('purchases'), 2) }} |
@endif
@if ($can['inventory'])
{{ number_format($brandBreakdown->sum('stock'), 2) }} |
@endif