@extends('app-admin') @section('head') @include('admin.partial.head') @endsection @section('content')

Upload & Ekstraksi PDF

Kembali ke Daftar
@if (session('success')) @endif @if (session('error')) @endif @if (session('warning')) @endif
Form Upload PDF
Mode Extraction-Only

PDF akan diekstrak langsung ke database tanpa disimpan sebagai file untuk optimasi storage. Sistem akan menganalisis dan mengekstrak istilah hukum secara otomatis.

@csrf
Informasi Dokumen Hukum
@error('judul_perda')
{{ $message }}
@enderror
Masukkan judul lengkap peraturan daerah
@error('link_perda')
{{ $message }}
@enderror
URL lengkap ke dokumen resmi
Upload File PDF
@error('pdf')
{{ $message }}
@enderror
Maksimal 100MB. PDF akan diekstrak langsung ke database tanpa disimpan sebagai file.
Statistik Sistem
{{ $kamus->total() ?? 0 }}
Total Istilah
{{ \App\Models\Glosarium::whereNotNull('judul_perda')->distinct('judul_perda')->count() }}
PDF Diproses
@php $manualEntries = \App\Models\Glosarium::whereNull('judul_perda')->count(); $recentEntries = \App\Models\Glosarium::where('created_at', '>=', now()->subDays(7))->count(); @endphp
{{ $manualEntries }}
Input Manual
{{ $recentEntries }}
7 Hari Ini
Riwayat PDF Terbaru
@php $pdfHistory = \App\Models\Glosarium::whereNotNull('judul_perda') ->select('judul_perda', 'link_perda', 'created_at') ->distinct('judul_perda') ->orderBy('created_at', 'desc') ->limit(5) ->get(); @endphp @if($pdfHistory->count() > 0)
@foreach($pdfHistory as $pdf)
{{ Str::limit($pdf->judul_perda, 35) }}
{{ $pdf->created_at->format('d M Y, H:i') }}
@if($pdf->link_perda) @endif
@endforeach
@if(\App\Models\Glosarium::whereNotNull('judul_perda')->distinct('judul_perda')->count() > 5)
+ {{ \App\Models\Glosarium::whereNotNull('judul_perda')->distinct('judul_perda')->count() - 5 }} PDF lainnya
@endif @else

Belum ada PDF yang diproses

Upload PDF pertama Anda!
@endif
Tips Upload PDF
Format PDF Berkualitas
Gunakan PDF yang dapat dicari (searchable PDF)
Ukuran File
Maksimal 100MB untuk performa optimal
Ekstraksi Otomatis
Sistem akan menganalisis dan mengekstrak istilah secara otomatis
@push('styles') @endpush @push('scripts') @endpush @endsection