@extends('layouts.base') @section('content') @php $defaultPin = $point?->pin_icon ?: 'green_pin.png'; @endphp

{{ __('Back') }} {{ __('Edit waypoint') }} {{ $point->name }} #{{ $point->id }}

@csrf @method('PUT')
@foreach($availablePins as $fn) @endforeach
{{-- Créateur du point (user_id) --}}
{{-- Photo --}} @php use Illuminate\Support\Facades\Storage; $photos = $point->photos ?? collect(); $photoUrl = ($point && !empty($point->photo)) ? Storage::url($point->photo) : null; @endphp
@if($photos->isNotEmpty())
@foreach($photos as $photo) @php $url = Storage::disk('public')->url($photo->path); @endphp @endforeach
@else

{{ __('No photo') }}

@endif {{-- Input pour ajouter une nouvelle photo --}} {{-- {{ __('Add a new photo (existing ones are kept).') }} --}}
@endsection