Enable creation of domains and domain service editing
This commit is contained in:
@@ -18,22 +18,24 @@
|
||||
<th>Domain Name</th>
|
||||
<td>{{ $o->service->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Registrar URL</th>
|
||||
<td><a href="{{ $o->registrar->whitelabel_url }}" target="_blank" class="text-white">{{ $o->registrar->whitelabel_url }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Registrar Username</th>
|
||||
<td>{{ $o->registrar_username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Registrar Password</th>
|
||||
<td>{{ $o->registrar_password }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Domain Auth</th>
|
||||
<td>{{ $o->registrar_auth_password }}</td>
|
||||
</tr>
|
||||
@if($o->registrar)
|
||||
<tr>
|
||||
<th>Registrar URL</th>
|
||||
<td><a href="{{ $o->registrar->whitelabel_url }}" target="_blank" class="text-white">{{ $o->registrar->whitelabel_url }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Registrar Username</th>
|
||||
<td>{{ $o->registrar_username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Registrar Password</th>
|
||||
<td>{{ $o->registrar_password }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Domain Auth</th>
|
||||
<td>{{ $o->registrar_auth_password }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if($o->service_connect_date)
|
||||
<tr>
|
||||
<th>Connected</th>
|
||||
@@ -41,10 +43,12 @@
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<th>Expires</th>
|
||||
<td>{{ $o->expire_at->format('Y-m-d') }} <small>({{ $o->expire_at->diffInMonths() }} months) </small></td>
|
||||
</tr>
|
||||
@if ($o->active)
|
||||
<tr>
|
||||
<th>Expires</th>
|
||||
<td>{{ $o->expire_at->format('Y-m-d') }} <small>({{ $o->expire_at->diffInMonths() }} months) </small></td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
@@ -95,6 +95,43 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<p class="h6">Service Dates</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
|
||||
@include('adminlte::widget.form_date',[
|
||||
'label'=>'Registered Date',
|
||||
'id'=>'connect_at',
|
||||
'old'=>'phone.connect_at',
|
||||
'name'=>'phone[connect_at]',
|
||||
'value'=>$o->connect_at ? $o->connect_at->format('Y-m-d') : '',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
|
||||
@include('adminlte::widget.form_date',[
|
||||
'label'=>'Billing Start Date',
|
||||
'id'=>'invoice_next_at',
|
||||
'old'=>'invoice_next_at',
|
||||
'name'=>'invoice_next_at',
|
||||
'value'=>$o->service->invoice_next_at ? $o->service->invoice_next_at->format('Y-m-d') : ($o->connect_at ? $o->connect_at->format('Y-m-d') : ''),
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
|
||||
@include('adminlte::widget.form_select',[
|
||||
'label'=>'Renew Term',
|
||||
'icon'=>'fas fa-calendar',
|
||||
'id'=>'recur_schedule',
|
||||
'old'=>'recur_schedule',
|
||||
'name'=>'recur_schedule',
|
||||
'options'=>collect(\App\Models\Invoice::billing_periods)->filter(function ($item) { return $item['interval'] >= 12; })->transform(function($item,$key) { return ['id'=>$key,'value'=>$item['name']]; }),
|
||||
'value'=>$o->service->recur_schedule ?? '',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('page-scripts')
|
||||
@css(select2)
|
||||
@js(select2,autofocus)
|
||||
|
@@ -43,7 +43,7 @@
|
||||
@if (($o->active OR $o->isPending()) AND ! $o->external_billing)
|
||||
<tr>
|
||||
<th>Billed</th>
|
||||
<td>{{ $o->billing_period }}</td>
|
||||
<td>{{ $o->billing_interval_string }}</td>
|
||||
</tr>
|
||||
@if($o->active AND $o->invoice_to)
|
||||
<tr>
|
||||
|
@@ -0,0 +1,19 @@
|
||||
<fieldset class="form-group">
|
||||
<label class="col-md-12">DOMAIN</label>
|
||||
|
||||
<div class="form-group col-sm-6 {{ $errors->has('options.domain') ? 'has-error' : '' }}">
|
||||
<label for="options.domain">Domain Name</label>
|
||||
<input type="text" class="form-control" id="options.domain" name="options[domain]" placeholder="Domain Name" value="{{ old('options.domain') }}">
|
||||
<span class="help-block">{{ $errors->first('options.domain') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6 {{ $errors->has('options.tld_id') ? 'has-error' : '' }}">
|
||||
<label for="options.tld_id">Domain TLD</label>
|
||||
<select style="width:25%;" class="form-control @error('options.tld_id') is-invalid @enderror" id="options.tld_id" name="options[tld_id]">
|
||||
@foreach(\App\Models\TLD::orderBy('name')->get() as $oo)
|
||||
<option value="{{ $oo->id }}" @if($oo->id == old('options.tld_id',$o->tld_id))selected @endif>{{ $oo->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span class="help-block">{{ $errors->first('options.tld') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
Reference in New Issue
Block a user