protected function addControls() { $this->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.comboboxes.combobox')->name('fleet_type')->caption('Tip Flota Auto')->class('form-control data-source input-group form-select init-on-update-delete')->controlsource('fleet_type')->controltype('combobox')->options(\App\Models\Vehicle::fleet()))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('vehicle_type')->caption('Tip Vehicol')->class('form-control data-source')->controlsource('vehicle_type')->controltype('textbox')->maxlength(255))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('license_plate_number')->caption('Numar De Inmatriculare')->class('form-control data-source')->controlsource('license_plate_number')->controltype('textbox')->maxlength(255))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.comboboxes.combobox')->name('property_type')->caption('Tip Propietate')->class('form-control data-source input-group form-select init-on-update-delete')->controlsource('property_type')->controltype('combobox')->options(\App\Models\Vehicle::property()))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.comboboxes.combobox')->name('fuel_type')->caption('Tip Combustibil Utilizat')->class('form-control data-source input-group form-select init-on-update-delete')->controlsource('fuel_type')->controltype('combobox')->options(\App\Models\Vehicle::fuel()))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('capacity_cm3')->caption('Capacitate Cilindrica Cm3')->class('form-control data-source')->controlsource('capacity_cm3')->controltype('textbox')->maxlength(255))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('year_of_manufacture')->caption('An Fabricatie')->class('form-control data-source')->controlsource('year_of_manufacture')->controltype('textbox')->maxlength(255))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.comboboxes.combobox')->name('function_type')->caption('Tip Functiune')->class('form-control data-source input-group form-select init-on-update-delete')->controlsource('function_type')->controltype('combobox')->options(\App\Models\Vehicle::functions()))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('internal_consumption')->caption('Consum Mediu Intern')->class('form-control data-source')->controlsource('internal_consumption')->controltype('textbox')->maxlength(255))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('external_consumption')->caption('Consum Mediu Extern')->class('form-control data-source')->controlsource('external_consumption')->controltype('textbox')->maxlength(255))->addControl(\Easy\Form\Textbox::make('~layouts.form.controls.textboxes.textbox')->name('mixed_consumption')->caption('Consum Mediu Mixt')->class('form-control data-source')->controlsource('mixed_consumption')->controltype('textbox')->maxlength(255)); }