/** * Displays the form for editing the specified work order. * * @param int|string $id * * @return \Illuminate\View\View */ public function edit($id) { $workOrder = $this->workOrder->findOrFail($id); $form = $this->presenter->form($workOrder); return view('work-orders.edit', compact('form')); }
/** * Displays the current users assigned work orders. * * @return \Illuminate\View\View */ public function index() { $workOrders = $this->presenter->tableAssigned($this->workOrder); $navbar = $this->presenter->navbar(); return view('work-orders.assigned.index', compact('workOrders', 'navbar')); }