@if (isset($statistics) && $statistics)

@t('Statistics for') @date($date)

@php $total = 0; @endphp @foreach ($statistics->items as $category_id => $products) @foreach ($products as $product) @php $total += $product->total; @endphp @endforeach @endforeach
{{ $categories->{$category_id}->name }} @t('Qty') @t('Total')
@if ($categories->{$category_id}->extra->items == 1) {{ $categories->{$category_id}->name }} @else {{ $product->Product->name }} @endif {{ $product->qty }} {{ amount($product->total) }}
@t('Total') @t('Total: %s', amount($statistics->totals->net_amount))

@endif