@extends('admin.layout') @section('title', 'Photos profil') @section('content')
Stories
@forelse($photos as $photo) @php $url = str_starts_with($photo->path ?? '', 'http') ? $photo->path : asset('storage/' . $photo->path); @endphp
{{ $photo->user?->name ?? 'Anonyme' }}
{{ $photo->created_at->format('d/m/Y') }}
@csrf @method('DELETE')
@empty
Aucune photo.
@endforelse
{{ $photos->withQueryString()->links('pagination.admin') }} @endsection