@extends('layouts.base') @section('title', 'Dashboard') @section('content')

Dashboard

All Customer ({{ $allCustomer }})
All Modal ({{ $allCategories }})
All Products ({{ $allProducts }})
  • Orders

@foreach ($allOrder as $allOrder) @php $totalPrice = 0; $totalQuantity = 0; @endphp @endforeach
Order Number Container No Total Price Quantity Date Action
{{ $allOrder->orderNumber }} {{ $allOrder->ContainerNo }} @foreach ($groupedOrders[$allOrder->ContainerNo] as $order) @php $totalPrice += $order->totalprice; @endphp @endforeach {{ number_format($totalPrice) }} @foreach ($groupedOrders[$allOrder->ContainerNo] as $order) @php $totalQuantity += $order->totalItems; @endphp @endforeach {{ number_format($totalQuantity) }} {{ $allOrder->date }}
@endsection