30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
@use(App\Models\TLD)
|
|
|
|
<div class="form-group has-validation">
|
|
@if(isset($label))
|
|
<label for="domain_name">{{ $label }}</label>
|
|
@endif
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text"><i class="fas fa-fw fa-globe-asia"></i></span>
|
|
</div>
|
|
<input type="text" class="form-control col-9 text-right @error($name.'.domain_name')is-invalid @enderror" id="domain_name" name="{{ $name }}[domain_name]" placeholder="Domain Name..." value="{{ old($name.'.domain_name',$nameValue ?? '') }}" required>
|
|
<div class="input-group-append">
|
|
<span class="input-group-text">.</span>
|
|
</div>
|
|
<select class="form-control col-3" name="{{ $name }}[tld_id]">
|
|
@foreach(TLD::orderBy('name')->get() as $oo)
|
|
<option value="{{ $oo->id }}" @selected($oo->id == old($name.'.tld_id',$tldValue ?? ''))>{{ $oo->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
|
|
<span class="invalid-feedback" role="alert">
|
|
@error($name.'.domain_name')
|
|
{{ $message }}
|
|
@else
|
|
Domain Name is required.
|
|
@enderror
|
|
</span>
|
|
</div>
|
|
<span class="input-helper">Domain Name</span>
|
|
</div> |