@extends('layouts.app') @section('mobile-title', 'Retention Rules') @section('mobile-subtitle', 'Document compliance') @section('mobile-back', route('documents.compliance')) @section('content') @php $policyRows = collect($categories)->map(function ($label, $category) use ($rules) { $rule = $rules->get($category); return [ 'category' => $category, 'label' => $label, 'retain_months' => $rule?->retain_months ?? 84, 'action' => $rule?->action ?? \App\Models\DocumentRetentionRule::ACTION_ARCHIVE, 'enabled' => (bool) $rule?->is_enabled, 'updated_at' => $rule?->updated_at, ]; }); @endphp
Document Centre chevron_right Compliance chevron_right Retention Rules

Retention Rules & Settings

Define and manage document lifecycle policies by category to support compliance, legal holds, and storage control.

settings Global Settings

Automated Archiving

Enabled when at least one retention policy is active.

Hard Delete

Not enabled. Current lifecycle action archives records for recovery.

Legal Hold Notification

Legal-hold documents are excluded from retention automation.

gavel Legal Holds

View All

Retention Queue

{{ $retentionCandidates->count() }} document(s) currently match active retention rules.
@csrf
@csrf

policy Retention Policies

@foreach ($policyRows as $row) @endforeach
Document Category Retention Period Action at Expiry Status Last Updated
{{ $row['label'] }} archive {{ ucfirst($row['action']) }} {{ $row['updated_at'] ? $row['updated_at']->diffForHumans() : 'Not saved' }}
Showing {{ $activePolicyCount }} of {{ $policyRows->count() }} active policies
@endsection