mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #820 from openclassify/dia
#2742 [advs-module] Can't access advs admin panel
This commit is contained in:
commit
121bf3ecde
@ -10,12 +10,11 @@ use Visiosoft\LocationModule\City\Contract\CityRepositoryInterface;
|
|||||||
|
|
||||||
class AdvTableFilters
|
class AdvTableFilters
|
||||||
{
|
{
|
||||||
|
|
||||||
public function handle(AdvTableBuilder $builder, CategoryRepositoryInterface $categoryRepository, CityRepositoryInterface $cityRepository)
|
public function handle(AdvTableBuilder $builder, CategoryRepositoryInterface $categoryRepository, CityRepositoryInterface $cityRepository)
|
||||||
{
|
{
|
||||||
$cities = $cityRepository->all()->pluck('name', 'id')->all();
|
$cities = $cityRepository->all()->pluck('name', 'id')->all();
|
||||||
|
|
||||||
$categories = $categoryRepository->all()->mainCategories()->pluck('name', 'id')->all();
|
$categories = $categoryRepository->mainCats()->pluck('name', 'id')->all();
|
||||||
|
|
||||||
$builder->setFilters(
|
$builder->setFilters(
|
||||||
[
|
[
|
||||||
@ -60,5 +59,4 @@ class AdvTableFilters
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,25 +2,16 @@
|
|||||||
|
|
||||||
use Anomaly\SettingsModule\Setting\Contract\SettingRepositoryInterface;
|
use Anomaly\SettingsModule\Setting\Contract\SettingRepositoryInterface;
|
||||||
use Anomaly\Streams\Platform\Application\Application;
|
use Anomaly\Streams\Platform\Application\Application;
|
||||||
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
|
||||||
use Anomaly\Streams\Platform\Model\Advs\AdvsAdvsEntryTranslationsModel;
|
use Anomaly\Streams\Platform\Model\Advs\AdvsAdvsEntryTranslationsModel;
|
||||||
use Anomaly\Streams\Platform\Model\Cats\CatsCategoryEntryModel;
|
|
||||||
use Anomaly\UsersModule\User\Contract\UserRepositoryInterface;
|
use Anomaly\UsersModule\User\Contract\UserRepositoryInterface;
|
||||||
use Anomaly\UsersModule\User\UserModel;
|
|
||||||
use Illuminate\Filesystem\Filesystem;
|
use Illuminate\Filesystem\Filesystem;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Visiosoft\AdvsModule\Adv\Contract\AdvRepositoryInterface;
|
use Visiosoft\AdvsModule\Adv\Contract\AdvRepositoryInterface;
|
||||||
use Visiosoft\AdvsModule\Adv\Table\Filter\CategoryFilterQuery;
|
|
||||||
use Visiosoft\AdvsModule\Adv\Table\Filter\CityFilterQuery;
|
|
||||||
use Visiosoft\AdvsModule\Adv\Table\Filter\StatusFilterQuery;
|
|
||||||
use Visiosoft\AdvsModule\Adv\Table\Filter\UserFilterQuery;
|
|
||||||
use Visiosoft\AdvsModule\Adv\AdvModel;
|
use Visiosoft\AdvsModule\Adv\AdvModel;
|
||||||
use Visiosoft\AdvsModule\Adv\Event\ChangedStatusAd;
|
use Visiosoft\AdvsModule\Adv\Event\ChangedStatusAd;
|
||||||
use Visiosoft\AdvsModule\Adv\Table\AdvTableBuilder;
|
use Visiosoft\AdvsModule\Adv\Table\AdvTableBuilder;
|
||||||
use Anomaly\Streams\Platform\Http\Controller\AdminController;
|
use Anomaly\Streams\Platform\Http\Controller\AdminController;
|
||||||
use Visiosoft\AdvsModule\Option\Contract\OptionRepositoryInterface;
|
use Visiosoft\AdvsModule\Option\Contract\OptionRepositoryInterface;
|
||||||
use Visiosoft\CatsModule\Category\CategoryModel;
|
|
||||||
use Visiosoft\LocationModule\City\CityModel;
|
|
||||||
use Visiosoft\AlgoliaModule\Search\SearchModel;
|
use Visiosoft\AlgoliaModule\Search\SearchModel;
|
||||||
use Maatwebsite\Excel\Facades\Excel;
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
use Visiosoft\AdvsModule\Adv\AdvsExport;
|
use Visiosoft\AdvsModule\Adv\AdvsExport;
|
||||||
@ -46,12 +37,6 @@ class AdvsController extends AdminController
|
|||||||
$this->optionRepository = $optionRepository;
|
$this->optionRepository = $optionRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Display an index of existing entries.
|
|
||||||
*
|
|
||||||
* @param AdvTableBuilder $table
|
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
|
||||||
*/
|
|
||||||
public function index(AdvTableBuilder $table)
|
public function index(AdvTableBuilder $table)
|
||||||
{
|
{
|
||||||
$table->addAsset("styles.css", "visiosoft.module.advs::css/custom.css");
|
$table->addAsset("styles.css", "visiosoft.module.advs::css/custom.css");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user