From b6236822ea1834c200a926f27c45c4a48d37bbf6 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 31 Jul 2024 22:39:29 +1000 Subject: [PATCH] Update phone service update form to use form components --- .../service/widget/phone/update.blade.php | 54 +++---------------- 1 file changed, 6 insertions(+), 48 deletions(-) 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 e2e4eb9..784fc5e 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 @@ -1,49 +1,21 @@
- @include('adminlte::widget.form_text',[ - 'label'=>'Service Number', - 'icon'=>'fas fa-phone', - 'id'=>'service_number', - 'old'=>'phone.service_number', - 'name'=>'phone[service_number]', - '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 ?? '', - ]) +
- @include('adminlte::widget.form_text',[ - 'label'=>'Service Username', - 'icon'=>'fas fa-user', - 'id'=>'service_username', - 'old'=>'phone.service_username', - 'name'=>'phone[service_username]', - 'value'=>$o->service_username ?? '', - ]) +
- @include('adminlte::widget.form_text',[ - 'label'=>'Service Password', - 'icon'=>'fas fa-lock', - 'id'=>'service_password', - 'old'=>'phone.service_password', - 'name'=>'phone[service_password]', - 'value'=>$o->service_password ?? '', - ]) +
@@ -52,24 +24,10 @@
- @include('adminlte::widget.form_date',[ - 'label'=>'Connect Date', - 'icon'=>'fas fa-calendar', - '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'=>'Contract End', - 'icon'=>'fas fa-calendar', - 'id'=>'expire_at', - 'old'=>'phone.expire_at', - 'name'=>'phone[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') : ''), - ]) +
\ No newline at end of file