[ 'model' => \Litecms\Enquiry\Models\Enquiry::class, 'table' => 'litecms_enquiry_enquiries', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['agent_id', 'listing_id', 'category_id', 'location_id', 'sublocation_id', 'property_id', 'name_title', 'name', 'source', 'email', 'phone', 'mobile', 'contact_at', 'expiry_at', 'priority', 'finance', 'listing_type', 'customer_type', 'min_price', 'max_price', 'min_area', 'max_area', 'min_bed', 'max_bed', 'description', 'customer_care_notes', 'qualify', 'page_name', 'source_url', 'lng', 'form_name', 'project_name', 'timing', 'client_ip', 'utm_source', 'utm_medium', 'utm_campaign', 'sub_source', 'user_id', 'user_type'], 'translatables' => [], 'upload_folder' => 'enquiry/enquiry', '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" => "agent_id", "type" => "text", "label" => 'enquiry::enquiry.label.agent_id', 'sort' => true, 'roles' => [], ], [ "key" => "listing_id", "type" => "text", "label" => 'enquiry::enquiry.label.listing_id', 'sort' => true, 'roles' => [], ], [ "key" => "category_id", "type" => "text", "label" => 'enquiry::enquiry.label.category_id', 'sort' => true, 'roles' => [], ], [ "key" => "location_id", "type" => "text", "label" => 'enquiry::enquiry.label.location_id', 'sort' => true, 'roles' => [], ], [ "key" => "sublocation_id", "type" => "text", "label" => 'enquiry::enquiry.label.sublocation_id', 'sort' => true, 'roles' => [], ], [ "key" => "property_id", "type" => "text", "label" => 'enquiry::enquiry.label.property_id', 'sort' => true, 'roles' => [], ], [ "key" => "name_title", "type" => "text", "label" => 'enquiry::enquiry.label.name_title', 'sort' => true, 'roles' => [], ], [ "key" => "name", "type" => "text", "label" => 'enquiry::enquiry.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "source", "type" => "text", "label" => 'enquiry::enquiry.label.source', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'enquiry::enquiry.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "phone", "type" => "text", "label" => 'enquiry::enquiry.label.phone', 'sort' => true, 'roles' => [], ], [ "key" => "mobile", "type" => "text", "label" => 'enquiry::enquiry.label.mobile', 'sort' => true, 'roles' => [], ], [ "key" => "contact_at", "type" => "text", "label" => 'enquiry::enquiry.label.contact_at', 'sort' => true, 'roles' => [], ], [ "key" => "expiry_at", "type" => "text", "label" => 'enquiry::enquiry.label.expiry_at', 'sort' => true, 'roles' => [], ], [ "key" => "priority", "type" => "text", "label" => 'enquiry::enquiry.label.priority', 'sort' => true, 'roles' => [], ], [ "key" => "finance", "type" => "text", "label" => 'enquiry::enquiry.label.finance', 'sort' => true, 'roles' => [], ], [ "key" => "listing_type", "type" => "text", "label" => 'enquiry::enquiry.label.listing_type', 'sort' => true, 'roles' => [], ], [ "key" => "customer_type", "type" => "text", "label" => 'enquiry::enquiry.label.customer_type', 'sort' => true, 'roles' => [], ], [ "key" => "min_price", "type" => "text", "label" => 'enquiry::enquiry.label.min_price', 'sort' => true, 'roles' => [], ], [ "key" => "max_price", "type" => "text", "label" => 'enquiry::enquiry.label.max_price', 'sort' => true, 'roles' => [], ], [ "key" => "min_area", "type" => "text", "label" => 'enquiry::enquiry.label.min_area', 'sort' => true, 'roles' => [], ], [ "key" => "max_area", "type" => "text", "label" => 'enquiry::enquiry.label.max_area', 'sort' => true, 'roles' => [], ], [ "key" => "min_bed", "type" => "text", "label" => 'enquiry::enquiry.label.min_bed', 'sort' => true, 'roles' => [], ], [ "key" => "max_bed", "type" => "text", "label" => 'enquiry::enquiry.label.max_bed', 'sort' => true, 'roles' => [], ], [ "key" => "description", "type" => "text", "label" => 'enquiry::enquiry.label.description', 'sort' => true, 'roles' => [], ], [ "key" => "customer_care_notes", "type" => "text", "label" => 'enquiry::enquiry.label.customer_care_notes', 'sort' => true, 'roles' => [], ], [ "key" => "qualify", "type" => "text", "label" => 'enquiry::enquiry.label.qualify', 'sort' => true, 'roles' => [], ], [ "key" => "page_name", "type" => "text", "label" => 'enquiry::enquiry.label.page_name', 'sort' => true, 'roles' => [], ], [ "key" => "source_url", "type" => "text", "label" => 'enquiry::enquiry.label.source_url', 'sort' => true, 'roles' => [], ], [ "key" => "lng", "type" => "text", "label" => 'enquiry::enquiry.label.lng', 'sort' => true, 'roles' => [], ], [ "key" => "form_name", "type" => "text", "label" => 'enquiry::enquiry.label.form_name', 'sort' => true, 'roles' => [], ], [ "key" => "project_name", "type" => "text", "label" => 'enquiry::enquiry.label.project_name', 'sort' => true, 'roles' => [], ], [ "key" => "timing", "type" => "text", "label" => 'enquiry::enquiry.label.timing', 'sort' => true, 'roles' => [], ], [ "key" => "client_ip", "type" => "text", "label" => 'enquiry::enquiry.label.client_ip', 'sort' => true, 'roles' => [], ], [ "key" => "utm_source", "type" => "text", "label" => 'enquiry::enquiry.label.utm_source', 'sort' => true, 'roles' => [], ], [ "key" => "utm_medium", "type" => "text", "label" => 'enquiry::enquiry.label.utm_medium', 'sort' => true, 'roles' => [], ], [ "key" => "utm_campaign", "type" => "text", "label" => 'enquiry::enquiry.label.utm_campaign', 'sort' => true, 'roles' => [], ], [ "key" => "sub_source", "type" => "text", "label" => 'enquiry::enquiry.label.sub_source', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'agent_id', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.agent_id', "placeholder" => 'enquiry::enquiry.placeholder.agent_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'listing_id', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.listing_id', "placeholder" => 'enquiry::enquiry.placeholder.listing_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'category_id', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.category_id', "placeholder" => 'enquiry::enquiry.placeholder.category_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'location_id', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.location_id', "placeholder" => 'enquiry::enquiry.placeholder.location_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'sublocation_id', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.sublocation_id', "placeholder" => 'enquiry::enquiry.placeholder.sublocation_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'property_id', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.property_id', "placeholder" => 'enquiry::enquiry.placeholder.property_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'name_title', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.name_title', "placeholder" => 'enquiry::enquiry.placeholder.name_title', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.name', "placeholder" => 'enquiry::enquiry.placeholder.name', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'source', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.source', "placeholder" => 'enquiry::enquiry.placeholder.source', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'email', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.email', "placeholder" => 'enquiry::enquiry.placeholder.email', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'phone', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.phone', "placeholder" => 'enquiry::enquiry.placeholder.phone', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'mobile', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.mobile', "placeholder" => 'enquiry::enquiry.placeholder.mobile', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'contact_at', "element" => 'date_time_picker', "type" => 'date_time_picker', "label" => 'enquiry::enquiry.label.contact_at', "placeholder" => 'enquiry::enquiry.placeholder.contact_at', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'expiry_at', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.expiry_at', "placeholder" => 'enquiry::enquiry.placeholder.expiry_at', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'priority', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.priority', "placeholder" => 'enquiry::enquiry.placeholder.priority', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'finance', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.finance', "placeholder" => 'enquiry::enquiry.placeholder.finance', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'listing_type', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.listing_type', "placeholder" => 'enquiry::enquiry.placeholder.listing_type', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'customer_type', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.customer_type', "placeholder" => 'enquiry::enquiry.placeholder.customer_type', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'min_price', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.min_price', "placeholder" => 'enquiry::enquiry.placeholder.min_price', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'max_price', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.max_price', "placeholder" => 'enquiry::enquiry.placeholder.max_price', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'min_area', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.min_area', "placeholder" => 'enquiry::enquiry.placeholder.min_area', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'max_area', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.max_area', "placeholder" => 'enquiry::enquiry.placeholder.max_area', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'min_bed', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.min_bed', "placeholder" => 'enquiry::enquiry.placeholder.min_bed', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'max_bed', "element" => 'numeric', "type" => 'numeric', "label" => 'enquiry::enquiry.label.max_bed', "placeholder" => 'enquiry::enquiry.placeholder.max_bed', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'description', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.description', "placeholder" => 'enquiry::enquiry.placeholder.description', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'customer_care_notes', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.customer_care_notes', "placeholder" => 'enquiry::enquiry.placeholder.customer_care_notes', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'qualify', "element" => 'radios', "type" => 'radios', "label" => 'enquiry::enquiry.label.qualify', "placeholder" => 'enquiry::enquiry.placeholder.qualify', "rules" => '', "options" => function(){ return trans('enquiry::enquiry.options.qualify'); }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'page_name', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.page_name', "placeholder" => 'enquiry::enquiry.placeholder.page_name', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'source_url', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.source_url', "placeholder" => 'enquiry::enquiry.placeholder.source_url', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'lng', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.lng', "placeholder" => 'enquiry::enquiry.placeholder.lng', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'form_name', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.form_name', "placeholder" => 'enquiry::enquiry.placeholder.form_name', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'project_name', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.project_name', "placeholder" => 'enquiry::enquiry.placeholder.project_name', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'timing', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.timing', "placeholder" => 'enquiry::enquiry.placeholder.timing', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'client_ip', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.client_ip', "placeholder" => 'enquiry::enquiry.placeholder.client_ip', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'utm_source', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.utm_source', "placeholder" => 'enquiry::enquiry.placeholder.utm_source', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'utm_medium', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.utm_medium', "placeholder" => 'enquiry::enquiry.placeholder.utm_medium', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'utm_campaign', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.utm_campaign', "placeholder" => 'enquiry::enquiry.placeholder.utm_campaign', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'sub_source', "element" => 'text', "type" => 'text', "label" => 'enquiry::enquiry.label.sub_source', "placeholder" => 'enquiry::enquiry.placeholder.sub_source', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'enquiry/enquiry/new', 'method' => 'GET', ], 'create' => [ 'url' => 'enquiry/enquiry/create', 'method' => 'GET', ], 'store' => [ 'url' => 'enquiry/enquiry', 'method' => 'POST', ], 'update' => [ 'url' => 'enquiry/enquiry', 'method' => 'PUT', ], 'list' => [ 'url' => 'enquiry/enquiry', 'method' => 'GET', ], 'delete' => [ 'url' => 'enquiry/enquiry', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'enquiry::enquiry.label.created_at', 'name' => 'enquiry::enquiry.label.name', 'status' => 'enquiry::enquiry.label.status', ], 'groups' => [ 'main' => [ 'icon' => "mdi:account-supervisor-outline", 'name' => "enquiry::enquiry.groups.main", 'key' => "main", 'title' => "enquiry::enquiry.groups.main", ], 'details' => [ 'icon' => "fe:home", 'name' => "enquiry::enquiry.groups.details", 'key' => "documents", 'title' => "enquiry::enquiry.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "enquiry::enquiry.groups.images", 'key' => "documents", 'title' => "enquiry::enquiry.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "enquiry::enquiry.groups.settings", 'key' => "documents", 'title' => "enquiry::enquiry.groups.settings", ] ], 'controller' => [ 'provider' => 'Litecms', 'package' => 'Enquiry', 'module' => 'Enquiry', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Litecms\Enquiry\Models\Enquiry::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" => 'enquiry::enquiry.label.count', "placeholder" => 'enquiry::enquiry.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" => 'enquiry::enquiry.label.comment', "placeholder" => 'enquiry::enquiry.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' => 'enquiry::enquiry.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['enquiry.enquiry.copy', 'enquiry.enquiry.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'enquiry::enquiry.label.count', "placeholder" => 'enquiry::enquiry.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" => 'enquiry::enquiry.label.comment', "placeholder" => 'enquiry::enquiry.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'enquiry::enquiry.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], ] ];