[ 'model' => \Bixo\Organization\Models\Organization::class, 'table' => 'bixo_organization_organizations', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['parent_id', 'manager_id', 'company_id', 'branch_id', 'department_id', 'ref', 'name', 'type', 'description', 'employee_count', 'currency', 'industry', 'phone', 'email', 'address', 'country', 'zip', 'work_hours', 'website_url', 'user_type', 'user_id', 'brn', 'ded'], 'translatables' => [], 'upload_folder' => 'organization/organization', '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" => "parent_id", "type" => "text", "label" => 'organization::organization.label.parent_id', 'sort' => true, 'roles' => [], ], [ "key" => "manager_id", "type" => "text", "label" => 'organization::organization.label.manager_id', 'sort' => true, 'roles' => [], ], [ "key" => "company_id", "type" => "text", "label" => 'organization::organization.label.company_id', 'sort' => true, 'roles' => [], ], [ "key" => "branch_id", "type" => "text", "label" => 'organization::organization.label.branch_id', 'sort' => true, 'roles' => [], ], [ "key" => "department_id", "type" => "text", "label" => 'organization::organization.label.department_id', 'sort' => true, 'roles' => [], ], [ "key" => "ref", "type" => "text", "label" => 'organization::organization.label.ref', 'sort' => true, 'roles' => [], ], [ "key" => "name", "type" => "text", "label" => 'organization::organization.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "type", "type" => "text", "label" => 'organization::organization.label.type', 'sort' => true, 'roles' => [], ], [ "key" => "description", "type" => "text", "label" => 'organization::organization.label.description', 'sort' => true, 'roles' => [], ], [ "key" => "employee_count", "type" => "text", "label" => 'organization::organization.label.employee_count', 'sort' => true, 'roles' => [], ], [ "key" => "currency", "type" => "text", "label" => 'organization::organization.label.currency', 'sort' => true, 'roles' => [], ], [ "key" => "industry", "type" => "text", "label" => 'organization::organization.label.industry', 'sort' => true, 'roles' => [], ], [ "key" => "phone", "type" => "text", "label" => 'organization::organization.label.phone', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'organization::organization.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "address", "type" => "text", "label" => 'organization::organization.label.address', 'sort' => true, 'roles' => [], ], [ "key" => "country", "type" => "text", "label" => 'organization::organization.label.country', 'sort' => true, 'roles' => [], ], [ "key" => "zip", "type" => "text", "label" => 'organization::organization.label.zip', 'sort' => true, 'roles' => [], ], [ "key" => "work_hours", "type" => "text", "label" => 'organization::organization.label.work_hours', 'sort' => true, 'roles' => [], ], [ "key" => "website_url", "type" => "text", "label" => 'organization::organization.label.website_url', 'sort' => true, 'roles' => [], ], [ "key" => "brn", "type" => "text", "label" => 'organization::organization.label.brn', 'sort' => true, 'roles' => [], ], [ "key" => "ded", "type" => "text", "label" => 'organization::organization.label.ded', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'parent_id', "element" => 'numeric', "type" => 'numeric', "label" => 'organization::organization.label.parent_id', "placeholder" => 'organization::organization.placeholder.parent_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'manager_id', "element" => 'numeric', "type" => 'numeric', "label" => 'organization::organization.label.manager_id', "placeholder" => 'organization::organization.placeholder.manager_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'company_id', "element" => 'numeric', "type" => 'numeric', "label" => 'organization::organization.label.company_id', "placeholder" => 'organization::organization.placeholder.company_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'branch_id', "element" => 'numeric', "type" => 'numeric', "label" => 'organization::organization.label.branch_id', "placeholder" => 'organization::organization.placeholder.branch_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'department_id', "element" => 'numeric', "type" => 'numeric', "label" => 'organization::organization.label.department_id', "placeholder" => 'organization::organization.placeholder.department_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'ref', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.ref', "placeholder" => 'organization::organization.placeholder.ref', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.name', "placeholder" => 'organization::organization.placeholder.name', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'type', "element" => 'radios', "type" => 'radios', "label" => 'organization::organization.label.type', "placeholder" => 'organization::organization.placeholder.type', "rules" => '', "options" => function(){ return trans('organization::organization.options.type'); }, "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'description', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.description', "placeholder" => 'organization::organization.placeholder.description', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'employee_count', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.employee_count', "placeholder" => 'organization::organization.placeholder.employee_count', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'currency', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.currency', "placeholder" => 'organization::organization.placeholder.currency', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'industry', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.industry', "placeholder" => 'organization::organization.placeholder.industry', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'phone', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.phone', "placeholder" => 'organization::organization.placeholder.phone', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'email', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.email', "placeholder" => 'organization::organization.placeholder.email', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'address', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.address', "placeholder" => 'organization::organization.placeholder.address', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'country', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.country', "placeholder" => 'organization::organization.placeholder.country', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'zip', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.zip', "placeholder" => 'organization::organization.placeholder.zip', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'work_hours', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.work_hours', "placeholder" => 'organization::organization.placeholder.work_hours', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'website_url', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.website_url', "placeholder" => 'organization::organization.placeholder.website_url', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'brn', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.brn', "placeholder" => 'organization::organization.placeholder.brn', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'ded', "element" => 'text', "type" => 'text', "label" => 'organization::organization.label.ded', "placeholder" => 'organization::organization.placeholder.ded', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'organization/organization/new', 'method' => 'GET', ], 'create' => [ 'url' => 'organization/organization/create', 'method' => 'GET', ], 'store' => [ 'url' => 'organization/organization', 'method' => 'POST', ], 'update' => [ 'url' => 'organization/organization', 'method' => 'PUT', ], 'list' => [ 'url' => 'organization/organization', 'method' => 'GET', ], 'delete' => [ 'url' => 'organization/organization', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'organization::organization.label.created_at', 'name' => 'organization::organization.label.name', 'status' => 'organization::organization.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "organization::organization.groups.main", 'group' => "main.main", 'title' => "organization::organization.groups.main", ], [ 'icon' => "fe:home", 'name' => "organization::organization.groups.details", 'group' => "main.details", 'title' => "organization::organization.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "organization::organization.groups.images", 'group' => "main.images", 'title' => "organization::organization.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "organization::organization.groups.settings", 'group' => "main.settings", 'title' => "organization::organization.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Organization', 'module' => 'Organization', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Bixo\Organization\Models\Organization::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' => 'organization::organization.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['organization.organization.copy', 'organization.organization.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'organization::organization.label.count', "placeholder" => 'organization::organization.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" => 'organization::organization.label.comment', "placeholder" => 'organization::organization.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'organization::organization.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'organization::organization.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];