{{-- resources/views/talenta/employees/index.blade.php --}} @extends('layouts.app') @section('title','Data Karyawan (Talenta)') @section('page-title','Data Karyawan (Talenta)') @section('content')
@if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif
@php $rows = $items ?? []; @endphp @forelse($rows as $it) @php $uid = $it['user_id'] ?? null; $p = $it['personal'] ?? []; $e = $it['employment'] ?? []; $fn = $p['first_name'] ?? ''; $ln = $p['last_name'] ?? ''; $em = $p['email'] ?? ''; $mb = $p['mobile_phone'] ?? ''; $gd = $p['gender'] ?? ''; $st = $e['status'] ?? ''; $jd = $e['join_date'] ?? ''; // filter di sisi Laravel (jika API tidak ada query search) $keyword = strtolower($search ?? ''); $match = true; if ($keyword) { $match = str_contains(strtolower($fn), $keyword) || str_contains(strtolower($ln), $keyword) || str_contains(strtolower($em), $keyword); } @endphp @if($match) @endif @empty @endforelse
User ID First Last Email Mobile Gender Status Join Date
{{ $uid }} {{ $fn }} {{ $ln }} {{ $em }} {{ $mb }} {{ $gd }} {{ $st }} {{ $jd }}
Tidak ada data.
@if(!empty($pagination))
Page {{ $pagination['current_page'] ?? '?' }} of {{ $pagination['last_page'] ?? '?' }} | Total: {{ $pagination['total'] ?? '?' }}
@endif
Lihat RAW JSON
{{ json_encode($raw ?? [], JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) }}
@endsection