[ 'model' => \Bixo\Product\Models\Portal::class, 'table' => 'bixo_product_portals', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['name', 'description', 'email', 'sort_order'], 'translatables' => [], 'upload_folder' => 'product/portal', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'search' => [ ], 'list' => [ [ "key" => "name", "type" => "text", "label" => 'product::portal.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "description", "type" => "text", "label" => 'product::portal.label.description', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'product::portal.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "sort_order", "type" => "text", "label" => 'product::portal.label.sort_order', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'product::portal.label.name', "placeholder" => 'product::portal.placeholder.name', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'description', "element" => 'text', "type" => 'text', "label" => 'product::portal.label.description', "placeholder" => 'product::portal.placeholder.description', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'email', "element" => 'text', "type" => 'text', "label" => 'product::portal.label.email', "placeholder" => 'product::portal.placeholder.email', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'sort_order', "element" => 'numeric', "type" => 'numeric', "label" => 'product::portal.label.sort_order', "placeholder" => 'product::portal.placeholder.sort_order', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'product/portal/new', 'method' => 'GET', ], 'create' => [ 'url' => 'product/portal/create', 'method' => 'GET', ], 'store' => [ 'url' => 'product/portal', 'method' => 'POST', ], 'update' => [ 'url' => 'product/portal', 'method' => 'PUT', ], 'list' => [ 'url' => 'product/portal', 'method' => 'GET', ], 'delete' => [ 'url' => 'product/portal', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'product::portal.label.created_at', 'name' => 'product::portal.label.name', 'status' => 'product::portal.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "product::portal.groups.main", 'group' => "main.main", 'title' => "product::portal.groups.main", ], [ 'icon' => "fe:home", 'name' => "product::portal.groups.details", 'group' => "main.details", 'title' => "product::portal.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "product::portal.groups.images", 'group' => "main.images", 'title' => "product::portal.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "product::portal.groups.settings", 'group' => "main.settings", 'title' => "product::portal.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Product', 'module' => 'Portal', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'product::portal.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['product.portal.copy', 'product.portal.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'product::portal.label.count', "placeholder" => 'product::portal.placeholder.count', "options" => call_user_func(function () { return [ 1 => ['value' => 1, 'text' => 1], 2 => ['value' => 2, 'text' => 2], 3 => ['value' => 3, 'text' => 3], 4 => ['value' => 4, 'text' => 4], ]; }), "col" => "12", ], 'comment' => [ "element" => 'textarea', "type" => 'text', "required" => 'required', "label" => 'product::portal.label.comment', "placeholder" => 'product::portal.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'product::portal.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'product::portal.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];