@if ($errors->any())
@endif @php $hasLocaleError = fn (string $locale) => $errors->has("title.$locale") || $errors->has("description.$locale"); $activeLocale = $hasLocaleError('ar') || ! $hasLocaleError('en') ? 'ar' : 'en'; @endphp
@csrf @if ($method !== 'POST') @method($method) @endif
@foreach (['ar', 'en'] as $locale)
getTranslation('title', $locale, false)) }}" class="form-control @error("title.$locale") is-invalid @enderror"> @error("title.$locale")
{{ $message }}
@enderror
{{ trans('dash_site.service_description_hint') }}
@error("description.$locale")
{{ $message }}
@enderror
@endforeach

{{ trans('dash_site.image') }}

{{ trans('dash_site.service_image_hint') }}
@error('image')
{{ $message }}
@enderror

{{ trans('dash_site.service_settings') }}

{{ trans('dash_site.service_specialty_hint') }}
@error('specialty_id')
{{ $message }}
@enderror
{{ trans('dash_site.service_sort_hint') }}
@error('sort_order')
{{ $message }}
@enderror
is_active ?? true))>