@extends('layouts.app') @section('heading', 'Reports') @section('subheading', $from.' to '.$to) @section('actions') Daily summary @endsection @section('content')
Gross sales{{ money($gross) }}
Net after refunds{{ money($net) }}
VAT included{{ money($vat) }}
Gross profit{{ money($profit) }}
Transactions{{ $count }} · average {{ money($average) }}
Discounts{{ money($discounts) }}
Refunds{{ money($refunds) }} · {{ $returnCount }} returns
Cost of goods{{ money($cogs) }}
Gross margin{{ $margin }}%
Stock value on hand{{ money($stockValue) }}
Lay-by payments (period){{ money($laybyPayments) }}
Open lay-by balances{{ money($laybyBalance) }}
@foreach($payments as $method => $total)
{{ ucfirst($method) }}{{ money($total) }}
@endforeach
@php $rows = match($type) { 'categories' => $byCategory, 'cashiers' => $cashiers, 'channels' => $byChannel, default => $best, }; @endphp @foreach($rows as $row) @endforeach
{{ $type === 'cashiers' ? 'Cashier' : ($type === 'categories' ? 'Category' : ($type === 'channels' ? 'Channel' : 'Product')) }}QtyTotal
{{ $row->label }}{{ $row->qty }}{{ money($row->total) }}
@foreach($byBrand as $row) @endforeach
BrandQtyTotal
{{ $row->label }}{{ $row->qty }}{{ money($row->total) }}
@if($type === 'inventory')
@foreach($stock as $row) @endforeach
SKUProductOn handReservedValue
{{ $row['sku'] }} {{ $row['product'] }} {{ $row['on_hand'] }} {{ $row['reserved'] }} {{ money($row['value']) }}
@endif @if($type === 'slow')
@forelse($slowMoving as $row) @empty @endforelse
SKUProductOn handAvailable
{{ $row['sku'] }} {{ $row['product'] }} {{ $row['on_hand'] }} {{ $row['available'] }}
No slow-moving stock in this period.
@endif @if($type === 'laybys')
@foreach($laybys as $layby) @endforeach
Lay-byCustomerStatusBalanceDue
{{ $layby->number }} {{ $layby->customer->name }} {{ $layby->status }} {{ money($layby->balance) }} {{ optional($layby->due_date)->format('d M Y') }}
@endif @endsection