@extends('layouts.app') @section('content')

Backup Details

{{ $backup->name }}
Back to Dashboard @if($backup->status === 'completed' && $backup->file_path) Download @endif
{{-- BACKUP SCOPE --}}
Backup Scope
@php $scope = json_decode($backup->scope, true) ?? []; $scopeLabels = [ 'extensions' => 'Extensions (PJSIP endpoints, auths, devices)', 'trunks' => 'SIP Trunks (trunks, inbound routes, meta)', 'teams' => 'Microsoft Teams (config, certificates)', 'queues' => 'Call Center Queues (queues, agents, members)', 'ivr' => 'IVR Menus (menus, options)', 'ring_groups' => 'Ring Groups', 'routing' => 'Routing (dialplan rules, outbound routes, time conditions)', 'voicemail' => 'Voicemail', 'cdr' => 'Call Detail Records', 'recordings' => 'Call Recordings', 'billing' => 'Billing Records', 'security' => 'Security (users, roles, firewall, access control)', 'certificates' => 'SSL Certificates', 'provisioning' => 'Device Provisioning (registry, templates)', ]; @endphp
@foreach($scopeLabels as $key => $label)
@if(in_array($key, $scope))
{{ $label }}
@else
{{ $label }}
@endif
@endforeach
{{-- BACKUP INFO --}}
Backup Information
{{ $backup->name }}
{{ ucfirst($backup->type) }}
@if($backup->status === 'completed') Completed @elseif($backup->status === 'running') Running @elseif($backup->status === 'failed') Failed @else {{ ucfirst($backup->status) }} @endif
{{ number_format($backup->size_bytes / 1024 / 1024, 2) }} MB
{{ \Carbon\Carbon::parse($backup->created_at)->format('M d, Y H:i:s') }}
{{ $backup->completed_at ? \Carbon\Carbon::parse($backup->completed_at)->format('M d, Y H:i:s') : '—' }}
@if($backup->started_at && $backup->completed_at) {{ \Carbon\Carbon::parse($backup->started_at)->diffForHumans(\Carbon\Carbon::parse($backup->completed_at), true) }} @else — @endif
{{ $backup->retention_until ? \Carbon\Carbon::parse($backup->retention_until)->format('M d, Y') : '—' }}
{{ $backup->checksum ?: '—' }}
@if($backup->verified) Verified @else Not Verified @endif
@if($backup->encrypted) {{ $backup->encryption_algorithm }} @else No @endif
@php $scope = json_decode($backup->scope, true) ?? []; @endphp @foreach($scope as $item) {{ ucfirst($item) }} @endforeach
@if($backup->error_message)
{{ $backup->error_message }}
@endif
{{-- AUDIT LOG --}}
Audit Log
@forelse($auditLogs as $log) @empty @endforelse
Action User IP Address Timestamp
{{ str_replace('_', ' ', ucfirst($log->action)) }} {{ $log->user_id ?? 'System' }} {{ $log->ip_address ?? '—' }} {{ \Carbon\Carbon::parse($log->created_at)->format('M d, H:i:s') }}
No audit logs found.
{{-- ACTIONS --}}
Actions
@if($backup->status === 'completed' && $backup->file_path)
Download Backup
@else
Backup is not available for download or restore.
@endif
@csrf @method('DELETE')
{{-- FILE INFO --}} @if($backup->file_path)
File Information
{{ $backup->file_path }}
{{ file_exists($backup->file_path) ? 'Yes' : 'No' }}
@endif
@endsection