diff --git a/app/Models/Service/Phone.php b/app/Models/Service/Phone.php index 6ecf206..874eaf7 100644 --- a/app/Models/Service/Phone.php +++ b/app/Models/Service/Phone.php @@ -48,4 +48,23 @@ class Phone extends Type { return $value ?: $this->supplied()->technology; } + + /* OVERRIDES */ + + /** + * Service update validation + * + * @return array + */ + public function validation(): array + { + return [ + 'service_number' => 'nullable|string|min:10|max:10', + 'service_username' => 'nullable|string', + 'service_password' => 'nullable|string', + 'connect_at' => 'nullable|date', + 'start_at' => 'nullable|date', + 'expire_at' => 'nullable|date|after:start_at', + ]; + } } \ No newline at end of file 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 34d9746..47ab79f 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,72 +1,74 @@ - -
Service Dates
+ +