Gestione Documentale

Sistema avanzato di archiviazione con tagging, OCR e collegamento spese

📄 Documenti

{{ $stabile->documenti?->count() ?? 0 }}

Totali archiviati

💰 Con Spese

{{ $stabile->documenti?->whereNotNull('importo_collegato')?->count() ?? 0 }}

Collegati al budget

🔍 Con OCR

{{ $stabile->documenti?->whereNotNull('contenuto_ocr')?->count() ?? 0 }}

Ricercabili

📊 Dimensione

{{ number_format(($stabile->documenti?->sum('dimensione_file') ?? 0) / 1024 / 1024, 1) }}

MB utilizzati

@php $documenti = \App\Models\Documento::where('stabile_id', $stabile->id) ->where('is_demo', true) ->orderBy('created_at', 'desc') ->get(); @endphp @forelse($documenti as $documento)
>
@switch($documento->tipologia ?? $documento->tipo_documento ?? 'altro') @case('fattura')
@break @case('preventivo')
@break @case('contratto')
@break @case('verbale')
@break @default
@endswitch
{{ $documento->nome ?? $documento->titolo ?? 'Documento' }}
{{ ucfirst(str_replace('_', ' ', $documento->tipologia ?? 'altro')) }} {{ $documento->data_documento?->format('d/m/Y') ?? $documento->created_at?->format('d/m/Y') ?? 'N/D' }} {{ $documento->fornitore ?? $documento->mittente ?? 'N/D' }} @if($documento->importo_collegato) {{ number_format($documento->importo_collegato, 2) }}€ @endif
@if($documento->tags)
@foreach(explode(',', $documento->tags) as $tag) {{ trim($tag) }} @endforeach
@endif
@if($documento->contenuto_ocr) 🔍 OCR @endif @if($documento->importo_collegato) 💰 Spesa @endif @if($documento->urgente) 🚨 Urgente @endif
@empty
Nessun Documento Archiviato

Inizia caricando il primo documento per attivare la gestione documentale avanzata.

@endforelse