@if (isset($maintenanceTypes) && $maintenanceTypes->count()) @else {{-- Fallback to legacy string-based dropdown if no types configured yet --}} @endif {!! $errors->first('maintenance_type_id', '') !!}
@can('create', \App\Models\MaintenanceType::class) {{ trans('button.new') }} @endcan