@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @push('css') @endpush @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Filter {{ $title_menu }}

Select the request period, requestor, and approval status.

@include('components.alert')
Reset
Report Results

Periode {{ \Carbon\Carbon::parse($date_from)->format('d/m/Y') }}–{{ \Carbon\Carbon::parse($date_to)->format('d/m/Y') }}

@foreach ($report_results as $result) @php $status = strtolower($result->approval_hrd ?: 'pending'); $statusLabel = ['pending' => 'Pending', 'approved' => 'Approved', 'rejected' => 'Rejected'][$status] ?? ucfirst($status); $statusIcon = ['pending' => 'fa-clock', 'approved' => 'fa-check', 'rejected' => 'fa-xmark'][$status] ?? 'fa-circle-info'; @endphp @endforeach
No. Request ID Tanggal Pengajuan Requestor Departemen Training Estimasi Training Status Decision by
{{ $loop->iteration }} {{ $result->gen_id ?: '#' . $result->id }} @if ((string) $result->isactive === '0')
Tidak aktif
@endif
{{ \Carbon\Carbon::parse($result->created_at)->format('d/m/Y') }}
{{ \Carbon\Carbon::parse($result->created_at)->format('H:i') }} WIB
{{ $result->requestor_name ?: 'Nama tidak ditemukan' }}
NIK {{ $result->id_mst_user ?: '-' }}
{{ $result->department_name ?: '-' }}
{{ $result->name_trn ?: '-' }}
@if ($result->description)
{{ \Illuminate\Support\Str::limit($result->description, 70) }}
@endif
{{ $result->month_estimation ? \Carbon\Carbon::parse($result->month_estimation)->format('d/m/Y') : '-' }} {{ $statusLabel }} @if ($status === 'rejected' && $result->rejection_reason)
{{ \Illuminate\Support\Str::limit($result->rejection_reason, 45) }}
@endif
{{ $result->decision_by ?: '-' }}
@if ($result->approved_at)
{{ \Carbon\Carbon::parse($result->approved_at)->format('d/m/Y H:i') }}
@endif
@endsection @push('js') @endpush