Return the inventory ended items view.

@return \Illuminate\View\View
4893
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(),
        ]);
    }
57468
private function checkStockNotEmpty()
    {
        $cart = $this->getSession()->getSessionCart($this->getDispatcher());

        $cartItems = $cart->getCartItems();

        foreach ($cartItems as $cartItem) {
            $pse = $cartItem->getProductSaleElements();

            $product = $cartItem->getProduct();

            if ($pse->getQuantity() <= 0 && $product->getVirtual() !== 1) {
                return $this->generateRedirectFromRoute('cart.view');
            }
        }

        return null;
    }
748504
public function end() {
        $containerEnd = $this->formatTemplate('containerEnd', []);
        $responsiveEnd = '';
        if ($this->_responsive) {
            $responsiveEnd = $this->formatTemplate('responsiveEnd', []);
        }
        return $this->formatTemplate('navbarEnd', [
            'containerEnd' => $containerEnd,
            'responsiveEnd' => $responsiveEnd
        ]);
    }
1064384
public function FindStockItem()
    {
        $classname = $this->ClassName;
        $id = $this->ID;
        
        if ($classname && $id) {
            return $classname::get()->byID($id);
        } else {
            return null;
        }
    }
736809
public function getRightItems()
    {
        // Transform the items into the two sides
        if (empty($this->leftItems) && empty($this->rightItems)) {
            $this->transformItems();
        }
        
        return $this->rightItems;
    }
23449
public function getBidding()
    {
        $items = Item::typeAuction()->active()->whereHas('bids', function ($query) {
            return $query->where('user_id', Auth::user()->userId);
        });

        $items = Item::typeAuction()->active()->leftJoin('bids')->where(
            'bids.user_id',
            Auth::user()->userId
        )->addSelect(
            DB::raw('max(`bids`.`amount`) as `max_bid`')
        )->addSelect(
            DB::raw('count(`bids`.`bid_id`) as `bid_count`')
        )->groupBy('items.item_id');

        $table = new InventoryBidding($items);

        return view('mustard::inventory.bidding', [
            'table' => $table,
            'items' => $table->paginate(),
        ]);
    }
1158006
public function getLast()
    {
        $result = $this->table()
            ->where('batch', $this->getLastBatchNumber())
            ->orderBy('mapping', 'desc')
            ->get();

        if (is_array($result)) {
            return $result;
        }

        return $result->toArray();
    }
408551
public function getVisitedPages()
    {
        $dates = $this->getStartEndDate();

        $items = LaravelAnalytics::getMostVisitedPagesForPeriod($dates['start'], $dates['end']);

        return $items;
    }
567014
public function getView()
    {
        // If we don't have a prefix, just return the view.
        if (is_null($this->prefix)) {
            return $this->getBaseView();
        }

        // Set up modifiable variables.
        $view     = $this->concatViewAndPrefix($this->prefix, $this->view);
        $prefixes = clone $this->prefixes;

        $this->attempted($view);

        // Try to find a valid view.
        while (! view()->exists($view)) {
            // If we are out of prefixes and the view still isn't found, back out.
            if (is_null($this->prefix) && ! view()->exists($view)) {
                $view = null;
                break;
            }

            // Remove prefixes until we don't have any left.
            if ($prefixes->count() > 0) {
                $prefixes->pop();

                $prefixes     = $this->removeControllerFromPrefixes($prefixes);
                $this->prefix = $prefixes->count() > 0 ? $prefixes->implode('.') : null;
                $view         = $this->concatViewAndPrefix($this->prefix, $this->view);
            } else {
                $this->prefix = null;
                $view         = $this->view;
            }

            $this->attempted($view);
        }

        $this->view = $view;

        return $this->view;
    }
1031881
public function getFinish()
	{
		$content = $this->getPageRange($this->lastPage - 1, $this->lastPage);

		return $this->getDots().$content;
	}
423847
public function getBought()
    {
        $items = Item::join('seller')
            ->leftJoin('purchases')
            ->where('purchases.user_id', Auth::user()->userId);

        if (mustard_loaded('auctions')) {
            $items->leftJoin('winningBid')
                ->orWhere('bids.user_id', Auth::user()->userId);
        }

        $table = new InventoryBought($items);

        return view('mustard::inventory.bought', [
            'table' => $table,
            'items' => $table->paginate(),
        ]);
    }
1358507
public function order()
    {
        $options = array(
            'order' => 'desc',
            'sort' => 'created',
            'limit' => array(0, $this->config->get('dashboard_limit', 10)));

        $items = $this->order->getList($options);

        array_walk($items, function (&$item) {
            $this->setItemTotalFormatted($item, $this->price);
            $this->setItemOrderNew($item, $this->order_history);
        });

        return $items;
    }
1257940
public function getTrashed()
    {
        if (!$this->modelAdmin->hasSoftDeleting()) {
            return $this->missingMethod();
        }

        return view('flare::admin.modeladmin.trashed', [
                                                        'modelItems' => $this->modelAdmin->onlyTrashedItems(),
                                                        'totals' => $this->modelAdmin->totals(),
                                                    ]
                                                );
    }
807778
public function getLast()
    {
        $last = null;

        if (count($this->objects) > 0) {
            $last = end($this->objects);
        }

        return $last;
    }
46226
public function fetchItem()
    {
        list ($source, $title, $action, $options) = func_get_args();

        return $this->_view->Form->button($title, Hash::merge([
            'icon'        => 'trash',
            'data-action' => $action,
            'button'      => 'red lighten-2',
            'class'       => 'jsProcessDelete',
        ], (array) $options));
    }
94060
public function index()
    {
        $items = Banner::active()->orderBy('list_order')->get();

        return $this->view('titan::banners.order')->with('items', $items);
    }
389479
public function get_visible_items()
	{
		if ($this->_items === NULL) {
			return array();
		}

		$visible_items = [];

		foreach ($this->_items as $key => $item)
		{
			if (! $item->is_visible())
			{
				continue;
			}
			$visible_items[$key] = $item;
		}

		return $visible_items;
	}