[ 'model' => \Prajna\Appointment\Models\Appointment::class, 'table' => 'prajna_appointment_appointments', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['name', 'email', 'phone', 'date', 'message', 'status'], 'translatables' => [], 'upload_folder' => 'appointment/appointment', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'search' => [ "name" => [ "key" => "name", "col" => 4, "operators" => ['LIKE', '=', 'IN', 'BETWEEN'], "type" => "text", "label" => 'appointment::appointment.label.name', "placeholder" => 'appointment::appointment.placeholder.name', ], "email" => [ "key" => "email", "col" => 4, "operators" => ['LIKE', '=', 'IN', 'BETWEEN'], "type" => "text", "label" => 'appointment::appointment.label.email', "placeholder" => 'appointment::appointment.placeholder.email', ], "phone" => [ "key" => "phone", "col" => 4, "operators" => ['LIKE', '=', 'IN', 'BETWEEN'], "type" => "text", "label" => 'appointment::appointment.label.phone', "placeholder" => 'appointment::appointment.placeholder.phone', ], "message" => [ "key" => "message", "col" => 4, "operators" => ['LIKE', '=', 'IN', 'BETWEEN'], "type" => "text", "label" => 'appointment::appointment.label.message', "placeholder" => 'appointment::appointment.placeholder.message', ], "status" => [ "key" => "status", "col" => 4, "operators" => ['LIKE', '=', 'IN', 'BETWEEN'], "type" => "text", "label" => 'appointment::appointment.label.status', "placeholder" => 'appointment::appointment.placeholder.status', ], ], 'list' => [ [ "key" => "name", "type" => "text", "label" => 'appointment::appointment.label.name', 'sort' => true, 'roles' => [], ], [ "key" => "email", "type" => "text", "label" => 'appointment::appointment.label.email', 'sort' => true, 'roles' => [], ], [ "key" => "phone", "type" => "text", "label" => 'appointment::appointment.label.phone', 'sort' => true, 'roles' => [], ], [ "key" => "date", "type" => "text", "label" => 'appointment::appointment.label.date', 'sort' => true, 'roles' => [], ], [ "key" => "message", "type" => "text", "label" => 'appointment::appointment.label.message', 'sort' => true, 'roles' => [], ], [ "key" => "status", "type" => "text", "label" => 'appointment::appointment.label.status', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'name', "element" => 'text', "type" => 'text', "label" => 'appointment::appointment.label.name', "placeholder" => 'appointment::appointment.placeholder.name', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'email', "element" => 'text', "type" => 'text', "label" => 'appointment::appointment.label.email', "placeholder" => 'appointment::appointment.placeholder.email', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'phone', "element" => 'text', "type" => 'text', "label" => 'appointment::appointment.label.phone', "placeholder" => 'appointment::appointment.placeholder.phone', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'date', "element" => 'text', "type" => 'text', "label" => 'appointment::appointment.label.date', "placeholder" => 'appointment::appointment.placeholder.date', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'message', "element" => 'text', "type" => 'text', "label" => 'appointment::appointment.label.message', "placeholder" => 'appointment::appointment.placeholder.message', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'status', "element" => 'text', "type" => 'text', "label" => 'appointment::appointment.label.status', "placeholder" => 'appointment::appointment.placeholder.status', "required" => 'true', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'appointment/appointment/new', 'method' => 'GET', ], 'create' => [ 'url' => 'appointment/appointment/create', 'method' => 'GET', ], 'store' => [ 'url' => 'appointment/appointment', 'method' => 'POST', ], 'update' => [ 'url' => 'appointment/appointment', 'method' => 'PUT', ], 'list' => [ 'url' => 'appointment/appointment', 'method' => 'GET', ], 'delete' => [ 'url' => 'appointment/appointment', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'appointment::appointment.label.created_at', 'name' => 'appointment::appointment.label.name', 'status' => 'appointment::appointment.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "appointment::appointment.groups.main", 'group' => "main.main", 'title' => "appointment::appointment.groups.main", ], [ 'icon' => "fe:home", 'name' => "appointment::appointment.groups.details", 'group' => "main.details", 'title' => "appointment::appointment.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "appointment::appointment.groups.images", 'group' => "main.images", 'title' => "appointment::appointment.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "appointment::appointment.groups.settings", 'group' => "main.settings", 'title' => "appointment::appointment.groups.settings", ] ], 'controller' => [ 'provider' => 'Prajna', 'package' => 'Appointment', 'module' => 'Appointment', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'appointment::appointment.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['appointment.appointment.copy', 'appointment.appointment.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'appointment::appointment.label.count', "placeholder" => 'appointment::appointment.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" => 'appointment::appointment.label.comment', "placeholder" => 'appointment::appointment.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'appointment::appointment.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'appointment::appointment.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];