route('service-orders.index'); } /** * Display the specified resource. */ public function show(ServiceOrder $serviceOrder) { return view('service-orders.show', compact('serviceOrder')); } /** * Show the form for editing the specified resource. */ public function edit(ServiceOrder $serviceOrder) { return view('service-orders.edit', compact('serviceOrder')); } /** * Update the specified resource in storage. */ public function update(Request $request, ServiceOrder $serviceOrder) { // This will be handled by Livewire component return redirect()->route('service-orders.show', $serviceOrder); } /** * Remove the specified resource from storage. */ public function destroy(ServiceOrder $serviceOrder) { // This will be handled by Livewire component return redirect()->route('service-orders.index'); } /** * Generate invoice for the service order. */ public function invoice(ServiceOrder $serviceOrder) { return view('service-orders.invoice', compact('serviceOrder')); } }