@extends('layouts.main') @section('title', 'Employee Data') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); @endphp @endsection @section('navbarTitle', 'Employee Data') @section('content') @include('layouts.breadcrumb', [ 'title' => 'Employee Data', 'current' => 'Employee List', 'homeRoute' => 'dashboard', ]) @php $hasEventDivisionRoute = \Illuminate\Support\Facades\Route::has('authorization.event-divisions'); $employeeStatusFilter = $employeeStatusFilter ?? 'active'; $employeeStatusTabs = [ 'active' => 'Active', 'inactive' => 'Inactive', ]; @endphp

Employee List

Employee, deployment, identity, and PIC data.

@if ($canManageDataEmployee) Add Employee @endif
@include('partials.swal-alert', ['type' => 'success', 'message' => session('status')])
@forelse ($users as $user) @empty @endforelse
Name NIK Employee Code Position Company PIC Status Action
@if (! empty($user['avatar_url'])) {{ $user['name'] }} @else {{ $user['initials'] }} @endif
{{ $user['name'] }}
{{ $user['nik'] }} {{ $user['employee_code'] }} {{ $user['position'] }} {{ $user['company'] }} {{ $user['pic'] }} @php $statusClass = match ($user['status']) { 'Active' => 'badge-success', 'Pending' => 'badge-warning', default => 'badge-danger', }; @endphp {{ $user['status'] }}
Detail @if ($canManageDataEmployee) Update
@csrf @method('DELETE')
@endif
{{ $search !== '' ? 'No matching employee found.' : 'No '.$employeeStatusFilter.' employee data available.' }}
@if ($users->total() > 0) @endif
@endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); @endphp @endsection