@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
{{-- | ID | --}}
Tên nhân viên |
{{-- Tên marketing | --}}
Email nhân viên tạo |
Chức danh |
{{-- Bộ phận | --}}
{{-- Số điện thoại | --}}
Ngày vào làm |
{{-- Salary | --}}
{{-- Popup filter --}}
|
Vai trò |
Hành động |
@foreach ($employees as $employee)
{{-- | #{{ $employee->user->id }} | --}}
{{ $employee->user->name ?? 'N/A' }} |
{{-- {{ $employee->mkt_name }} | --}}
{{ $employee->user->email ?? 'N/A' }} |
{{ $employee->designation }} |
{{-- {{ $employee->department }} | --}}
{{-- {{ $employee->phone }} | --}}
{{ $employee->joining_date ? \Carbon\Carbon::parse($employee->joining_date)->format('d/m/Y') : '' }}
|
{{-- {{ number_format($employee->salary, 2) }}/- | --}}
@if ($employee->status == 'active')
Active
@else
Inactive
@endif
|
{{ $employee->user ? $employee->user->roles->pluck('name')->implode(', ') : '' }}
|
{{-- -------------------------------- Delete with confirmation -------------------------------- --}}
{{-- -------------------------------- Delete with confirmation -------------------------------- --}}
|
@endforeach
{{ $employees->links('pagination::bootstrap-5') }}