@extends('agency.layouts.app') @section('title', 'Disk Yönetimi') @section('content')

Disk Yönetimi

Yeni Klasör Tüm Dosyalar
Toplam Klasör
{{ $stats['total_folders'] ?? 0 }}
Toplam Dosya
{{ $stats['total_items'] ?? 0 }}
Toplam Boyut
@php $totalBytes = $stats['total_size'] ?? 0; $units = ['B', 'KB', 'MB', 'GB', 'TB']; $i = 0; while ($totalBytes > 1024 && $i < count($units) - 1) { $totalBytes /= 1024; $i++; } @endphp {{ number_format($totalBytes, 1) }} {{ $units[$i] }}
Bu Ay Yüklenen
{{ $recentItems->where('created_at', '>=', now()->startOfMonth())->count() }}
@if(isset($stats['by_type']) && $stats['by_type']->count() > 0)
Dosya Tipi Dağılımı
@foreach($stats['by_type'] as $type => $stat) @php $icons = [ 'item' => ['icon' => 'fa-item', 'color' => 'success'], 'document' => ['icon' => 'fa-file-alt', 'color' => 'primary'], 'video' => ['icon' => 'fa-video', 'color' => 'danger'], 'audio' => ['icon' => 'fa-music', 'color' => 'purple'], 'archive' => ['icon' => 'fa-file-archive', 'color' => 'warning'], 'spreadsheet' => ['icon' => 'fa-file-excel', 'color' => 'success'], 'presentation' => ['icon' => 'fa-file-powerpoint', 'color' => 'orange'], 'other' => ['icon' => 'fa-file', 'color' => 'secondary'], ]; $config = $icons[$type] ?? $icons['other']; $size = $stat->size; $units = ['B', 'KB', 'MB', 'GB']; $i = 0; while ($size > 1024 && $i < count($units) - 1) { $size /= 1024; $i++; } @endphp
{{ ucfirst($type) }}

{{ $stat->count }} dosya
{{ number_format($size, 1) }} {{ $units[$i] }}

@endforeach
@endif
Klasörler
Tümünü Gör
@if($folders->count() > 0)
@foreach($folders as $folder)
@if($folder->icon) @else @endif
{{ $folder->name }}

{{ $folder->total_item_count ?? $folder->item_count }} dosya @if(($folder->total_size_bytes ?? $folder->total_size_bytes ?? 0) > 0) @php $bytes = $folder->total_size_bytes ?? 0; $units = ['B', 'KB', 'MB', 'GB']; $i = 0; while ($bytes > 1024 && $i < count($units) - 1) { $bytes /= 1024; $i++; } @endphp • {{ number_format($bytes, 1) }} {{ $units[$i] }} @endif

@if($folder->description)

{{ Str::limit($folder->description, 60) }}

@endif
@endforeach
@else
Henüz Klasör Oluşturulmamış

Dosyalarınızı organize etmek için klasörler oluşturun.

İlk Klasörü Oluştur
@endif
@endsection @push('scripts') @endpush