fix(profile): show and persist line id in profile form

This commit is contained in:
2026-02-13 08:42:04 +08:00
parent 5c3866446c
commit 296a70010d
3 changed files with 18 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ class ProfileController extends Controller
$memberFields = [
'national_id',
'phone',
'line_id',
'phone_home',
'phone_fax',
'address_line_1',

View File

@@ -20,6 +20,7 @@ class ProfileUpdateRequest extends FormRequest
'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'],
'line_id' => ['nullable', 'string', 'max:100'],
'phone_home' => ['nullable', 'string', 'max:50'],
'phone_fax' => ['nullable', 'string', 'max:50'],
'birth_date' => ['nullable', 'date'],

View File

@@ -182,6 +182,22 @@
<x-input-error class="mt-2" :messages="$errors->get('phone')" />
</div>
<div>
<x-input-label for="line_id" :value="__('Line ID')" />
<x-text-input
id="line_id"
name="line_id"
type="text"
class="mt-1 block w-full"
:value="old('line_id', optional($member)->line_id)"
maxlength="100"
autocomplete="off"
/>
<x-input-error class="mt-2" :messages="$errors->get('line_id')" />
</div>
</div>
<div class="grid gap-4 sm:grid-cols-2">
<div>
<x-input-label for="phone_home" :value="__('Home Phone')" />
<x-text-input