diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 94b1c7f..7e6c553 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -50,11 +50,21 @@ class ProfileController extends Controller $request->user()->save(); $memberFields = [ + 'national_id', 'phone', + 'phone_home', + 'phone_fax', 'address_line_1', 'address_line_2', 'city', 'postal_code', + 'birth_date', + 'gender', + 'identity_type', + 'identity_other_text', + 'occupation', + 'employer', + 'job_title', 'emergency_contact_name', 'emergency_contact_phone', ]; diff --git a/app/Http/Requests/ProfileUpdateRequest.php b/app/Http/Requests/ProfileUpdateRequest.php index 3810e23..aa8ee31 100644 --- a/app/Http/Requests/ProfileUpdateRequest.php +++ b/app/Http/Requests/ProfileUpdateRequest.php @@ -18,7 +18,17 @@ class ProfileUpdateRequest extends FormRequest return [ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)], + 'national_id' => ['nullable', 'string', 'max:50'], 'phone' => ['nullable', 'string', 'max:50'], + 'phone_home' => ['nullable', 'string', 'max:50'], + 'phone_fax' => ['nullable', 'string', 'max:50'], + 'birth_date' => ['nullable', 'date'], + 'gender' => ['nullable', 'in:male,female,other'], + 'identity_type' => ['nullable', 'in:patient,parent,social,other'], + 'identity_other_text' => ['nullable', 'string', 'max:255', 'required_if:identity_type,other'], + 'occupation' => ['nullable', 'string', 'max:120'], + 'employer' => ['nullable', 'string', 'max:255'], + 'job_title' => ['nullable', 'string', 'max:120'], 'address_line_1' => ['nullable', 'string', 'max:255'], 'address_line_2' => ['nullable', 'string', 'max:255'], 'city' => ['nullable', 'string', 'max:120'], diff --git a/lang/zh_TW.json b/lang/zh_TW.json index e396cf5..14da49a 100644 --- a/lang/zh_TW.json +++ b/lang/zh_TW.json @@ -21,6 +21,9 @@ "Basic Information": "基本資訊", "Full Name": "全名", "Phone": "電話", + "Mobile Phone": "行動電話", + "Home Phone": "室內電話", + "Fax": "傳真", "National ID (Optional)": "身分證字號(選填)", "Your national ID will be encrypted for security.": "您的身分證字號將會加密儲存以確保安全。", "Address": "地址", @@ -28,6 +31,16 @@ "Address Line 2": "地址第二行", "City": "城市", "Postal Code": "郵遞區號", + "Member Number": "會員編號", + "Application Date": "申請日期", + "Birth Date": "出生年月日", + "Gender": "性別", + "Identity Type": "身份別", + "Identity Type Other": "身份別其他說明", + "National ID": "身分證號", + "Occupation": "現職", + "Employer": "服務單位", + "Job Title": "職稱", "Emergency Contact": "緊急聯絡人", "Emergency Contact Name": "緊急聯絡人姓名", "Emergency Contact Phone": "緊急聯絡人電話", diff --git a/resources/views/profile/partials/update-profile-information-form.blade.php b/resources/views/profile/partials/update-profile-information-form.blade.php index b76a52c..c7907e1 100644 --- a/resources/views/profile/partials/update-profile-information-form.blade.php +++ b/resources/views/profile/partials/update-profile-information-form.blade.php @@ -67,16 +67,182 @@
由系統編號,不提供修改。
+由系統帶入,無需修改。
+將加密儲存以確保安全。
+