app/Processors/WorkOrder/WorkOrderProcessor.php
public function show($id)
    {
        $workOrder = $this->workOrder->findOrFail($id);

        $sessions = $this->presenter->tableSessions($workOrder);

        $history = $this->presenter->tableHistory('work-orders', $workOrder->revisions());

        $navbar = $this->presenter->navbarShow($workOrder);

        $formComment = $this->presenter->formComment($workOrder, $workOrder->comments()->getRelated());

        return view('work-orders.show', compact('workOrder', 'sessions', 'history', 'navbar', 'formComment'));
    }
public function show($id)
    {
        $workOrder = $this->workOrder->findOrFail($id);

        $sessions = $this->presenter->tableSessions($workOrder);

        $history = $this->presenter->tableHistory('work-orders', $workOrder->revisions());

        $navbar = $this->presenter->navbarShow($workOrder);

        $formComment = $this->presenter->formComment($workOrder, $workOrder->comments()->getRelated());

        return view('work-orders.show', compact('workOrder', 'sessions', 'history', 'navbar', 'formComment'));
    }
Displays the specified work order.

@param int|string $id

@return \Illuminate\View\View