@extends('layouts.admin') @section('title', $document->document_type_label . ' - ' . $employee->full_name) @section('breadcrumb') Karyawan {{ $employee->full_name }} Dokumen {{ $document->document_type_label }} @endsection @section('header')
@if(str_starts_with($document->mime_type, 'image/')) @else @endif

{{ $document->document_type_label }}

{{ $document->file_name }}

Kembali Download
@endsection @section('content')
{{-- Left Column - Document Details --}}
{{-- Document Preview --}} @if(str_starts_with($document->mime_type, 'image/'))

Preview Dokumen

{{ $document->document_type_label }}
@elseif($document->mime_type === 'application/pdf')

Preview PDF

@endif {{-- Document Information --}}

Informasi Dokumen

Tipe Dokumen
{{ $document->document_type_label }}
@if($document->document_name)
Nama Dokumen
{{ $document->document_name }}
@endif @if($document->document_number)
Nomor Dokumen
{{ $document->document_number }}
@endif
Nama File
{{ $document->file_name }}
Ukuran File
{{ $document->human_file_size }}
Tipe File
{{ $document->mime_type }}
@if($document->issue_date)
Tanggal Terbit
{{ $document->issue_date->format('d F Y') }}
@endif @if($document->expiry_date)
Tanggal Expired
{{ $document->expiry_date->format('d F Y') }} @if($document->is_expired) (Sudah expired) @elseif($document->is_expiring_soon) (Akan expired) @endif
@endif @if($document->notes)
Catatan
{{ $document->notes }}
@endif
{{-- Right Column --}}
{{-- Status --}}

Status

Verifikasi @if($document->is_verified) Terverifikasi @else Belum Verifikasi @endif
@if($document->expiry_date)
Status Expired @if($document->is_expired) Expired @elseif($document->is_expiring_soon) Akan Expired @else Aktif @endif
@endif
{{-- Verification Info --}} @if($document->is_verified && $document->verifiedBy)

Info Verifikasi

Diverifikasi oleh
{{ $document->verifiedBy->name }}
Tanggal Verifikasi
{{ $document->verified_at?->format('d F Y H:i') }}
@endif {{-- Upload Info --}}

Info Upload

@if($document->uploadedBy)
Diupload oleh
{{ $document->uploadedBy->name }}
@endif
Tanggal Upload
{{ $document->created_at->format('d F Y H:i') }}
{{-- Actions --}}

Aksi

Download Dokumen @if($document->is_verified)
@csrf
@else
@csrf
@endif
@endsection