@extends('layouts.store') @section('title', 'Supplier report — Meatworx') @section('content')

Daily report

Quantities only, no customer prices

Excel Supply prices Updated {{ $generatedAt->format('h:i A') }}
@forelse($grouped as $category => $rows)

{{ $category }}

@foreach($types as $type)@endforeach @foreach($rows as $row) @foreach($types as $type) @endforeach @endforeach
Product{{ $type }}Total
{{ $row['name'] }} ({{ $row['unit'] }}) {{ $row['types'][$type] ?? 0 }} @foreach($row['customers'][$type] ?? [] as $customer => $qty) {{ $customer }} {{ $qty }} @endforeach {{ $row['total'] }}
@empty

No quantities for this delivery date.

@endforelse @if($comments)

Instructions

    @foreach($comments as $comment)
  • {{ $comment }}
  • @endforeach
@endif

Orders

@foreach($orders as $order)
@csrf
{{ $order->order_number }} {{ $order->user->company_name ?: $order->user->name }} · {{ ucfirst($order->status) }}
@if(in_array($order->status, ['placed', 'locked'], true)) @endif
@if(in_array($order->status, ['placed', 'locked'], true))
@csrf
@endif @if($order->status === 'accepted')
@csrf
@endif @endforeach
@endsection