[ 'model' => \Litematrimony\Profile\Models\Shortlist::class, 'table' => 'litematrimony_profile_shortlists', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['profile_id', 'shortlist_id', 'shortlist_status', 'ignore_status'], 'translatables' => [], 'upload_folder' => 'profile/shortlist', '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" => "profile_id", "type" => "text", "label" => 'profile::shortlist.label.profile_id', 'sort' => true, 'roles' => [], ], [ "key" => "shortlist_id", "type" => "text", "label" => 'profile::shortlist.label.shortlist_id', 'sort' => true, 'roles' => [], ], [ "key" => "shortlist_status", "type" => "text", "label" => 'profile::shortlist.label.shortlist_status', 'sort' => true, 'roles' => [], ], [ "key" => "ignore_status", "type" => "text", "label" => 'profile::shortlist.label.ignore_status', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'profile_id', "element" => 'numeric', "type" => 'numeric', "label" => 'profile::shortlist.label.profile_id', "placeholder" => 'profile::shortlist.placeholder.profile_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'shortlist_id', "element" => 'numeric', "type" => 'numeric', "label" => 'profile::shortlist.label.shortlist_id', "placeholder" => 'profile::shortlist.placeholder.shortlist_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'shortlist_status', "element" => 'radios', "type" => 'radios', "label" => 'profile::shortlist.label.shortlist_status', "placeholder" => 'profile::shortlist.placeholder.shortlist_status', "rules" => '', "options" => function(){ return trans('profile::shortlist.options.shortlist_status'); }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'ignore_status', "element" => 'radios', "type" => 'radios', "label" => 'profile::shortlist.label.ignore_status', "placeholder" => 'profile::shortlist.placeholder.ignore_status', "rules" => '', "options" => function(){ return trans('profile::shortlist.options.ignore_status'); }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'profile/shortlist/new', 'method' => 'GET', ], 'create' => [ 'url' => 'profile/shortlist/create', 'method' => 'GET', ], 'store' => [ 'url' => 'profile/shortlist', 'method' => 'POST', ], 'update' => [ 'url' => 'profile/shortlist', 'method' => 'PUT', ], 'list' => [ 'url' => 'profile/shortlist', 'method' => 'GET', ], 'delete' => [ 'url' => 'profile/shortlist', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'profile::shortlist.label.created_at', 'name' => 'profile::shortlist.label.name', 'status' => 'profile::shortlist.label.status', ], 'groups' => [ 'main' => [ 'icon' => "mdi:account-supervisor-outline", 'name' => "profile::shortlist.groups.main", 'key' => "main", 'title' => "profile::shortlist.groups.main", ], 'details' => [ 'icon' => "fe:home", 'name' => "profile::shortlist.groups.details", 'key' => "documents", 'title' => "profile::shortlist.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "profile::shortlist.groups.images", 'key' => "documents", 'title' => "profile::shortlist.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "profile::shortlist.groups.settings", 'key' => "documents", 'title' => "profile::shortlist.groups.settings", ] ], 'controller' => [ 'provider' => 'Litematrimony', 'package' => 'Profile', 'module' => 'Shortlist', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'profile::shortlist.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['profile.shortlist.copy', 'profile.shortlist.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'profile::shortlist.label.count', "placeholder" => 'profile::shortlist.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" => 'profile::shortlist.label.comment', "placeholder" => 'profile::shortlist.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'profile::shortlist.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], ] ];