Return the item listings view.

@return \Illuminate\View\View
332483
public function getIndex(Request $request, $path = null)
    {
        $items = Item::active();

        if ($request->input('q')) {
            $items->keywords($request->input('q'));
        }

        // Handle root
        if (is_null($path)) {
            $category = null;
        } else {
            $tree = explode('/', $path);

            $category = Category::findBySlug(array_slice($tree, -1)[0]);

            $items->whereHas('categories', function ($query) use ($category) {
                $query->whereIn(
                    'categories.category_id',
                    array_merge($category->getDescendantIds(), [$category->getKey()])
                );
            });
        }

        $table = new ListingItems($items, $request);

        $table->with('categories');

        if (mustard_loaded('auctions')) {
            $table->with('bids');
        }

        if (mustard_loaded('media')) {
            $table->with('photos');
        }

        return view('mustard::listings.list', [
            'categories' => Category::roots()
                ->with('children')
                ->orderBy('sort', 'asc')
                ->orderBy('name', 'asc')
                ->get(),
            'table'         => $table,
            'items'         => $table->paginate(),
            'view_category' => $category,
        ]);
    }
285824
public function index()
    {

        $logs = $this->log_collection;
        $markdown = Storage::disk('markdown')->allFiles();
        $env = $this->env->getContent();
        return view('page::admin.index', compact('logs', 'markdown', 'env'));
    }
633680
public function visible()
    {
        $visible = [];

        foreach ($this->items as $path => $slug) {
            $page = $this->pages->get($path);
            if ($page !== null && $page->visible()) {
                $visible[$path] = $slug;
            }
        }
        $this->items = $visible;

        return $this;
    }
1373928
public function index()
    {
        $productsBuilder = $this
            ->repository
            ->query()
            ->where('type', '!=', 'VARIABLE_PRODUCT')
            ->orderBy('id', 'desc');

        $productGrid = new ProductDataGrid($productsBuilder);

        return view('avored-framework::product.index')
            ->with('dataGrid', $productGrid->dataGrid);
    }
641109
public function index()
    {
        // For single-item display only, redirect to the relevant show/edit page
        if ($this->modelInformation->single) {
            return $this->returnViewForSingleDisplay();
        }

        $this->resetStateBeforeIndexAction()
             ->checkListParents()
             ->applyListParentContext()
             ->checkActiveSort()
             ->checkScope()
             ->checkFilters()
             ->checkActivePage();

        $totalCount  = $this->getTotalCount();
        $scopeCounts = $this->getScopeCounts();

        $this->applySort()
             ->applyScope($this->modelRepository);

        $query = $this->getModelRepository()->query();

        $this->applyFilter($query)
             ->applyListParentToQuery($query);

        $records = $query->paginate($this->getActualPageSize(), ['*'], 'page', $this->getActualPage());

        // Check and whether page is out of bounds and adjust
        if ($this->getActualPage() > $records->lastPage()) {
            $records = $query->paginate($this->getActualPageSize(), ['*'], 'page', $records->lastPage());
        }

        $currentCount = method_exists($records, 'total') ? $records->total() : 0;

        return view($this->getIndexView(), [
            'moduleKey'           => $this->moduleKey,
            'routePrefix'         => $this->routePrefix,
            'permissionPrefix'    => $this->permissionPrefix,
            'model'               => $this->modelInformation,
            'records'             => $records,
            'recordReferences'    => $this->getReferenceRepository()->getReferencesForModels($records->items()),
            'totalCount'          => $totalCount,
            'currentCount'        => $currentCount,
            'listStrategies'      => $this->getListColumnStrategyInstances(),
            'sortColumn'          => $this->getActualSort(),
            'sortDirection'       => $this->getActualSortDirection(),
            'pageSize'            => $this->getActualPageSize(),
            'pageSizeOptions'     => $this->getPageSizeOptions(),
            'filterStrategies'    => $this->renderedListFilterStrategies($this->getActiveFilters()),
            'activeScope'         => $this->getActiveScope(),
            'scopeCounts'         => $scopeCounts,
            'unconditionalDelete' => $this->isUnconditionallyDeletable(),
            'defaultRowAction'    => $this->getDefaultRowActionInstance(),
            'hasActiveListParent' => (bool) $this->listParentRelation,
            'listParents'         => $this->listParents,
            'topListParentOnly'   => $this->showsTopParentsOnly(),
            'draggableOrderable'  => $this->isListOrderDraggable($totalCount, $currentCount),
            'availableExportKeys' => $this->getAvailableExportStrategyKeys(),
        ]);
    }
