From 53c69189f764163c25a2f4d0bf41592a02f232be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Mar 2024 17:30:28 +0100 Subject: [PATCH] Add required fields for contact information --- app/Livewire/RequiredClientInfo.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Livewire/RequiredClientInfo.php b/app/Livewire/RequiredClientInfo.php index 80e2654fdcd7..959824d2f49d 100644 --- a/app/Livewire/RequiredClientInfo.php +++ b/app/Livewire/RequiredClientInfo.php @@ -147,6 +147,13 @@ class RequiredClientInfo extends Component public function mount() { + $this->fields = [ + ['name' => 'contact_first_name', 'label' => ctrans('texts.first_name'), 'type' => 'text', 'validation' => 'required'], + ['name' => 'contact_last_name', 'label' => ctrans('texts.last_name'), 'type' => 'text', 'validation' => 'required'], + ['name' => 'contact_email', 'label' => ctrans('texts.email'), 'type' => 'text', 'validation' => 'required,email:rfc'], + ...$this->fields + ]; + MultiDB::setDb($this->company->db); $this->client = $this->contact->client;