[ 'model' => \Bixo\Contact\Models\Contact::class, 'table' => 'bixo_contact_contacts', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['company_id', 'branch_id', 'department_id', 'division_id', 'agent_id', 'account_id', 'type', 'ref', 'title', 'name', 'gender', 'dob', 'passportno', 'licenseno', 'nationalid', 'residanceid', 'nationality', 'religion', 'languages', 'phone', 'mobile', 'mobiles', 'email', 'emails', 'address', 'location_id', 'region_id', 'country_id', 'time_zone', 'designation', 'social_urls', 'documents', 'notes', 'user_id', 'user_type'], 'translatables' => [], 'upload_folder' => 'contact/contact', '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" => "company_id", "type" => "text", "label" => 'contact::contact.label.company_id', 'sort' => true, 'roles' => [], ], [ "key" => "branch_id", "type" => "text", "label" => 'contact::contact.label.branch_id', 'sort' => true, 'roles' => [], ], [ "key" => "department_id", "type" => "text", "label" => 'contact::contact.label.department_id', 'sort' => true, 'roles' => [], ], [ "key" => "division_id", "type" => "text", "label" => 'contact::contact.label.division_id', 'sort' => true, 'roles' => [], ], [ "key" => "agent_id", "type" => "text", "label" => 'contact::contact.label.agent_id', 'sort' => true, 'roles' => [], ], [ "key" => "account_id", "type" => "text", "label" => 'contact::contact.label.account_id', 'sort' => true, 'roles' => [], ], [ "key" => "type", "type" => "text", "label" => 'contact::contact.label.type', 'sort' => true, 'roles' => [], ], [ "key" => "ref", "type" => "text", "label" => 'contact::contact.label.ref', 'sort' => true, 'roles' => [], ], [ "key" => "title", "type" => "text", "label" => 'contact::contact.label.title', 'sort' => true, 'roles' => [], ], [ "key" => "name", "type" => "text", "label" => 'contact::contact.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "gender", "type" => "text", "label" => 'contact::contact.label.gender', 'sort' => true, 'roles' => [], ], [ "key" => "dob", "type" => "text", "label" => 'contact::contact.label.dob', 'sort' => true, 'roles' => [], ], [ "key" => "passportno", "type" => "text", "label" => 'contact::contact.label.passportno', 'sort' => true, 'roles' => [], ], [ "key" => "licenseno", "type" => "text", "label" => 'contact::contact.label.licenseno', 'sort' => true, 'roles' => [], ], [ "key" => "nationalid", "type" => "text", "label" => 'contact::contact.label.nationalid', 'sort' => true, 'roles' => [], ], [ "key" => "residanceid", "type" => "text", "label" => 'contact::contact.label.residanceid', 'sort' => true, 'roles' => [], ], [ "key" => "nationality", "type" => "text", "label" => 'contact::contact.label.nationality', 'sort' => true, 'roles' => [], ], [ "key" => "religion", "type" => "text", "label" => 'contact::contact.label.religion', 'sort' => true, 'roles' => [], ], [ "key" => "languages", "type" => "text", "label" => 'contact::contact.label.languages', 'sort' => true, 'roles' => [], ], [ "key" => "phone", "type" => "text", "label" => 'contact::contact.label.phone', 'sort' => true, 'roles' => [], ], [ "key" => "mobile", "type" => "text", "label" => 'contact::contact.label.mobile', 'sort' => true, 'roles' => [], ], [ "key" => "mobiles", "type" => "text", "label" => 'contact::contact.label.mobiles', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'contact::contact.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "emails", "type" => "text", "label" => 'contact::contact.label.emails', 'sort' => true, 'roles' => [], ], [ "key" => "address", "type" => "text", "label" => 'contact::contact.label.address', 'sort' => true, 'roles' => [], ], [ "key" => "location_id", "type" => "text", "label" => 'contact::contact.label.location_id', 'sort' => true, 'roles' => [], ], [ "key" => "region_id", "type" => "text", "label" => 'contact::contact.label.region_id', 'sort' => true, 'roles' => [], ], [ "key" => "country_id", "type" => "text", "label" => 'contact::contact.label.country_id', 'sort' => true, 'roles' => [], ], [ "key" => "time_zone", "type" => "text", "label" => 'contact::contact.label.time_zone', 'sort' => true, 'roles' => [], ], [ "key" => "designation", "type" => "text", "label" => 'contact::contact.label.designation', 'sort' => true, 'roles' => [], ], [ "key" => "social_urls", "type" => "text", "label" => 'contact::contact.label.social_urls', 'sort' => true, 'roles' => [], ], [ "key" => "documents", "type" => "text", "label" => 'contact::contact.label.documents', 'sort' => true, 'roles' => [], ], [ "key" => "notes", "type" => "text", "label" => 'contact::contact.label.notes', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'company_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.company_id', "placeholder" => 'contact::contact.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" => 'contact::contact.label.branch_id', "placeholder" => 'contact::contact.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" => 'contact::contact.label.department_id', "placeholder" => 'contact::contact.placeholder.department_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'division_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.division_id', "placeholder" => 'contact::contact.placeholder.division_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'agent_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.agent_id', "placeholder" => 'contact::contact.placeholder.agent_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'account_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.account_id', "placeholder" => 'contact::contact.placeholder.account_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'type', "element" => 'radios', "type" => 'radios', "label" => 'contact::contact.label.type', "placeholder" => 'contact::contact.placeholder.type', "rules" => '', "options" => function(){ return trans('contact::contact.options.type'); }, "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'ref', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.ref', "placeholder" => 'contact::contact.placeholder.ref', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'title', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.title', "placeholder" => 'contact::contact.placeholder.title', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.name', "placeholder" => 'contact::contact.placeholder.name', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'gender', "element" => 'radios', "type" => 'radios', "label" => 'contact::contact.label.gender', "placeholder" => 'contact::contact.placeholder.gender', "rules" => '', "options" => function(){ return trans('contact::contact.options.gender'); }, "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'dob', "element" => 'date_picker', "type" => 'date_picker', "label" => 'contact::contact.label.dob', "placeholder" => 'contact::contact.placeholder.dob', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'passportno', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.passportno', "placeholder" => 'contact::contact.placeholder.passportno', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'licenseno', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.licenseno', "placeholder" => 'contact::contact.placeholder.licenseno', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'nationalid', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.nationalid', "placeholder" => 'contact::contact.placeholder.nationalid', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'residanceid', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.residanceid', "placeholder" => 'contact::contact.placeholder.residanceid', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'nationality', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.nationality', "placeholder" => 'contact::contact.placeholder.nationality', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'religion', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.religion', "placeholder" => 'contact::contact.placeholder.religion', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'languages', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.languages', "placeholder" => 'contact::contact.placeholder.languages', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'phone', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.phone', "placeholder" => 'contact::contact.placeholder.phone', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'mobile', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.mobile', "placeholder" => 'contact::contact.placeholder.mobile', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'mobiles', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.mobiles', "placeholder" => 'contact::contact.placeholder.mobiles', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'email', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.email', "placeholder" => 'contact::contact.placeholder.email', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'emails', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.emails', "placeholder" => 'contact::contact.placeholder.emails', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'address', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.address', "placeholder" => 'contact::contact.placeholder.address', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'location_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.location_id', "placeholder" => 'contact::contact.placeholder.location_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'region_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.region_id', "placeholder" => 'contact::contact.placeholder.region_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'country_id', "element" => 'numeric', "type" => 'numeric', "label" => 'contact::contact.label.country_id', "placeholder" => 'contact::contact.placeholder.country_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'time_zone', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.time_zone', "placeholder" => 'contact::contact.placeholder.time_zone', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'designation', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.designation', "placeholder" => 'contact::contact.placeholder.designation', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'social_urls', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.social_urls', "placeholder" => 'contact::contact.placeholder.social_urls', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'documents', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.documents', "placeholder" => 'contact::contact.placeholder.documents', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'notes', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.notes', "placeholder" => 'contact::contact.placeholder.notes', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'contact/contact/new', 'method' => 'GET', ], 'create' => [ 'url' => 'contact/contact/create', 'method' => 'GET', ], 'store' => [ 'url' => 'contact/contact', 'method' => 'POST', ], 'update' => [ 'url' => 'contact/contact', 'method' => 'PUT', ], 'list' => [ 'url' => 'contact/contact', 'method' => 'GET', ], 'delete' => [ 'url' => 'contact/contact', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'contact::contact.label.created_at', 'name' => 'contact::contact.label.name', 'status' => 'contact::contact.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "contact::contact.groups.main", 'group' => "main.main", 'title' => "contact::contact.groups.main", ], [ 'icon' => "fe:home", 'name' => "contact::contact.groups.details", 'group' => "main.details", 'title' => "contact::contact.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "contact::contact.groups.images", 'group' => "main.images", 'title' => "contact::contact.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "contact::contact.groups.settings", 'group' => "main.settings", 'title' => "contact::contact.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Contact', 'module' => 'Contact', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Bixo\Contact\Models\Contact::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' => 'contact::contact.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['contact.contact.copy', 'contact.contact.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'contact::contact.label.count', "placeholder" => 'contact::contact.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" => 'contact::contact.label.comment', "placeholder" => 'contact::contact.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'contact::contact.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'contact::contact.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];