Personal Information
@error('staff_no')
{{ $message }}
@enderror
@if ($canUpdateStaffInfo ?? true)
@error('other_id')
{{ $message }}
@enderror
@endif
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('gender_id')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@if ($canUpdateStaffInfo ?? true)
@error('religion')
{{ $message }}
@enderror
@endif
@error('marital_status')
{{ $message }}
@enderror
Birth & Age
@error('date_of_birth')
{{ $message }}
@enderror
@error('age')
{{ $message }}
@enderror
@if ($canUpdateStaffInfo ?? true)
ID & Expiry Date
@error('id_number')
{{ $message }}
@enderror
@error('id_expiry_date')
{{ $message }}
@enderror
@endif
Profile Picture
@php $staffPhoto = $staff->staff_photo ?? null; $staffPhotoUrl = $staffPhoto ? (\Illuminate\Support\Str::startsWith($staffPhoto, ['http://', 'https://']) ? $staffPhoto : asset($staffPhoto)) : asset('assets/images/logo-icon.png'); @endphp
Profile Picture @if ($staffPhoto)
Current photo: {{ basename($staffPhoto) }}
@endif
@error('staff_photo')
{{ $message }}
@enderror
@if (request()->routeIs('editProfile') && optional($staff->jobTitle)->slug === 'teacher')
Teacher Intro Video
@error('intro_video_url')
{{ $message }}
@enderror @if (!empty($staff->intro_video_url)) @php $introVideoLink = \Illuminate\Support\Str::startsWith($staff->intro_video_url, ['http://', 'https://']) ? $staff->intro_video_url : asset($staff->intro_video_url); @endphp @endif
@endif @if (request()->routeIs('editProfile') && $staff->jobTitle && in_array(strtolower($staff->jobTitle->slug), ['teacher', 'tester'], true))
Teacher / Tester Profile
@php $selectedAccents = old('accent', $staff->accent ?? []); if (!is_array($selectedAccents)) { $decoded = json_decode((string) $selectedAccents, true); $selectedAccents = is_array($decoded) ? $decoded : array_filter([(string) $selectedAccents]); } @endphp @error('accent')
{{ $message }}
@enderror @error('accent.*')
{{ $message }}
@enderror
@error('biography')
{{ $message }}
@enderror
@endif