@extends('layouts.user_type.auth') @section('pageEyebrow') All companies @endsection @section('pageTitle', $company_name ?? 'Company profile') @section('pageSub', 'Active users inside this company\'s LIMS workspace.') @section('companyProfile.employee') @include('components.alert') @include('pages.companyProfile.partials.nav_tabs', ['active' => 'employee'])
Employees
{{ number_format($employees->total()) }} {{ \Illuminate\Support\Str::plural('employee', $employees->total()) }}
@forelse($employees as $index => $employee) @php $emWords = preg_split('/\s+/', trim($employee->name ?? '')); $emInitials = strtoupper(substr($emWords[0] ?? '', 0, 1) . substr($emWords[1] ?? '', 0, 1)) ?: '?'; $emTone = 'c' . ((crc32($employee->name ?? '') % 6) + 1); @endphp @empty @endforelse
Employee Contact no.
{{ $emInitials }} {{ $employee->name }} {{ $employee->email }}
{{ $employee->contact_no ?? '—' }}
@if(request('search'))
No employees match your search
Try a different name, email or contact number.
@else
No employees yet
Active users added inside this company's workspace will show here.
@endif
@if($employees->hasPages()) @include('components.pagination', ['paginator' => $employees]) @endif
@endsection