More work on moving service updates to use components, move 'host' to 'hosting', move some redundant views
This commit is contained in:
30
resources/views/components/form/domain.blade.php
Normal file
30
resources/views/components/form/domain.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@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>
|
Reference in New Issue
Block a user