{{-- resources/views/points/search.blade.php --}} @extends('layouts.base') @php $token = $p->serial ?? null; $favoriteIds = []; if (auth()->check()) { // Récupère les IDs de points favoris de l'utilisateur connecté $favoriteIds = auth()->user() ->favoritePoints() ->pluck('points.id') // ou ->pluck('point_id') selon ta relation ->all(); } $photoUrl = !empty($user->photo) ? Storage::disk('public')->url($user->photo) : null; @endphp @include('partials.bottom_nav', [ 'bottomTabs' => [ [ 'icon' => "map_picto.svg", 'label' => __('Map'), 'href' => lr('map'), ], [ 'icon' => "addV_picto.svg", 'label' => __('Create a waypoint'), 'href' => lr('map'), 'primary' => true, ], [ 'icon' => "myV_picto.svg", 'label' => __('My waypoints'), 'href' => lr('search') ], ], ]) @section('title','Mes waypoints') @section('content')
@if($photoUrl) {{ $user->name }} @else {{ strtoupper(substr($user->firstname, 0, 1)) }} {{ strtoupper(substr($user->lastname, 0, 1)) }} @endif

{{ __('Hello') }} {{ $user->firstname }} {{ $user->lastname }} !

{{--

{{ $user->email }}

--}}
@if(!$user->email_verified_at) {{-- {{ __('Email verified') }} @else --}} {{-- {{ __('Email not verified') }} --}}
@csrf
@endif
{{-- CDN scripts only – load in this order --}} {{-- Leaflet CDN (after the HTML) --}} @endsection