Gestionar Imagenes
@if ($parametro)
@can('archivos.create')
@endcan

Listado de archivos:

@foreach ($archivos as $archivo) @if (in_array($archivo->tipo, ['png', 'jpg', 'jpeg']))
@endif
{{ $archivo->nombre }} Subido por {{ $archivo->creador->name }} hace {{ $archivo->created_at->diffForHumans() }} @if (in_array($archivo->tipo, ['png', 'jpg', 'jpeg', 'gif', 'webp'])) @endif @if ($archivo->tipo === 'pdf') @endif @can('archivos.destroy') @endcan

@endforeach @if ($archivos->isEmpty())
@endif
@endif
@if ($imagenUrl) Imagen del parámetro @endif