{{-- resources/views/candidates/trashed.blade.php --}} @extends('layouts.app') @section('title', 'Kandidat Terhapus - HR System') @section('page-title', 'Kandidat Terhapus') @push('styles') @endpush @section('content')
0 kandidat dipilih

Kandidat Terhapus

Total: {{ $candidates->total() }} kandidat
@forelse($candidates as $index => $candidate) @empty @endforelse
No Kode Kandidat Posisi Dihapus Pada File Size Aksi
{{ $candidates->firstItem() + $index }} {{ $candidate->candidate_code }}
{{ substr($candidate->full_name ?? 'N/A', 0, 2) }}
{{ $candidate->full_name ?? 'N/A' }}
{{ $candidate->email ?? 'N/A' }}
{{ $candidate->position_applied ?? 'N/A' }} @if($candidate->deleted_at)
{{ $candidate->deleted_at->format('d M Y') }}
{{ $candidate->deleted_at->format('H:i') }}
@else N/A @endif
@php // Hitung size semua dokumen kandidat (jika relasi diload) $totalFileSize = 0; if(isset($candidate->documentUploads)) { foreach($candidate->documentUploads as $doc) { if($doc->file_path && Storage::disk('public')->exists($doc->file_path)) { $totalFileSize += Storage::disk('public')->size($doc->file_path); } } } // Format bytes -> human readable $units = ['B', 'KB', 'MB', 'GB']; $fileSize = $totalFileSize; $unitIndex = 0; while ($fileSize >= 1024 && $unitIndex < count($units) - 1) { $fileSize /= 1024; $unitIndex++; } $formattedSize = $fileSize > 0 ? round($fileSize, 1) . ' ' . $units[$unitIndex] : '0 B'; $isLarge = $totalFileSize > 10485760; // > 10MB @endphp {{ $formattedSize }}

Tidak ada kandidat terhapus

@if(request('search')) Coba ubah kata kunci pencarian Anda @endif
@if($candidates->hasPages())
{{ $candidates->links() }}
@endif
@endsection @push('scripts') @endpush