fix(work-order): actually wrap PricingCoefficient::URGENCY with I18n::opts

Previous commit added the translation entries and commit message claimed
this, but the Edit tool call failed silently (file-not-read guard) so
the source change never landed. This time it's applied.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-16 07:29:04 +00:00
parent a24b5e76ce
commit ec25a351ad
@@ -82,7 +82,7 @@ class WorkOrderResource extends Resource
Forms\Components\DatePicker::make('opened_at')->label(__('Deschis'))->default(today())->required(), Forms\Components\DatePicker::make('opened_at')->label(__('Deschis'))->default(today())->required(),
Forms\Components\Select::make('status')->options(\App\Support\I18n::opts(WorkOrder::STATUSES))->default('new')->required(), Forms\Components\Select::make('status')->options(\App\Support\I18n::opts(WorkOrder::STATUSES))->default('new')->required(),
Forms\Components\Select::make('urgency')->label(__('Urgență')) Forms\Components\Select::make('urgency')->label(__('Urgență'))
->options(\App\Models\Tenant\PricingCoefficient::URGENCY)->default('normal')->required(), ->options(\App\Support\I18n::opts(\App\Models\Tenant\PricingCoefficient::URGENCY))->default('normal')->required(),
Forms\Components\Select::make('client_id')->label(__('Client')) Forms\Components\Select::make('client_id')->label(__('Client'))
->options(fn () => Client::pluck('name', 'id')) ->options(fn () => Client::pluck('name', 'id'))
->searchable()->live()->required()->columnSpan(2), ->searchable()->live()->required()->columnSpan(2),