{{-- 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(); } $photos = $p->photos ?? collect(); @endphp {{-- @section('bottom') --}} @include('partials.bottom_nav', [ 'bottomTabs' => [ [ 'icon' => "map_picto.svg", 'label' => __('Map'), 'href' => lr('startmap'), // ouvre le tiroir "maps" ], [ 'icon' => "addV_picto.svg", 'label' => __('Create a waypoint'), 'href' => lr('map'), 'primary' => true, ], [ 'icon' => "myV_picto.svg", 'label' => __('My waypoints'), 'href' => lr('search'), 'primary' => false, ], ], ]) {{-- @endsection --}} {{-- Tiroir de tri --}}
{{-- Tiroir de filtre --}} @section('title','Mes waypoints') @section('content')