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