route('customers.index'); } /** * Display the specified resource. */ public function show(Customer $customer) { // Load relationships for the show page $customer->load(['vehicles', 'serviceOrders.vehicle', 'serviceOrders.assignedTechnician', 'appointments']); return view('customers.show', compact('customer')); } /** * Show the form for editing the specified resource. */ public function edit(Customer $customer) { return view('customers.edit', compact('customer')); } /** * Update the specified resource in storage. */ public function update(Request $request, Customer $customer) { // This is handled by the Livewire component return redirect()->route('customers.show', $customer); } /** * Remove the specified resource from storage. */ public function destroy(Customer $customer) { $customer->delete(); return redirect()->route('customers.index')->with('success', 'Customer deleted successfully.'); } }