@extends('agency.layouts.app') @section('title', 'Klasörler') @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]; }; $types = \App\Models\Disk\DiskFolder::TYPES; @endphp @section('content')
@include('agency.disk.partials.head', [ 'title' => 'Klasörler', 'icon' => 'fa-folder-tree', 'crumbs' => [['Disk', route('agency.disk.index')], ['Klasörler', null]], 'actions' => ' Yeni klasör', ])
@if(request('type'))@endif
@if($folders->count()) @foreach($folders as $folder) @php $color = $folder->color_code ?: '#64748b'; $indent = request('search') || request('type') ? 0 : $folder->level; @endphp @endforeach
Klasör Tür Dosya Boyut Erişim Oluşturma
@if($indent)@endif
{{ $folder->name }} @if($folder->is_system) Sistem@endif @if($folder->description)
{{ $folder->description }}
@endif
{{ $folder->type_label }} {{ $folder->item_count }} {{ $fmtBytes($folder->total_size_bytes) }} @if($folder->is_public) Açık @else Özel @endif {{ $folder->created_at?->format('d.m.Y') }}
@else
Klasör bulunamadı Aramayı değiştirin ya da yeni bir klasör oluşturun.
@endif
@endsection