@if (isset($employees) && count($employees) > 0) @foreach ($employees as $employee) {{-- --}} @endforeach @endif
Name Assigned Role Assigned Department Status Created at Actions
{{ $employee->name }} {{ $employee->roles->pluck('actual_name')->implode(', ') }} {{ ucfirst($employee->roles->pluck('department.name')->filter()->implode(', ')) }} {{ basicStatusesDisplay($employee->status) }} {{ dateInList($employee->created_at) }}Active @canany(['list-employee', 'edit-employee', 'delete-employee']) @endcanany
{!! pageInfo($employees) !!}
{!! $employees->links('pagination::bootstrap-4') !!}