.
@error('domain_name') {{ $message }} @enderror @error('tld_id') {{ $message }} @enderror
@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') : ''), ])

Registrar Details

@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 ?? '', ])
@include('adminlte::widget.form_text',[ 'label'=>'Registrar Account', 'icon'=>'fas fa-user-circle', 'id'=>'registrar_account', 'old'=>'domain.registrar_account', 'name'=>'domain[registrar_account]', 'value'=>$o->registrar_account ?? '', ])
@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, ])
@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 ?? '', ])

Service Dates

@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') : '', ])
@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') : ''), ])
@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 ?? '', ])
@section('page-scripts') @css(select2) @js(select2,autofocus) @append