[ 'model' => \Bixo\Offplan\Models\Project::class, 'table' => 'bixo_offplan_projects', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['ref', 'country_id', 'developer_id', 'region_id', 'location_id', 'sublocation_id', 'building_id', 'name', 'title', 'start_price', 'completion', 'payment_plan', 'description', 'description_more', 'documents', 'features', 'distances', 'photos', 'floor_plans', 'exclusive', 'medias', 'created_by'], 'translatables' => [], 'upload_folder' => 'offplan/project', '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" => "ref", "type" => "text", "label" => 'offplan::project.label.ref', 'sort' => true, 'roles' => [], ], [ "key" => "country_id", "type" => "text", "label" => 'offplan::project.label.country_id', 'sort' => true, 'roles' => [], ], [ "key" => "developer_id", "type" => "text", "label" => 'offplan::project.label.developer_id', 'sort' => true, 'roles' => [], ], [ "key" => "region_id", "type" => "text", "label" => 'offplan::project.label.region_id', 'sort' => true, 'roles' => [], ], [ "key" => "location_id", "type" => "text", "label" => 'offplan::project.label.location_id', 'sort' => true, 'roles' => [], ], [ "key" => "sublocation_id", "type" => "text", "label" => 'offplan::project.label.sublocation_id', 'sort' => true, 'roles' => [], ], [ "key" => "building_id", "type" => "text", "label" => 'offplan::project.label.building_id', 'sort' => true, 'roles' => [], ], [ "key" => "name", "type" => "text", "label" => 'offplan::project.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "title", "type" => "text", "label" => 'offplan::project.label.title', 'sort' => true, 'roles' => [], ], [ "key" => "start_price", "type" => "text", "label" => 'offplan::project.label.start_price', 'sort' => true, 'roles' => [], ], [ "key" => "completion", "type" => "text", "label" => 'offplan::project.label.completion', 'sort' => true, 'roles' => [], ], [ "key" => "payment_plan", "type" => "text", "label" => 'offplan::project.label.payment_plan', 'sort' => true, 'roles' => [], ], [ "key" => "description", "type" => "text", "label" => 'offplan::project.label.description', 'sort' => true, 'roles' => [], ], [ "key" => "exclusive", "type" => "text", "label" => 'offplan::project.label.exclusive', 'sort' => true, 'roles' => [], ], [ "key" => "medias", "type" => "text", "label" => 'offplan::project.label.medias', 'sort' => true, 'roles' => [], ], [ "key" => "created_by", "type" => "text", "label" => 'offplan::project.label.created_by', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'ref', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.ref', "placeholder" => 'offplan::project.placeholder.ref', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'country_id', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.country_id', "placeholder" => 'offplan::project.placeholder.country_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'developer_id', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.developer_id', "placeholder" => 'offplan::project.placeholder.developer_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'region_id', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.region_id', "placeholder" => 'offplan::project.placeholder.region_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'location_id', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.location_id', "placeholder" => 'offplan::project.placeholder.location_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'sublocation_id', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.sublocation_id', "placeholder" => 'offplan::project.placeholder.sublocation_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'building_id', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.building_id', "placeholder" => 'offplan::project.placeholder.building_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.name', "placeholder" => 'offplan::project.placeholder.name', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'title', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.title', "placeholder" => 'offplan::project.placeholder.title', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'start_price', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.start_price', "placeholder" => 'offplan::project.placeholder.start_price', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'completion', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.completion', "placeholder" => 'offplan::project.placeholder.completion', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'payment_plan', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.payment_plan', "placeholder" => 'offplan::project.placeholder.payment_plan', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'description', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.description', "placeholder" => 'offplan::project.placeholder.description', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'description_more', "element" => 'html_editor', "type" => 'html_editor', "label" => 'offplan::project.label.description_more', "placeholder" => 'offplan::project.placeholder.description_more', "rules" => '', "group" => "main.main", "col" => "12", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'documents', "element" => 'textarea', "type" => 'textarea', "label" => 'offplan::project.label.documents', "placeholder" => 'offplan::project.placeholder.documents', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'features', "element" => 'textarea', "type" => 'textarea', "label" => 'offplan::project.label.features', "placeholder" => 'offplan::project.placeholder.features', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'distances', "element" => 'textarea', "type" => 'textarea', "label" => 'offplan::project.label.distances', "placeholder" => 'offplan::project.placeholder.distances', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'photos', "element" => 'textarea', "type" => 'textarea', "label" => 'offplan::project.label.photos', "placeholder" => 'offplan::project.placeholder.photos', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'floor_plans', "element" => 'textarea', "type" => 'textarea', "label" => 'offplan::project.label.floor_plans', "placeholder" => 'offplan::project.placeholder.floor_plans', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'exclusive', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.exclusive', "placeholder" => 'offplan::project.placeholder.exclusive', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'medias', "element" => 'text', "type" => 'text', "label" => 'offplan::project.label.medias', "placeholder" => 'offplan::project.placeholder.medias', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'created_by', "element" => 'numeric', "type" => 'numeric', "label" => 'offplan::project.label.created_by', "placeholder" => 'offplan::project.placeholder.created_by', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'offplan/project/new', 'method' => 'GET', ], 'create' => [ 'url' => 'offplan/project/create', 'method' => 'GET', ], 'store' => [ 'url' => 'offplan/project', 'method' => 'POST', ], 'update' => [ 'url' => 'offplan/project', 'method' => 'PUT', ], 'list' => [ 'url' => 'offplan/project', 'method' => 'GET', ], 'delete' => [ 'url' => 'offplan/project', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'offplan::project.label.created_at', 'name' => 'offplan::project.label.name', 'status' => 'offplan::project.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "offplan::project.groups.main", 'group' => "main.main", 'title' => "offplan::project.groups.main", ], [ 'icon' => "fe:home", 'name' => "offplan::project.groups.details", 'group' => "main.details", 'title' => "offplan::project.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "offplan::project.groups.images", 'group' => "main.images", 'title' => "offplan::project.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "offplan::project.groups.settings", 'group' => "main.settings", 'title' => "offplan::project.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Offplan', 'module' => 'Project', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Bixo\Offplan\Models\Project::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' => 'offplan::project.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['offplan.project.copy', 'offplan.project.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'offplan::project.label.count', "placeholder" => 'offplan::project.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" => 'offplan::project.label.comment', "placeholder" => 'offplan::project.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'offplan::project.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'offplan::project.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];