@extends('SuperAdmin.layout.layout') @section('title',"Manager") @section('page-name',"Managers") @section('page-detail',"All Managers Information") @section('pagelink', 'managers') @section('body')
@if($employees->isEmpty())

No Manager Assign Yet!

@else
@foreach($employees as $employee) @if($employee->role == "Manager") @endif @endforeach
Manager Name Employee ID Department Join Date Status Action
@if (!empty($employee->image)) Employee Image @else {{ strtoupper(implode('', array_merge(array_map(fn($part) => is_numeric($part) ? $part : $part[0], array_slice(explode(' ', $employee->name), 0, 2)),preg_match('/\d/', $employee->name, $matches) ? [$matches[0]] : []))) }} @endif
{{$employee->name}}
{{$employee->employee_id}} {{$employee->department->name ?? "N/A"}} {{ $employee->created_at->format('m-d-y') }} @if($employee->status === '2') Active @elseif($employee->status === '1') Inactive @else Pending @endif {{-- --}}
@endif
@endsection @section('custom-scripts') @endsection