@php
$totalBytes = $stats['storage_bytes'];
if ($totalBytes >= 1073741824) {
$storageLabel = number_format($totalBytes / 1073741824, 2) . ' GB';
} elseif ($totalBytes >= 1048576) {
$storageLabel = number_format($totalBytes / 1048576, 1) . ' MB';
} else {
$storageLabel = number_format($totalBytes / 1024, 0) . ' KB';
}
$durationH = intdiv($stats['duration_total_seconds'], 3600);
$durationM = intdiv($stats['duration_total_seconds'] % 3600, 60);
@endphp
{{ $storageLabel }}
Storan Digunakan
{{ $durationH }}j {{ $durationM }}m jumlah audio