@extends('layouts.app') @section('title', 'Storage Management') @section('content')

Storage Management

Manajemen penyimpanan rekaman dan file media

Total Storage

{{ number_format($stats['total']['size_gb'] ?? 0, 2) }} GB

{{ number_format($stats['total']['size_bytes'] ?? 0) }} bytes

Total Files

{{ number_format($stats['total']['files'] ?? 0) }}

Files tersimpan

Total Size (MB)

{{ number_format($stats['total']['size_mb'] ?? 0, 2) }} MB

Total ukuran file

Storage by Directory

@php $directoryLabels = [ 'stream-recordings' => ['label' => 'Stream Recordings', 'icon' => 'video', 'color' => 'blue'], 'audio-recordings' => ['label' => 'Audio Recordings', 'icon' => 'headphones', 'color' => 'green'], 'audio-logs' => ['label' => 'Audio Logs', 'icon' => 'radio', 'color' => 'purple'], 'ptt-messages' => ['label' => 'PTT Messages', 'icon' => 'mic', 'color' => 'orange'], 'evidence' => ['label' => 'Evidence', 'icon' => 'file', 'color' => 'red'], ]; @endphp @if(isset($stats['directories']) && is_array($stats['directories'])) @foreach($stats['directories'] as $dir => $dirStats) @php $label = $directoryLabels[$dir]['label'] ?? ucfirst(str_replace('-', ' ', $dir)); $icon = $directoryLabels[$dir]['icon'] ?? 'folder'; $color = $directoryLabels[$dir]['color'] ?? 'gray'; @endphp
{{ $label }}
{{ number_format($dirStats['files'] ?? 0) }} files
{{ number_format($dirStats['size_mb'] ?? 0, 2) }} MB
@if(($stats['total']['size_bytes'] ?? 0) > 0) {{ number_format((($dirStats['size_bytes'] ?? 0) / $stats['total']['size_bytes']) * 100, 1) }}% @else 0% @endif
@endforeach @else

Tidak ada data storage

@endif

Storage Actions

Archive Old Recordings

Arsipkan rekaman yang lebih dari 90 hari

@csrf

Cleanup Old Files

Hapus file yang lebih dari 365 hari

@csrf
@push('scripts') @endpush @endsection