i18n(pricing-coefficients): wrap BODY_TYPES/TRANSMISSION_TYPES CheckboxList options
The two CheckboxList options passed raw Vehicle::BODY_TYPES and Vehicle::TRANSMISSION_TYPES arrays — now they run through I18n::opts() so the RO values translate at display. +6 translations for the enum values that weren't yet in dict (Crossover, Pickup, Minivan, DSG, DCT, AMT). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -62,12 +62,12 @@ class PricingCoefficientResource extends Resource
|
||||
->columnSpanFull(),
|
||||
Forms\Components\CheckboxList::make('conditions.body_types')
|
||||
->label(__('Caroserie'))
|
||||
->options(\App\Models\Tenant\Vehicle::BODY_TYPES)
|
||||
->options(\App\Support\I18n::opts(\App\Models\Tenant\Vehicle::BODY_TYPES))
|
||||
->columns(3)
|
||||
->columnSpanFull(),
|
||||
Forms\Components\CheckboxList::make('conditions.transmissions')
|
||||
->label(__('Cutie de viteze'))
|
||||
->options(\App\Models\Tenant\Vehicle::TRANSMISSION_TYPES)
|
||||
->options(\App\Support\I18n::opts(\App\Models\Tenant\Vehicle::TRANSMISSION_TYPES))
|
||||
->columns(3)
|
||||
->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('conditions.age_min')->label(__('Vârstă min (ani)'))->numeric(),
|
||||
|
||||
Reference in New Issue
Block a user