feature: send thankscard page
This commit is contained in:
@@ -2,16 +2,7 @@
|
||||
@section('title', $mode === 'create' ? 'Thêm User Mới' : 'Chi tiết User')
|
||||
|
||||
@section('content')
|
||||
<div class="mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pl-1">
|
||||
<div>
|
||||
<h1 class="text-[28px] font-extrabold text-[#1a2b49] flex items-center gap-2 mb-1.5 tracking-tight">
|
||||
{{ $mode === 'create' ? 'Thêm User Mới' : 'Chi tiết User' }}
|
||||
</h1>
|
||||
<p class="text-gray-500 font-medium text-[14px]">
|
||||
{{ $mode === 'create' ? 'Tạo tài khoản nhân viên mới và thiết lập các thông tin cơ bản.' : 'Quản lý thông tin thẻ và theo dõi lịch sử nhận gửi của nhân viên.' }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<x-user-page :mode="$mode" :user="$user ?? null" :administrations="$administrations ?? null" :selectedMonth="$selectedMonth ?? null" :addCards="$addCards ?? null" :admins="$admins ?? null" />
|
||||
@endsection
|
||||
|
||||
@@ -38,13 +38,7 @@
|
||||
</td>
|
||||
<td class="table-body-cell">
|
||||
@php
|
||||
$deptVal = $u->departments;
|
||||
if (is_numeric($deptVal)) {
|
||||
$idx = ((int)$deptVal) - 1;
|
||||
$deptName = config('constants.DEPARTMENTS')[$idx] ?? 'Team';
|
||||
} else {
|
||||
$deptName = $deptVal ?? 'Team';
|
||||
}
|
||||
$deptName = $u->department_name ?? 'Team';
|
||||
@endphp
|
||||
<div class="max-w-[200px] truncate font-medium text-gray-600" title="{{ $deptName }}">
|
||||
{{ $deptName }}
|
||||
|
||||
Reference in New Issue
Block a user