@extends('agency.layouts.app') @section('title', $item->title ?: $item->original_name) @section('page_title', 'Disk') @php $name = $item->title ?: $item->original_name; $url = Storage::url($item->file_path); $crumbs = [['Disk', route('agency.disk.index')]]; if ($item->folder) { foreach ($item->folder->getPathHierarchy() as $crumb) { $crumbs[] = [$crumb['name'], route('agency.disk.folders.show', $crumb['id'])]; } } $crumbs[] = [$name, null]; $isVideo = $item->isVideo(); $isAudio = $item->isAudio(); $isPdf = $item->extension === 'pdf'; $versions = collect([$item->parentVersion])->filter()->merge($item->versions)->unique('id')->sortByDesc('version_number'); $orientation = ['landscape' => 'Yatay', 'portrait' => 'Dikey', 'square' => 'Kare'][$item->orientation] ?? null; @endphp @section('content')
@include('agency.disk.partials.head', [ 'title' => e($name) . ($brandSlot ? ' ' . e(\App\Support\BrandAssets::spec($brandSlot)['label']) . ' olarak kullanılıyor' : ''), 'icon' => $item->file_icon, 'iconColor' => $item->file_color, 'crumbs' => $crumbs, 'actions' => ' İndir' . ' Düzenle', ])
@if($item->isImage()) {{ $item->alt_text ?: $name }} @elseif($isVideo) @elseif($isAudio) @elseif($isPdf) @else
{{ strtoupper($item->extension) }} Önizleme yok Dosyayı indirerek açabilirsiniz.
@endif
@if($item->description || $item->tags)
@if($item->description)

{{ $item->description }}

@endif @if($item->tags)
@foreach($item->tags as $tag) {{ $tag }}@endforeach
@endif
@endif
Dosya bilgileri
Dosya adı
{{ $item->original_name }}
Klasör
@if($item->folder){{ $item->folder->name }}@else — @endif
Tür
{{ strtoupper($item->extension) }} · {{ $item->mime_type }}
Boyut
{{ $item->formatted_file_size }}
@if($item->width)
Ölçü
{{ $item->width }} × {{ $item->height }} px @if($orientation)· {{ $orientation }}@endif
@endif @if($item->page_count)
Sayfa
{{ $item->page_count }}
@endif
Erişim
@if($item->is_public) Herkese açık@else Özel@endif @if($item->is_featured) Öne çıkan@endif
@if($item->alt_text)
Alt metin
{{ $item->alt_text }}
@endif @if($item->author)
Yazar / çeken
{{ $item->author }}
@endif @if($item->copyright)
Telif
{{ $item->copyright }}
@endif
Yükleyen
{{ $item->creator?->full_name ?? '—' }} · {{ $item->created_at->format('d.m.Y H:i') }}
İstatistik
{{ $item->view_count }} görüntülenme · {{ $item->download_count }} indirme
Sürümler v{{ $item->version_number }}
@csrf Aynı uzantıda ({{ strtoupper($item->extension) }}) olmalı; önceki sürümler saklanır.
@if($versions->count()) @endif
@csrf @method('DELETE')
@endsection @push('scripts') @endpush