public function getEnded()
    {
        $items = Auth::user()->items()->where('end_date', '<', time());

        $table = new InventoryEnded($items);

        return view('mustard::inventory.ended', [
            'table' => $table,
            'items' => $table->paginate(),
        ]);
    }
public function getEnded()
    {
        $items = Auth::user()->items()->where('end_date', '<', time());

        $table = new InventoryEnded($items);

        return view('mustard::inventory.ended', [
            'table' => $table,
            'items' => $table->paginate(),
        ]);
    }
public function getEnded ( ) { $ items = Auth :: user ( ) -> items ( ) -> where ( 'end_date' , '<' , time ( ) ) ; $ table = new InventoryEnded ( $ items ) ; return view ( 'mustard::inventory.ended' , [ 'table' => $ table , 'items' => $ table -> paginate ( ) , ] ) ; }
Return the inventory ended items view.

@return \Illuminate\View\View
Return the inventory ended items view .