@extends('admin.layout') @section('title', 'Media library') @section('content')
@csrf

Allowed: {{ str_replace(',', ', ', config('anan.upload_mimes')) }} · max {{ (int) (config('anan.upload_max_kb') / 1024) }} MB each. {{ number_format($media->total()) }} files.

@foreach ($media as $m)
@if ($m->isImage())@else{{ strtoupper(pathinfo($m->path, PATHINFO_EXTENSION)) }}@endif
{{ \Illuminate\Support\Str::limit($m->title ?: basename($m->path), 28) }}
@csrf @method('PUT')
{{ $m->width ? $m->width.'×'.$m->height.' · ' : '' }}{{ number_format($m->size / 1024) }} KB
@csrf @method('DELETE') @if (session('force_delete') === $m->id)@endif
@endforeach
{{ $media->links() }} @endsection