public function getEnd($itemId)
    {
        $item = Item::findOrFail($itemId);

        if ($item->isEnded()) {
            return redirect('/item/'.$item->itemId);
        }

        return view('mustard::item.end', [
            'item' => $item,
        ]);
    }
public function getEnd($itemId)
    {
        $item = Item::findOrFail($itemId);

        if ($item->isEnded()) {
            return redirect('/item/'.$item->itemId);
        }

        return view('mustard::item.end', [
            'item' => $item,
        ]);
    }
public function getEnd ( $ itemId ) { $ item = Item :: findOrFail ( $ itemId ) ; if ( $ item -> isEnded ( ) ) { return redirect ( '/item/' . $ item -> itemId ) ; } return view ( 'mustard::item.end' , [ 'item' => $ item , ] ) ; }
Return the end item view.

@param int $itemId

@return \Illuminate\View\View
Return the end item view .