[ 'model' => \Litecms\Aml\Models\Kyc::class, 'table' => 'litecms_aml_kycs', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['buyer_id', 'seller_id', 'status_aml', 'anl_notes', 'aml_required', 'aml_ids', 'aml_date', 'aml_score'], 'translatables' => [], 'upload_folder' => 'aml/kyc', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ 'marking' => 'array', /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'search' => [ ], 'list' => [ "buyer_id" => [ "key" => "buyer_id", "type" => "text", "label" => 'aml::kyc.label.buyer_id', 'sort' => true, 'roles' => [], ], "seller_id" => [ "key" => "seller_id", "type" => "text", "label" => 'aml::kyc.label.seller_id', 'sort' => true, 'roles' => [], ], "status_aml" => [ "key" => "status_aml", "type" => "text", "label" => 'aml::kyc.label.status_aml', 'sort' => true, 'roles' => [], ], "anl_notes" => [ "key" => "anl_notes", "type" => "text", "label" => 'aml::kyc.label.anl_notes', 'sort' => true, 'roles' => [], ], "aml_required" => [ "key" => "aml_required", "type" => "text", "label" => 'aml::kyc.label.aml_required', 'sort' => true, 'roles' => [], ], "aml_date" => [ "key" => "aml_date", "type" => "text", "label" => 'aml::kyc.label.aml_date', 'sort' => true, 'roles' => [], ], "aml_score" => [ "key" => "aml_score", "type" => "text", "label" => 'aml::kyc.label.aml_score', 'sort' => true, 'roles' => [], ], ], 'form' => [ 'buyer_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => 'aml::kyc.label.buyer_id', "placeholder" => 'aml::kyc.placeholder.buyer_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'seller_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => 'aml::kyc.label.seller_id', "placeholder" => 'aml::kyc.placeholder.seller_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'status_aml' => [ "element" => 'radios', "type" => 'radios', "label" => 'aml::kyc.label.status_aml', "placeholder" => 'aml::kyc.placeholder.status_aml', "rules" => '', "options" => function(){ return []; }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'anl_notes' => [ "element" => 'text', "type" => 'text', "label" => 'aml::kyc.label.anl_notes', "placeholder" => 'aml::kyc.placeholder.anl_notes', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'aml_required' => [ "element" => 'radios', "type" => 'radios', "label" => 'aml::kyc.label.aml_required', "placeholder" => 'aml::kyc.placeholder.aml_required', "rules" => '', "options" => function(){ return []; }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'aml_ids' => [ "element" => 'textarea', "type" => 'textarea', "label" => 'aml::kyc.label.aml_ids', "placeholder" => 'aml::kyc.placeholder.aml_ids', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'aml_date' => [ "element" => 'date_time_picker', "type" => 'date_time_picker', "label" => 'aml::kyc.label.aml_date', "placeholder" => 'aml::kyc.placeholder.aml_date', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'aml_score' => [ "element" => 'decimal', "type" => 'decimal', "label" => 'aml::kyc.label.aml_score', "placeholder" => 'aml::kyc.placeholder.aml_score', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'aml/kyc/new', 'method' => 'GET', ], 'create' => [ 'url' => 'aml/kyc/create', 'method' => 'GET', ], 'store' => [ 'url' => 'aml/kyc', 'method' => 'POST', ], 'update' => [ 'url' => 'aml/kyc', 'method' => 'PUT', ], 'list' => [ 'url' => 'aml/kyc', 'method' => 'GET', ], 'delete' => [ 'url' => 'aml/kyc', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'aml::kyc.label.created_at', 'name' => 'aml::kyc.label.name', 'status' => 'aml::kyc.label.status', ], 'groups' => [ 'main' => 'aml::kyc.groups.main', 'details' => 'aml::kyc.groups.details', 'images' => 'aml::kyc.groups.images', 'settings' => 'aml::kyc.groups.settings', ], 'controller' => [ 'provider' => 'Litecms', 'package' => 'Aml', 'module' => 'Kyc', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Litecms\Aml\Models\Kyc::class, ], 'places' => [ 'Draft', 'Pending', 'Approved', 'Closed', 'Published', 'Archived', 'Unpublished', ], 'initial_places' => ['Draft'], 'transitions' => [ 'submit' => [ 'from' => 'Draft', 'to' => 'Pending', 'metadata' => [ 'roles' => [ 'user' => ['*'], ], 'rules' => [ 'name' => 'required', ] ], ], 'reject' => [ 'from' => 'Pending', 'to' => 'Draft', 'metadata' => [ 'roles' => [ 'user' => ['superuser'], 'team' => ['admin', 'manager'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'aml::kyc.label.count', "placeholder" => 'aml::kyc.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" => 'aml::kyc.label.comment', "placeholder" => 'aml::kyc.placeholder.comment', "col" => "12", ], ], ], ], 'approve' => [ 'from' => 'Pending', 'to' => 'Approved', 'metadata' => [ 'roles' => [ 'user' => ['superuser'], 'team' => ['admin', 'manager'], ] ], ], 'publish' => [ 'from' => ['Approved', 'Unpublished'], 'to' => 'Published', 'metadata' => [ 'roles' => [ 'user' => ['superuser'], 'team' => ['admin'], ] ], ], 'unpublish' => [ 'from' => ['Published'], 'to' => 'Unpublished', 'metadata' => [ 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], ] ], ], 'archive' => [ 'from' => ['Published', 'Unpublished'], 'to' => 'Archived', 'metadata' => [ 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], ] ], ], 'unarchive' => [ 'from' => ['Archived'], 'to' => 'Draft', 'metadata' => [ 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], ] ], ], ], ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'aml::kyc.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['aml.kyc.copy', 'aml.kyc.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'aml::kyc.label.count', "placeholder" => 'aml::kyc.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" => 'aml::kyc.label.comment', "placeholder" => 'aml::kyc.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'aml::kyc.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], ] ];