@extends('layouts.meridian')
@section('title', 'Media Library')
@php
$typeLabels = [
'all' => 'Semua',
'image' => 'Gambar',
'pdf' => 'PDF',
'other' => 'Lainnya',
];
$formatBytes = function (?int $bytes): string {
if (!$bytes) {
return '0 KB';
}
if ($bytes >= 1048576) {
return round($bytes / 1048576, 1) . ' MB';
}
return max(1, round($bytes / 1024)) . ' KB';
};
$displayName = function (string $filename): string {
$name = pathinfo($filename, PATHINFO_FILENAME) ?: $filename;
$name = preg_replace('/[-_]+/', ' ', $name) ?: $name;
return \Illuminate\Support\Str::headline($name);
};
@endphp
@push('head')
@endpush
@section('content')
Unggah, preview, salin URL, dan hapus aset visual untuk konten website.Media Library
Upload file pertama untuk mulai mengelola aset website.