[ 'model' => \Bixo\Lead\Models\Blacklist::class, 'table' => 'bixo_lead_blacklists', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['name', 'email', 'mobile', 'type', 'description', 'user_id', 'user_type'], 'translatables' => [], 'upload_folder' => 'lead/blacklist', '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' => [ [ "key" => "name", "type" => "text", "label" => 'lead::blacklist.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'lead::blacklist.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "mobile", "type" => "text", "label" => 'lead::blacklist.label.mobile', 'sort' => true, 'roles' => [], ], [ "key" => "type", "type" => "text", "label" => 'lead::blacklist.label.type', 'sort' => true, 'roles' => [], ], [ "key" => "description", "type" => "text", "label" => 'lead::blacklist.label.description', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'lead::blacklist.label.name', "placeholder" => 'lead::blacklist.placeholder.name', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'email', "element" => 'text', "type" => 'text', "label" => 'lead::blacklist.label.email', "placeholder" => 'lead::blacklist.placeholder.email', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'mobile', "element" => 'text', "type" => 'text', "label" => 'lead::blacklist.label.mobile', "placeholder" => 'lead::blacklist.placeholder.mobile', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'type', "element" => 'text', "type" => 'text', "label" => 'lead::blacklist.label.type', "placeholder" => 'lead::blacklist.placeholder.type', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'description', "element" => 'text', "type" => 'text', "label" => 'lead::blacklist.label.description', "placeholder" => 'lead::blacklist.placeholder.description', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'lead/blacklist/new', 'method' => 'GET', ], 'create' => [ 'url' => 'lead/blacklist/create', 'method' => 'GET', ], 'store' => [ 'url' => 'lead/blacklist', 'method' => 'POST', ], 'update' => [ 'url' => 'lead/blacklist', 'method' => 'PUT', ], 'list' => [ 'url' => 'lead/blacklist', 'method' => 'GET', ], 'delete' => [ 'url' => 'lead/blacklist', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'lead::blacklist.label.created_at', 'name' => 'lead::blacklist.label.name', 'status' => 'lead::blacklist.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "lead::blacklist.groups.main", 'group' => "main.main", 'title' => "lead::blacklist.groups.main", ], [ 'icon' => "fe:home", 'name' => "lead::blacklist.groups.details", 'group' => "main.details", 'title' => "lead::blacklist.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "lead::blacklist.groups.images", 'group' => "main.images", 'title' => "lead::blacklist.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "lead::blacklist.groups.settings", 'group' => "main.settings", 'title' => "lead::blacklist.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Lead', 'module' => 'Blacklist', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Bixo\Lead\Models\Blacklist::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' => [ 'title' => 'Reject', 'button' => [ 'cancel' > [ 'icon' > '', 'varient' > '', 'label' > 'Cancel' ], 'submit' > [ 'icon' > '', 'varient' > 'primary', 'label' > 'Reject' ] ], 'fields' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'advert::advert.label.count', "placeholder" => 'advert::advert.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" => 'advert::advert.label.comment', "placeholder" => 'advert::advert.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' => 'lead::blacklist.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['lead.blacklist.copy', 'lead.blacklist.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'lead::blacklist.label.count', "placeholder" => 'lead::blacklist.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" => 'lead::blacklist.label.comment', "placeholder" => 'lead::blacklist.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'lead::blacklist.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'lead::blacklist.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];