@extends('layouts.app') @section('mobile-title', 'Compliance') @section('mobile-subtitle', 'Document governance') @section('mobile-back', route('documents.index')) @section('mobile-action-url', route('documents.compliance.retention-rules.index')) @section('mobile-action-icon', 'rule') @section('mobile-action-label', 'Retention rules') @section('content') @php $statusBadge = function ($document) { if ($document->legal_hold_at) { return ['Legal Hold', 'bg-violet-50 text-violet-700']; } if ($document->isExpired()) { return ['Expired', 'bg-red-50 text-red-700']; } if ($document->expiresSoon()) { return ['Expiring', 'bg-amber-50 text-amber-700']; } return match ($document->status) { \App\Models\Document::STATUS_APPROVED => ['Approved', 'bg-emerald-50 text-emerald-700'], \App\Models\Document::STATUS_REJECTED => ['Rejected', 'bg-red-50 text-red-700'], default => ['Pending', 'bg-blue-50 text-blue-700'], }; }; @endphp
Overview of compliance status across company records, expiry controls, legal holds, and retention rules.
| Document / Project | Type | Status | Action |
|---|---|---|---|
|
{{ $document->title }}
{{ $document->project?->name ?? 'Company Records' }}
|
{{ $document->folder->categoryLabel() }} | {{ $badge[0] }} | Open |
| No urgent compliance actions right now. | |||
Set the archive window for each company document category.