377285
public function index()
    {
        $perPage = config('typicms.tags.per_page');
        $models = $this->repository->paginate($perPage);

        return view('tags::public.index')
            ->with(compact('models'));
    }
1256838
public function index()
    {
        $this->authorize('publicView', Event::class);

        return view('laralum_events::public.index', ['events' => Event::where('public', true)->orderBy('id', 'desc')->get()]);
    }
345973
public function index()
    {
        save_resource_url();

        $items = Page::with('parent')->get();

        return $this->view('titan::pages.index')->with('items', $items);
    }
152193
public function index()
    {
        $categories = $this->PagesCategories->find()
            ->contain(['Parents' => ['fields' => ['title']]])
            ->order([sprintf('%s.lft', $this->PagesCategories->getAlias()) => 'ASC'])
            ->formatResults(function (ResultSet $results) {
                //Gets categories as tree list
                $treeList = $this->PagesCategories->getTreeList()->toArray();

                return $results->map(function (PagesCategory $category) use ($treeList) {
                    return $category->set('title', $treeList[$category->id]);
                });
            });

        $this->set(compact('categories'));
    }
146607
public function index()
    {
        $attributeGrid = new AttributeDataGrid($this->attributeRepository->query());

        return view('avored-framework::product.attribute.index')
            ->with('dataGrid', $attributeGrid->dataGrid);
    }
744799
public function index()
    {
        $articles = $this->repository->allOrSearch(Input::get('q'));

        $no = $articles->firstItem();

        return $this->view('articles.index', compact('articles', 'no'));
    }
1191895
public function index()
    {
        $newsletters = $this->newsletter->getAll();
        $listes      = $this->list->getAll();

        return view('newsletter::Backend.template.index')->with(['newsletters' => $newsletters, 'listes' => $listes]);
    }
534158
public function index()
    {
        $propertyGrid = new PropertyDataGrid(
            $this->repository->query()->orderBy('id', 'desc')
        );

        return view('avored-framework::product.property.index')
            ->with('dataGrid', $propertyGrid->dataGrid);
    }
1085821
public function index()
    {
        $modules = Module::all();
        $moduleDataGrid = new ModuleDataGrid($modules);

        return view('avored-framework::system.module.index')
            ->with('modules', $modules)
            ->with('dataGrid', $moduleDataGrid->dataGrid);
    }
355272
public function getLinksList()
    {
        if ($this->_oLinksList === null) {
            $this->_oLinksList = false;
            // Load links
            $oLinksList = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
            $oLinksList->init("oxlinks");
            $oLinksList->getList();
            $this->_oLinksList = $oLinksList;
        }

        return $this->_oLinksList;
    }
463790
public function index()
    {
        $frontMenus = MenuFacade::all();
        $categories = Category::all();
        $menus = $this->repository->parentsAll();

        return view('avored-ecommerce::menu.index')
                    ->with('categories', $categories)
                    ->with('frontMenus', $frontMenus)
                    ->with('menus', $menus);
    }
917985
public function index()
    {
        $model = new Model();
        $pageOptions = Page::Options();
        $countryOptions = Country::options();

        return view('avored-ecommerce::configuration.index')
                            ->with('model', $model)
                            ->with('pageOptions', $pageOptions)
                            ->with('countryOptions', $countryOptions);
    }