[ 'model' => \Shopping\Product\Models\Product::class, 'table' => 'shopping_product_products', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['name', 'status', 'slag'], 'translatables' => [], 'upload_folder' => 'product/product', '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::product.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "status", "type" => "text", "label" => 'product::product.label.status', 'sort' => true, 'roles' => [], ], [ "key" => "slag", "type" => "text", "label" => 'product::product.label.slag', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'product::product.label.name', "placeholder" => 'product::product.placeholder.name', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'status', "element" => 'numeric', "type" => 'numeric', "label" => 'product::product.label.status', "placeholder" => 'product::product.placeholder.status', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'slag', "element" => 'text', "type" => 'text', "label" => 'product::product.label.slag', "placeholder" => 'product::product.placeholder.slag', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'product/product/new', 'method' => 'GET', ], 'create' => [ 'url' => 'product/product/create', 'method' => 'GET', ], 'store' => [ 'url' => 'product/product', 'method' => 'POST', ], 'update' => [ 'url' => 'product/product', 'method' => 'PUT', ], 'list' => [ 'url' => 'product/product', 'method' => 'GET', ], 'delete' => [ 'url' => 'product/product', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'product::product.label.created_at', 'name' => 'product::product.label.name', 'status' => 'product::product.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "product::product.groups.main", 'group' => "main.main", 'title' => "product::product.groups.main", ], [ 'icon' => "fe:home", 'name' => "product::product.groups.details", 'group' => "main.details", 'title' => "product::product.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "product::product.groups.images", 'group' => "main.images", 'title' => "product::product.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "product::product.groups.settings", 'group' => "main.settings", 'title' => "product::product.groups.settings", ] ], 'controller' => [ 'provider' => 'Shopping', 'package' => 'Product', 'module' => 'Product', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'product::product.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['product.product.copy', 'product.product.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'product::product.label.count', "placeholder" => 'product::product.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::product.label.comment', "placeholder" => 'product::product.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'product::product.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'product::product.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];