feature: send thankscard page
This commit is contained in:
@@ -61,6 +61,9 @@
|
||||
<!-- Department -->
|
||||
<div class="relative">
|
||||
<label class="block text-[14px] font-bold text-[#1a2b49] mb-2" for="departments">Phòng ban <span class="text-red-500">*</span></label>
|
||||
@php
|
||||
$deptVal = old('departments', $user?->department_name);
|
||||
@endphp
|
||||
@if($mode === 'self')
|
||||
<div class="relative flex items-center w-full">
|
||||
<span class="absolute left-4 text-gray-400 pointer-events-none w-5 h-5 flex items-center justify-center">
|
||||
@@ -72,8 +75,8 @@
|
||||
class="form-input form-input-with-icon !rounded-xl !bg-gray-50 !text-gray-500 cursor-not-allowed w-full"
|
||||
style="padding-left: 48px;"
|
||||
readonly
|
||||
title="{{ $user?->departments }}"
|
||||
value="{{ $user?->departments }}">
|
||||
title="{{ $deptVal }}"
|
||||
value="{{ $deptVal }}">
|
||||
</div>
|
||||
@else
|
||||
<div class="relative flex items-center w-full">
|
||||
@@ -85,7 +88,7 @@
|
||||
<select name="departments" id="departments" class="form-input form-input-with-icon !rounded-xl !focus:border-[#3462f7] !focus:ring-[#3462f7]/20 w-full" style="padding-left: 48px;" required>
|
||||
<option value="">-- Chọn phòng ban --</option>
|
||||
@foreach(config('constants.DEPARTMENTS') as $dept)
|
||||
<option value="{{ $dept }}" {{ old('departments', $user?->departments) == $dept ? 'selected' : '' }}>{{ $dept }}</option>
|
||||
<option value="{{ $dept }}" {{ $deptVal == $dept ? 'selected' : '' }}>{{ $dept }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user