@extends('admin.layouts.app') @section('title', 'Order Summary Details') @section('page_title', 'Order Summary Details') @section('content')
@foreach($customers as $customer) @endforeach @forelse($rows as $index => $row) @foreach($customers as $customer) @endforeach @empty @endforelse @foreach($customers as $customer) @php $total = $rows->sum(fn($row) => $row['quantities'][$customer] ?? 0); @endphp @endforeach
SL No Product Name Unit
{{ $customer }}
Total Qty
{{ $index + 1 }} {{ $row['product_name'] }} {{ $row['unit'] }}{{ isset($row['quantities'][$customer]) ? number_format($row['quantities'][$customer], 3) : '-' }}{{ number_format($row['total_qty'], 3) }}
No order details found
Total{{ number_format($total, 3) }}{{ number_format($rows->sum(fn($r) => $r['total_qty']), 3) }}
@endsection @section('scripts') @endsection