[ 'model' => \B2buy\MasterService\Models\MasterService::class, 'table' => 'b2buy_master_service_master_services', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => [], 'translatables' => [], 'upload_folder' => 'master_service/master_service', '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' => [ ], 'form' => [ ], 'urls' => [ 'new' => [ 'url' => 'master_service/master_service/new', 'method' => 'GET', ], 'create' => [ 'url' => 'master_service/master_service/create', 'method' => 'GET', ], 'store' => [ 'url' => 'master_service/master_service', 'method' => 'POST', ], 'update' => [ 'url' => 'master_service/master_service', 'method' => 'PUT', ], 'list' => [ 'url' => 'master_service/master_service', 'method' => 'GET', ], 'delete' => [ 'url' => 'master_service/master_service', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'master_service::master_service.label.created_at', 'name' => 'master_service::master_service.label.name', 'status' => 'master_service::master_service.label.status', ], 'groups' => [ 'main' => [ 'icon' => "mdi:account-supervisor-outline", 'name' => "master_service::master_service.groups.main", 'key' => "main", 'title' => "master_service::master_service.groups.main", ], 'details' => [ 'icon' => "fe:home", 'name' => "master_service::master_service.groups.details", 'key' => "documents", 'title' => "master_service::master_service.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "master_service::master_service.groups.images", 'key' => "documents", 'title' => "master_service::master_service.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "master_service::master_service.groups.settings", 'key' => "documents", 'title' => "master_service::master_service.groups.settings", ] ], 'controller' => [ 'provider' => 'B2buy', 'package' => 'MasterService', 'module' => 'MasterService', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \B2buy\MasterService\Models\MasterService::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" => 'master_service::master_service.label.count', "placeholder" => 'master_service::master_service.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" => 'master_service::master_service.label.comment', "placeholder" => 'master_service::master_service.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' => 'master_service::master_service.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['master_service.master_service.copy', 'master_service.master_service.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'master_service::master_service.label.count', "placeholder" => 'master_service::master_service.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" => 'master_service::master_service.label.comment', "placeholder" => 'master_service::master_service.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'master_service::master_service.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], ] ];