<div class="row">
    <x-forms col="4" label="{{ __('dashboard.code') }}" name="code" :value="$language->code ?? ''" required placeholder="en" />
    <x-forms col="4" label="{{ __('dashboard.name') }}" name="name" :value="$language->name ?? ''" required placeholder="English" />
    <x-forms col="4" label="{{ __('dashboard.native_name') }}" name="native_name" :value="$language->native_name ?? ''" placeholder="English" />
</div>

<div class="row">
    <div class="col-md-4">
        <label class="form-label">{{ __('dashboard.direction') }} <span class="text-danger">*</span></label>
        <select name="direction" class="form-select" required>
            <option value="ltr" {{ (isset($language) && $language->direction == 'ltr') ? 'selected' : (!isset($language) ? 'selected' : '') }}>{{ __('dashboard.ltr') }}</option>
            <option value="rtl" {{ (isset($language) && $language->direction == 'rtl') ? 'selected' : '' }}>{{ __('dashboard.rtl') }}</option>
        </select>
    </div>

    <div class="col-md-4">
        <x-boolean-input name="is_active" label="{{ __('dashboard.active') }}" :value="$language ?? (object)['is_active' => true]" />
    </div>

    <div class="col-md-4">
        <x-boolean-input name="is_default" label="{{ __('dashboard.default') }}" :value="$language ?? (object)['is_default' => false]" />
    </div>
</div>
