diff --git a/app/Models/Service/Broadband.php b/app/Models/Service/Broadband.php
index 75df9b7..3c1f76f 100644
--- a/app/Models/Service/Broadband.php
+++ b/app/Models/Service/Broadband.php
@@ -93,6 +93,7 @@ class Broadband extends Type implements ServiceUsage
{
return [
'service_number' => 'nullable|string|min:10|max:10',
+ 'service_address' => 'nullable|string|min:3',
'service_username' => 'nullable|string',
'service_password' => 'nullable|string',
'connect_at' => 'nullable|date',
diff --git a/app/Models/Service/Phone.php b/app/Models/Service/Phone.php
index 874eaf7..dd58b1b 100644
--- a/app/Models/Service/Phone.php
+++ b/app/Models/Service/Phone.php
@@ -60,6 +60,7 @@ class Phone extends Type
{
return [
'service_number' => 'nullable|string|min:10|max:10',
+ 'service_address' => 'nullable|string|min:3',
'service_username' => 'nullable|string',
'service_password' => 'nullable|string',
'connect_at' => 'nullable|date',
diff --git a/resources/views/theme/backend/adminlte/service/widget/broadband/update.blade.php b/resources/views/theme/backend/adminlte/service/widget/broadband/update.blade.php
index f1f922f..06868d4 100644
--- a/resources/views/theme/backend/adminlte/service/widget/broadband/update.blade.php
+++ b/resources/views/theme/backend/adminlte/service/widget/broadband/update.blade.php
@@ -10,6 +10,17 @@
'value'=>$o->service_number ?? '',
])
+
+
+ @include('adminlte::widget.form_text',[
+ 'label'=>'Service Address',
+ 'icon'=>'fas fa-map',
+ 'id'=>'service_address',
+ 'old'=>'broadband.service_address',
+ 'name'=>'broadband[service_address]',
+ 'value'=>$o->service_address ?? '',
+ ])
+
@@ -18,7 +29,7 @@
'label'=>'Service Username',
'icon'=>'fas fa-user',
'id'=>'service_username',
- 'old'=>'broadband.service_username',
+ 'old'=>'broadband.service_username',
'name'=>'broadband[service_username]',
'value'=>$o->service_username ?? '',
])
diff --git a/resources/views/theme/backend/adminlte/service/widget/domain/update.blade.php b/resources/views/theme/backend/adminlte/service/widget/domain/update.blade.php
index 917c2f4..ccb0cd1 100644
--- a/resources/views/theme/backend/adminlte/service/widget/domain/update.blade.php
+++ b/resources/views/theme/backend/adminlte/service/widget/domain/update.blade.php
@@ -52,7 +52,7 @@
'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]; }),
+ 'options'=>\App\Models\DomainRegistrar::active()->orderBy('name')->get()->transform(function($item) { return ['id'=>$item->id,'value'=>$item->name]; }),
'value'=>$o->domain_registrar_id ?? '',
])
@@ -77,7 +77,7 @@
'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]; }),
+ '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,
])
@@ -88,7 +88,7 @@
'label'=>'Registrar Username',
'icon'=>'fas fa-user',
'id'=>'registrar_username',
- 'old'=>'domain.registrar_username',
+ 'old'=>'domain.registrar_username',
'name'=>'domain[registrar_username]',
'value'=>$o->registrar_username ?? '',
])
diff --git a/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php b/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php
index d77c817..09f9071 100644
--- a/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php
+++ b/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php
@@ -65,7 +65,7 @@
'label'=>'Admin User',
'icon'=>'fas fa-user',
'id'=>'host_username',
- 'old'=>'host.host_username',
+ 'old'=>'host.host_username',
'name'=>'host[host_username]',
'value'=>$o->host_username ?? '',
])
diff --git a/resources/views/theme/backend/adminlte/service/widget/phone/update.blade.php b/resources/views/theme/backend/adminlte/service/widget/phone/update.blade.php
index 47ab79f..be5479f 100644
--- a/resources/views/theme/backend/adminlte/service/widget/phone/update.blade.php
+++ b/resources/views/theme/backend/adminlte/service/widget/phone/update.blade.php
@@ -10,6 +10,17 @@
'value'=>$o->service_number ?? '',
])
+
+
+ @include('adminlte::widget.form_text',[
+ 'label'=>'Service Address',
+ 'icon'=>'fas fa-map',
+ 'id'=>'service_address',
+ 'old'=>'phone.service_address',
+ 'name'=>'phone[service_address]',
+ 'value'=>$o->service_address ?? '',
+ ])
+
@@ -18,7 +29,7 @@
'label'=>'Service Username',
'icon'=>'fas fa-user',
'id'=>'service_username',
- 'old'=>'phone.service_username',
+ 'old'=>'phone.service_username',
'name'=>'phone[service_username]',
'value'=>$o->service_username ?? '',
])
@@ -53,10 +64,10 @@
@include('adminlte::widget.form_date',[
'label'=>'Billing Start Date',
- 'id'=>'start_at',
- 'old'=>'phone.start_at',
- 'name'=>'phone[start_at]',
- 'value'=>$o->start_at ? $o->start_at->format('Y-m-d') : ($o->connect_at ? $o->connect_at->format('Y-m-d') : ''),
+ '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') : ''),
])