public function index($workOrderId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

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

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

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

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

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

        return view('work-orders.sessions.index', compact('sessions', 'navbar'));
    }
public function index ( $ workOrderId ) { $ workOrder = $ this -> workOrder -> findOrFail ( $ workOrderId ) ; $ sessions = $ this -> presenter -> table ( $ workOrder ) ; $ navbar = $ this -> presenter -> navbar ( ) ; return view ( 'work-orders.sessions.index' , compact ( 'sessions' , 'navbar' ) ) ; }
Displays all sessions for the specified work order.

@param int|string $workOrderId

@return \Illuminate\View\View
Displays all sessions for the specified work order .