[ 'model' => \Litecms\Contact\Models\Contact::class, 'table' => 'litecms_contact_contacts', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['type', 'ref', 'title', 'name', 'mobile', 'email', 'phone', 'fax', 'website', 'dob', 'nationality', 'religion', 'languages', 'address', 'phones', 'socialmedias', 'emails', 'people', 'events', 'company', 'license_number', 'designation', 'department', 'passport_no', 'has_id', 'id_number', 'documents', 'notes', 'remarks', 'tags', 'user_id', 'user_type'], 'translatables' => [], 'upload_folder' => 'contact/contact', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'search' => [ ], 'list' => [ [ "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" => "mobile", "type" => "text", "label" => 'contact::contact.label.mobile', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'contact::contact.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "phone", "type" => "text", "label" => 'contact::contact.label.phone', 'sort' => true, 'roles' => [], ], [ "key" => "fax", "type" => "text", "label" => 'contact::contact.label.fax', 'sort' => true, 'roles' => [], ], [ "key" => "website", "type" => "text", "label" => 'contact::contact.label.website', 'sort' => true, 'roles' => [], ], [ "key" => "dob", "type" => "text", "label" => 'contact::contact.label.dob', '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" => "address", "type" => "text", "label" => 'contact::contact.label.address', 'sort' => true, 'roles' => [], ], [ "key" => "phones", "type" => "text", "label" => 'contact::contact.label.phones', 'sort' => true, 'roles' => [], ], [ "key" => "socialmedias", "type" => "text", "label" => 'contact::contact.label.socialmedias', 'sort' => true, 'roles' => [], ], [ "key" => "emails", "type" => "text", "label" => 'contact::contact.label.emails', 'sort' => true, 'roles' => [], ], [ "key" => "people", "type" => "text", "label" => 'contact::contact.label.people', 'sort' => true, 'roles' => [], ], [ "key" => "events", "type" => "text", "label" => 'contact::contact.label.events', 'sort' => true, 'roles' => [], ], [ "key" => "company", "type" => "text", "label" => 'contact::contact.label.company', 'sort' => true, 'roles' => [], ], [ "key" => "license_number", "type" => "text", "label" => 'contact::contact.label.license_number', 'sort' => true, 'roles' => [], ], [ "key" => "designation", "type" => "text", "label" => 'contact::contact.label.designation', 'sort' => true, 'roles' => [], ], [ "key" => "department", "type" => "text", "label" => 'contact::contact.label.department', 'sort' => true, 'roles' => [], ], [ "key" => "passport_no", "type" => "text", "label" => 'contact::contact.label.passport_no', 'sort' => true, 'roles' => [], ], [ "key" => "has_id", "type" => "text", "label" => 'contact::contact.label.has_id', 'sort' => true, 'roles' => [], ], [ "key" => "id_number", "type" => "text", "label" => 'contact::contact.label.id_number', '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' => [], ], [ "key" => "remarks", "type" => "text", "label" => 'contact::contact.label.remarks', 'sort' => true, 'roles' => [], ], [ "key" => "tags", "type" => "text", "label" => 'contact::contact.label.tags', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'fax', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.fax', "placeholder" => 'contact::contact.placeholder.fax', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'website', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.website', "placeholder" => 'contact::contact.placeholder.website', "rules" => '', "group" => "main", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "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", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'phones', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.phones', "placeholder" => 'contact::contact.placeholder.phones', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'socialmedias', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.socialmedias', "placeholder" => 'contact::contact.placeholder.socialmedias', "rules" => '', "group" => "main", "section" => "first", "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", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'people', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.people', "placeholder" => 'contact::contact.placeholder.people', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'events', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.events', "placeholder" => 'contact::contact.placeholder.events', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'company', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.company', "placeholder" => 'contact::contact.placeholder.company', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'license_number', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.license_number', "placeholder" => 'contact::contact.placeholder.license_number', "rules" => '', "group" => "main", "section" => "first", "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", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'department', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.department', "placeholder" => 'contact::contact.placeholder.department', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'passport_no', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.passport_no', "placeholder" => 'contact::contact.placeholder.passport_no', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'has_id', "element" => 'radios', "type" => 'radios', "label" => 'contact::contact.label.has_id', "placeholder" => 'contact::contact.placeholder.has_id', "rules" => '', "options" => function(){ return trans('contact::contact.options.has_id'); }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'id_number', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.id_number', "placeholder" => 'contact::contact.placeholder.id_number', "rules" => '', "group" => "main", "section" => "first", "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", "section" => "first", "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", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'remarks', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.remarks', "placeholder" => 'contact::contact.placeholder.remarks', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'tags', "element" => 'text', "type" => 'text', "label" => 'contact::contact.label.tags', "placeholder" => 'contact::contact.placeholder.tags', "rules" => '', "group" => "main", "section" => "first", "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' => [ 'main' => [ 'icon' => "mdi:account-supervisor-outline", 'name' => "contact::contact.groups.main", 'key' => "main", 'title' => "contact::contact.groups.main", ], 'details' => [ 'icon' => "fe:home", 'name' => "contact::contact.groups.details", 'key' => "documents", 'title' => "contact::contact.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "contact::contact.groups.images", 'key' => "documents", 'title' => "contact::contact.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "contact::contact.groups.settings", 'key' => "documents", 'title' => "contact::contact.groups.settings", ] ], 'controller' => [ 'provider' => 'Litecms', 'package' => 'Contact', 'module' => 'Contact', ], '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'], ], ], ] ];