{{-- Upload Area --}}
{{-- Upload Form --}} @if($showUploadForm)
{{-- Photo Upload --}}
@if($photo) {{ $photo->getClientOriginalName() }} @endif
@error('photo') {{ $message }} @enderror
{{-- Caption --}}
@error('caption') {{ $message }} @enderror
{{-- Submit Button --}}
@endif {{-- Photo Grid --}} @if($photos->count() > 0)
@foreach($photos as $photo)
{{ $photo->caption }}
{{-- Caption --}} @if($photo->caption)

{{ $photo->caption }}

@endif {{-- Actions --}}
{{-- Set as Featured --}} @if($ride->featured_photo_id !== $photo->id) @endif {{-- Delete --}}
{{-- Featured Badge --}} @if($ride->featured_photo_id === $photo->id)
Featured
@endif
@endforeach
{{-- Pagination --}}
{{ $photos->links() }}
@else

No photos uploaded yet.

@endif