public function show($id, $noteId)
    {
        $item = $this->inventory->find($id);

        $note = $item->notes()->find($noteId);

        if ($note) {
            return view('inventory.notes.show', compact('item', 'note'));
        }

        abort(404);
    }
public function show($id, $noteId)
    {
        $item = $this->inventory->find($id);

        $note = $item->notes()->find($noteId);

        if ($note) {
            return view('inventory.notes.show', compact('item', 'note'));
        }

        abort(404);
    }
public function show ( $ id , $ noteId ) { $ item = $ this -> inventory -> find ( $ id ) ; $ note = $ item -> notes ( ) -> find ( $ noteId ) ; if ( $ note ) { return view ( 'inventory.notes.show' , compact ( 'item' , 'note' ) ) ; } abort ( 404 ) ; }
Displays the specified inventory note.

@param int|string $id
@param int|string $noteId

@return \Illuminate\View\View
Displays the specified inventory note .