¨4.0.1¨
This commit is contained in:
@@ -4,13 +4,16 @@ namespace Modules\Brand\Admin;
|
||||
|
||||
use Modules\Admin\Ui\AdminTable;
|
||||
use Modules\Brand\Entities\Brand;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Yajra\DataTables\Exceptions\Exception;
|
||||
|
||||
class BrandTable extends AdminTable
|
||||
{
|
||||
/**
|
||||
* Make table response for the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
* @return JsonResponse
|
||||
* @throws Exception
|
||||
*/
|
||||
public function make()
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ class BrandTabs extends Tabs
|
||||
->add($this->seo());
|
||||
}
|
||||
|
||||
|
||||
private function general()
|
||||
{
|
||||
return tap(new Tab('general', trans('brand::brands.tabs.general')), function (Tab $tab) {
|
||||
@@ -26,9 +27,10 @@ class BrandTabs extends Tabs
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private function images()
|
||||
{
|
||||
if (! auth()->user()->hasAccess('admin.media.index')) {
|
||||
if (!auth()->user()->hasAccess('admin.media.index')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,6 +40,7 @@ class BrandTabs extends Tabs
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private function seo()
|
||||
{
|
||||
return tap(new Tab('seo', trans('brand::brands.tabs.seo')), function (Tab $tab) {
|
||||
|
||||
Reference in New Issue
Block a user