@extends('portal.layout') @section('title', 'Document Vault') @section('content')
@include('portal.partials.report-sidebar', ['report' => $report])
Document Vault

Document Vault

Store and organize all property documents with AI-powered text extraction, tagging, and full-text search.

@if(session('success'))
{{ session('success') }}
@endif {{-- Upload Form --}}
Upload Document
@csrf
{{-- Search --}}
{{-- Document List --}} @if($documents->count())
@foreach($documents as $doc)
@php $ext = pathinfo($doc->title, PATHINFO_EXTENSION); $iconColor = match(strtolower($ext)) { 'pdf' => '#ef4444', 'doc','docx' => '#3b82f6', 'jpg','jpeg','png','tiff' => '#22c55e', default => '#64748b' }; @endphp
{{ $doc->title }}
{{ \App\Models\DocumentVault::DOCUMENT_TYPES[$doc->document_type] ?? $doc->document_type }} · {{ $doc->created_at->format('M j, Y') }} @if($doc->ai_tags && is_array($doc->ai_tags)) @foreach(array_slice($doc->ai_tags, 0, 3) as $tag) {{ $tag }} @endforeach @endif
Download
@endforeach
@else
No Documents Yet
Upload property documents to build your digital vault.
@endif
@endsection @section('scripts') @endsection