export parcel summary

This commit is contained in:
omair saleh
2022-09-20 03:28:09 +08:00
parent f499aaa0a7
commit 3bec5b9c86
@@ -55,11 +55,11 @@ class ContainersSheet implements WithHeadings, WithHeadingRow, WithMapping, Shou
*/
public function map($container): array
{
dd($container);
$transport = $container->transports()->first();
$currentSchedule = $transport ? $transport->schedules()->where('status', '!=', ApprovalStatus::EXPIRED)->first() : null;
$scheduleHistory = $transport ? $transport->schedules()->where('status', ApprovalStatus::EXPIRED)->get() : null;
dd($transport);
$status = 'Loaded';
if($currentSchedule) {