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 '
| - |