@extends('agency.layouts.app')
@section('title', 'Disk')
@section('page_title', 'Disk')
@php
$fmtBytes = function ($bytes) {
$bytes = (float) $bytes;
$units = ['B', 'KB', 'MB', 'GB', 'TB'];
$i = 0;
while ($bytes >= 1024 && $i < count($units) - 1) { $bytes /= 1024; $i++; }
return ($i === 0 ? number_format($bytes, 0) : number_format($bytes, 1, ',', '.')) . ' ' . $units[$i];
};
@endphp
@section('content')
@include('agency.disk.partials.head', [
'title' => 'Disk',
'icon' => 'fa-hard-drive',
'actions' => '
Tüm dosyalar'
. '
Yeni klasör',
])
Klasör
{{ number_format($stats['total_folders'] ?? 0, 0, ',', '.') }}
Dosya
{{ number_format($stats['total_items'] ?? 0, 0, ',', '.') }}
Kullanılan alan
{{ $fmtBytes($stats['used_size'] ?? 0) }} / {{ $fmtBytes($stats['quota_size'] ?? 0) }}
Bu ay yüklenen
{{ number_format($stats['month_items'] ?? 0, 0, ',', '.') }}
{{-- Klasörler --}}
Klasörler {{ $folders->count() }}
{{-- Son yüklenenler --}}
@if($recentItems->count())
@else
Henüz dosya yokBir klasör açıp dosya yükleyin.
@endif
{{-- Kullanılan toplam alan (sayfanın altında) --}}
@include('agency.disk.partials.storage-usage', ['stats' => $stats])
@endsection