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