From e1c4d674b635f90c9482a28ee714d3d06f044402 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 18 Mar 2022 17:48:18 +0800 Subject: [PATCH] smc report for specific containers --- routes/web.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 53c54686..194aed72 100644 --- a/routes/web.php +++ b/routes/web.php @@ -262,7 +262,10 @@ Route::get('/customer/summary/monthly', function () { CBM '; foreach ($packingLists as $packingList){ - $packages = $packingList->packingLists->first()->packages; + if($packingList->packingLists->first()){ + $packingList = $packingList->packingLists->first(); + } + $packages = $packingList->packages; foreach ($packages as $package){ echo ' -