Static Content

Content List
@forelse($contents as $item) @php $file = $item->image; $extension = $file ? strtolower(pathinfo($file, PATHINFO_EXTENSION)) : null; $imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp']; @endphp @empty @endforelse
Type Route Image Actions
{{ strtoupper($item->type ?? '') }} {{ $item->route }} @if ($file) @if (in_array($extension, $imageExtensions)) Image @else View Document @endif @else No File @endif Edit
@csrf @method('DELETE')
No static content found.