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