diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index 59a2b22a..076d1303 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -1566,35 +1566,6 @@ class TicketController extends BaseController 'hospital_pin_code' => ['label' => 'Hospital Pincode','rules' => 'required|numeric|exact_length[6]', 'errors' => ['exact_length' => 'Pincode must be 6 digits'] ], - 'state' => [ - 'label' => 'State', - 'rules' => 'required|regex_match[/^[a-zA-Z\s\-]+$/]', - 'errors' => [ - 'required' => 'State is required.', - 'regex_match' => 'State name can only contain letters, spaces, and hyphens.' - ] - ], - 'district' => [ - 'rules' => 'required|regex_match[/^[a-zA-Z0-9\s\-]+$/]', - 'errors' => [ - 'required' => 'District is required.', - 'regex_match' => 'District can contain letters, numbers, spaces, and hyphens.' - ] - ], - 'city' => [ - 'rules' => 'required|regex_match[/^[a-zA-Z0-9\s\-]+$/]', - 'errors' => [ - 'regex_match' => 'City can contain letters, numbers, spaces, and hyphens.' - ] - ], - 'pincode' => [ - 'rules' => 'required|numeric|exact_length[6]', - 'errors' => [ - 'required' => 'Pincode is required.', - 'numeric' => 'Pincode must be digits only.', - 'exact_length' => 'Pincode must be exactly 6 digits.' - ] - ], 'hospital_phone_no' => ['label' => 'Hospital Phone','rules' => 'required|numeric|min_length[10]', 'errors' => ['min_length' => 'Phone number too short'] ],