{{-- Hidden metadata for AJAX summary sync --}}
@forelse($employees as $emp) @php $employeeStatus = $emp->is_active ?? $emp->status ?? 1; $isEmployeeActive = ((int) $employeeStatus === 1); @endphp
{{-- Employee Information --}}
{{-- Name --}}
{{ $emp->name }}
{{-- Profile Image --}}
{{-- Status --}} @if($isEmployeeActive) Active @else Inactive @endif {{-- Photo --}} @if(!empty($emp->photo)) {{ $emp->name }} @else
{{ strtoupper(substr($emp->name ?? 'E', 0, 1)) }}
@endif
{{-- Details --}}
Primary ID: {{ $emp->primary_id ?: '--' }}
Secondary ID: {{ $emp->e_id ?: '--' }}
Phone: {{ $emp->phone ?: '--' }}
WhatsApp: {{ $emp->whatsapp_number ?: '--' }}
{{-- Device User ID --}}
Device User ID: {{ $emp->device_user_id ?: '--' }}
Created By: {{ $emp->created_by_name ?: '--' }}
{{-- Action Bar --}}
{{-- Edit --}}
{{-- View --}}
{{-- Actions Dropdown --}}
@empty
No employees found
Add Employee
@endforelse
{{-- Pagination --}} @if($employees->total() > 0)

Page {{ $employees->currentPage() }} of {{ $employees->lastPage() }} , showing {{ $employees->count() }} records out of {{ $employees->total() }}

@endif