Compare commits

..

1 Commits

Author SHA1 Message Date
23c6f1277f basics test 2024-09-18 15:02:42 -07:00

View File

@ -30,22 +30,13 @@ public function show(Customer $customer, ?string $tab = null)
return redirect()->route('customers.show', [$customer, 'tab' => 'details']);
}
$orders = $customer->orders();
$priorities = '"production", "approved", "order"';
return view('customers.show', [
'tab' => $tab,
'customer' => $customer,
'active_orders' => $orders
->where('status', '!=', 'cancelled')
->where('status', '!=', 'completed')
->orderBy('rush', 'desc')
->orderBy('due_date', 'desc')
->paginate(10),
'contacts' => $customer->contacts()->get(),
'packingSlips' => PackingSlip::where('customer_id', $customer->id)->orderByDesc('date_received')->paginate(15),
'tab' => $tab,
'customer' => $customer,
'contacts' => $customer->contacts()->get(),
'packingSlips' => PackingSlip::where('customer_id', $customer->id)->orderByDesc('date_received')->paginate(15),
'shippingEntries' => $customer->shippingEntries()->get(),
'today' => Carbon::today()->format('Y-m-d'),
'today' => Carbon::today()->format('Y-m-d'),
]);
}