@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Total Pengajuan
Menunggu Verifikasi
Dalam Proses
Completed
Pekerjaan yang diselesaikan petugas dan memerlukan verifikasi Anda
| Aksi | No | ID Trans | Tanggal Pengajuan | Area | Deskripsi | Pelaksana | Dokumentasi |
|---|---|---|---|---|---|---|---|
|
|
{{ $loop->iteration }} | {{ $detail->id_trans ?: '-' }} | {{ $displayDate }} | {{ $detail->area_name ?? $detail->area ?? '-' }} | {{ Str::limit($detail->job_description ?? $detail->description ?? '-', 50) }} | {{ $getPelaksanaLabel($detail) }} |
@if($allDocs->count() > 0)
@php
// Helper function untuk generate URL file
$getFileUrl = function($filePath) {
$normalizedPath = trim((string) $filePath);
$normalizedPath = str_replace('\\', '/', $normalizedPath);
if ($normalizedPath === '') {
return '';
}
if (preg_match('/^https?:\/\//i', $normalizedPath)) {
return $normalizedPath;
}
$normalizedPath = preg_replace('#^/?public/#', '', $normalizedPath);
$normalizedPath = preg_replace('#^/?storage/#', '', $normalizedPath);
$normalizedPath = ltrim($normalizedPath, '/');
return asset('storage/' . $normalizedPath);
};
// Check if file is image
$isImage = function($filePath) {
$normalizedPath = str_replace('\\', '/', trim((string) $filePath));
$pathOnly = parse_url($normalizedPath, PHP_URL_PATH) ?? $normalizedPath;
$ext = strtolower(pathinfo($pathOnly, PATHINFO_EXTENSION));
return in_array($ext, ['jpg', 'jpeg', 'png', 'gif']);
};
$fileName = $detail->job_description ?? 'Dokumentasi';
@endphp
{{-- Simple Button untuk buka semua lampiran --}}
{{-- Modal untuk semua dokumentasi --}}
|
| Belum ada pekerjaan yang perlu diverifikasi. | |||||||
| Aksi | No | ID Trans | Tanggal Pengajuan | Area | Deskripsi | Pelaksana | Status | Catatan Head | Catatan HRD |
|---|---|---|---|---|---|---|---|---|---|
|
@if ($primary != '')
@if ($authorize->edit == '1')
@endif
@else
@endif
|
{{ $loop->iteration }} | {{ $detail->id_trans ?: '-' }} | {{ \Carbon\Carbon::parse($detail->created_at)->format('d-m-Y') ?? '-' }} | {{ $detail->area_name ?? $detail->area ?? $detail->area_id ?? '-' }} | {{ $detail->job_description ?? $detail->description ?? '-' }} | {{ $getPelaksanaLabel($detail) }} | {{ $status ?: 'pending' }} | {{ $detail->head_note ?? $detail->catatan_head ?? '-' }} | {{ $detail->hrd_note ?? $detail->catatan_hrd ?? '-' }} |
| Tidak ada pengajuan aktif | |||||||||
| Aksi | No | ID Trans | Tanggal Pengajuan | Area | Deskripsi | Pelaksana | Status | Catatan Head | Catatan HRD |
|---|---|---|---|---|---|---|---|---|---|
|
@if ($primary != '')
@if ($authorize->edit == '1')
@endif
@else
@endif
|
{{ $loop->iteration }} | {{ $detail->id_trans ?: '-' }} | {{ \Carbon\Carbon::parse($detail->created_at)->format('d-m-Y') ?? '-' }} | {{ $detail->area_name ?? $detail->area ?? $detail->area_id ?? '-' }} | {{ $detail->job_description ?? $detail->description ?? '-' }} | {{ $getPelaksanaLabel($detail) }} | {{ $status ?: '-' }} | {{ $detail->head_note ?? '-' }} | {{ $detail->hrd_note ?? '-' }} |