2021-07-13 02:31:56 +00:00
|
|
|
<div class="row">
|
2022-08-02 09:16:52 +00:00
|
|
|
<div class="col-12 col-sm-9 col-md-12 col-xl-7">
|
|
|
|
<div class="form-group">
|
2021-07-13 02:31:56 +00:00
|
|
|
<label for="domain_name">Domain Name</label>
|
|
|
|
<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>
|
2022-08-02 09:16:52 +00:00
|
|
|
<input type="text" style="width:55%;" class="form-control text-right @error('domain_name') is-invalid @enderror" id="domain_name" name="domain[domain_name]" placeholder="Domain Name..." value="{{ old('domain.domain_name',$o->domain_name) }}" required>
|
|
|
|
|
2021-07-13 02:31:56 +00:00
|
|
|
<div class="input-group-append">
|
|
|
|
<span class="input-group-text">.</span>
|
|
|
|
</div>
|
2022-08-02 09:16:52 +00:00
|
|
|
|
|
|
|
<select style="width:25%;" class="form-control @error('tld_id') is-invalid @enderror" id="tld_id" name="domain[tld_id]">
|
|
|
|
@foreach(\App\Models\TLD::orderBy('name')->get() as $oo)
|
|
|
|
<option value="{{ $oo->id }}" @if($oo->id == old('domain.tld_id',$o->tld_id))selected @endif>{{ $oo->name }}</option>
|
2021-07-13 02:31:56 +00:00
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<span class="invalid-feedback" role="alert">
|
2022-08-02 09:16:52 +00:00
|
|
|
@error('domain_name')
|
2021-07-13 02:31:56 +00:00
|
|
|
{{ $message }}
|
|
|
|
@enderror
|
2022-08-02 09:16:52 +00:00
|
|
|
@error('tld_id')
|
2021-07-13 02:31:56 +00:00
|
|
|
{{ $message }}
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-02 09:16:52 +00:00
|
|
|
|
|
|
|
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
|
|
|
|
@include('adminlte::widget.form_date',[
|
|
|
|
'label'=>'Expiry',
|
|
|
|
'id'=>'expire_at',
|
|
|
|
'old'=>'domain.expire_at',
|
|
|
|
'name'=>'domain[expire_at]',
|
|
|
|
'value'=>$o->expire_at ? $o->expire_at->format('Y-m-d') : ($o->connect_at ? $o->connect_at->addMonths($o->contract_term)->format('Y-m-d') : ''),
|
|
|
|
])
|
|
|
|
</div>
|
2021-07-13 02:31:56 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-02 09:16:52 +00:00
|
|
|
<hr>
|
|
|
|
<p class="h6">Registrar Details</p>
|
2021-07-13 02:31:56 +00:00
|
|
|
|
2022-08-02 09:16:52 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
|
|
|
|
@include('adminlte::widget.form_select',[
|
|
|
|
'label'=>'Registrar',
|
|
|
|
'icon'=>'fas fa-handshake',
|
|
|
|
'id'=>'domain_registrar_id',
|
|
|
|
'old'=>'domain.domain_registrar_id',
|
|
|
|
'name'=>'domain[domain_registrar_id]',
|
|
|
|
'options'=>\App\Models\DomainRegistrar::active()->orderBy('name')->get()->transform(function($item) { return ['id'=>$item->id,'value'=>$item->name]; }),
|
|
|
|
'value'=>$o->domain_registrar_id ?? '',
|
|
|
|
])
|
2021-07-13 02:31:56 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-02 09:16:52 +00:00
|
|
|
<div class="col-12 col-sm-9 col-md-12 col-xl-6">
|
|
|
|
@include('adminlte::widget.form_text',[
|
|
|
|
'label'=>'Registrar Account',
|
|
|
|
'icon'=>'fas fa-user-circle',
|
|
|
|
'id'=>'registrar_account',
|
2022-08-20 13:01:03 +00:00
|
|
|
'old'=>'domain.registrar_account',
|
2022-08-02 09:16:52 +00:00
|
|
|
'name'=>'domain[registrar_account]',
|
|
|
|
'value'=>$o->registrar_account ?? '',
|
|
|
|
])
|
2021-07-13 02:31:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2022-08-02 09:16:52 +00:00
|
|
|
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
|
|
|
|
@include('adminlte::widget.form_select',[
|
|
|
|
'label'=>'DNS Location',
|
|
|
|
'icon'=>'fas fa-project-diagram',
|
|
|
|
'id'=>'registrar_ns',
|
|
|
|
'old'=>'domain.registrar_ns',
|
|
|
|
'name'=>'domain[registrar_ns]',
|
|
|
|
'options'=>\App\Models\Service\Domain::select('registrar_ns')->distinct()->orderBy('registrar_ns')->get()->transform(function($item) { return ['id'=>$item->registrar_ns,'value'=>$item->registrar_ns]; }),
|
|
|
|
'value'=>$o->registrar_ns ?? '',
|
|
|
|
'addvalues'=>TRUE,
|
|
|
|
])
|
2021-07-13 02:31:56 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-02 09:16:52 +00:00
|
|
|
<div class="col-12 col-sm-9 col-md-12 col-xl-6">
|
|
|
|
@include('adminlte::widget.form_text',[
|
|
|
|
'label'=>'Registrar Username',
|
|
|
|
'icon'=>'fas fa-user',
|
|
|
|
'id'=>'registrar_username',
|
|
|
|
'old'=>'domain.registrar_username',
|
|
|
|
'name'=>'domain[registrar_username]',
|
|
|
|
'value'=>$o->registrar_username ?? '',
|
|
|
|
])
|
2021-07-13 02:31:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section('page-scripts')
|
2021-12-20 03:08:00 +00:00
|
|
|
@css(select2)
|
|
|
|
@js(select2,autofocus)
|
2021-07-13 02:31:56 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2022-08-02 09:16:52 +00:00
|
|
|
$('#tld_id').select2({
|
2021-07-13 02:31:56 +00:00
|
|
|
dropdownAutoWidth: true,
|
|
|
|
width: 'style',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2022-08-02 09:16:52 +00:00
|
|
|
@append
|