Compare commits
1 Commits
83c3ad6e5e
...
23c6f1277f
Author | SHA1 | Date | |
---|---|---|---|
23c6f1277f |
@ -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'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user