[ 'model' => \Litecms\Location\Models\Sublocation::class, 'table' => 'litecms_location_sublocations', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['country_id', 'city_id', 'location_id', 'name', 'name_pf', 'name_byt', 'name_dbz', 'name_hoz', 'code'], 'translatables' => [], 'upload_folder' => 'location/sublocation', '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' => [ "country_id" => [ "key" => "country_id", "type" => "text", "label" => 'location::sublocation.label.country_id', 'sort' => true, 'roles' => [], ], "city_id" => [ "key" => "city_id", "type" => "text", "label" => 'location::sublocation.label.city_id', 'sort' => true, 'roles' => [], ], "location_id" => [ "key" => "location_id", "type" => "text", "label" => 'location::sublocation.label.location_id', 'sort' => true, 'roles' => [], ], "name" => [ "key" => "name", "type" => "text", "label" => 'location::sublocation.label.name', 'sort' => true, 'roles' => [], ], "name_pf" => [ "key" => "name_pf", "type" => "text", "label" => 'location::sublocation.label.name_pf', 'sort' => true, 'roles' => [], ], "name_byt" => [ "key" => "name_byt", "type" => "text", "label" => 'location::sublocation.label.name_byt', 'sort' => true, 'roles' => [], ], "name_dbz" => [ "key" => "name_dbz", "type" => "text", "label" => 'location::sublocation.label.name_dbz', 'sort' => true, 'roles' => [], ], "name_hoz" => [ "key" => "name_hoz", "type" => "text", "label" => 'location::sublocation.label.name_hoz', 'sort' => true, 'roles' => [], ], "code" => [ "key" => "code", "type" => "text", "label" => 'location::sublocation.label.code', 'sort' => true, 'roles' => [], ], ], 'form' => [ 'country_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => 'location::sublocation.label.country_id', "placeholder" => 'location::sublocation.placeholder.country_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'city_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => 'location::sublocation.label.city_id', "placeholder" => 'location::sublocation.placeholder.city_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'location_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => 'location::sublocation.label.location_id', "placeholder" => 'location::sublocation.placeholder.location_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name' => [ "element" => 'text', "type" => 'text', "label" => 'location::sublocation.label.name', "placeholder" => 'location::sublocation.placeholder.name', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name_pf' => [ "element" => 'text', "type" => 'text', "label" => 'location::sublocation.label.name_pf', "placeholder" => 'location::sublocation.placeholder.name_pf', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name_byt' => [ "element" => 'text', "type" => 'text', "label" => 'location::sublocation.label.name_byt', "placeholder" => 'location::sublocation.placeholder.name_byt', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name_dbz' => [ "element" => 'text', "type" => 'text', "label" => 'location::sublocation.label.name_dbz', "placeholder" => 'location::sublocation.placeholder.name_dbz', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name_hoz' => [ "element" => 'text', "type" => 'text', "label" => 'location::sublocation.label.name_hoz', "placeholder" => 'location::sublocation.placeholder.name_hoz', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'code' => [ "element" => 'text', "type" => 'text', "label" => 'location::sublocation.label.code', "placeholder" => 'location::sublocation.placeholder.code', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'location/sublocation/new', 'method' => 'GET', ], 'create' => [ 'url' => 'location/sublocation/create', 'method' => 'GET', ], 'store' => [ 'url' => 'location/sublocation', 'method' => 'POST', ], 'update' => [ 'url' => 'location/sublocation', 'method' => 'PUT', ], 'list' => [ 'url' => 'location/sublocation', 'method' => 'GET', ], 'delete' => [ 'url' => 'location/sublocation', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'location::sublocation.label.created_at', 'name' => 'location::sublocation.label.name', 'status' => 'location::sublocation.label.status', ], 'groups' => [ 'main' => 'location::sublocation.groups.main', 'details' => 'location::sublocation.groups.details', 'images' => 'location::sublocation.groups.images', 'settings' => 'location::sublocation.groups.settings', ], 'controller' => [ 'provider' => 'Litecms', 'package' => 'Location', 'module' => 'Sublocation', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'location::sublocation.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['location.sublocation.copy', 'location.sublocation.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'location::sublocation.label.count', "placeholder" => 'location::sublocation.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" => 'location::sublocation.label.comment', "placeholder" => 'location::sublocation.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'location::sublocation.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], ] ];