@extends('layouts.admin') @section('title', 'مدیریت ' . ($section == 'academy' ? 'آکادمی' : 'آرشیو')) @section('content')
@if($currentFolder)
@csrf
@endif
@if($folders->count() > 0)

پوشه‌ها

@foreach($folders as $folder)
📁
{{ $folder->folder_name }}
@csrf @method('DELETE')
@endforeach
@endif @if($files->count() > 0)

فایل‌ها

@foreach($files as $file) @endforeach
نوع نام فایل / کپشن قیمت عملیات
@if($file->type == 'photo') 🖼️ @elseif($file->type == 'video') 🎥 @else 📄 @endif
{{ $file->file_name }}
{{ Str::limit($file->caption, 50) }}
@if($file->is_premium) 💎 Premium @endif
@if($file->price > 0 || $file->stars > 0)
@if($file->price > 0)
💰 {{ number_format($file->price) }} تومان
@endif @if($file->stars > 0)
⭐ {{ $file->stars }} استار
@endif
@else رایگان @endif
@csrf @method('DELETE')
@elseif($currentFolder && $folders->count() == 0)
📂
این پوشه خالی است
@endif @endsection