@forelse(($points ?? []) as $point) @php $hasPassword = $point->sharings->whereNotNull('password_hash')->isNotEmpty(); @endphp @empty @endforelse
ID {{ __('Name') }} {{ __('Owner') }} {{ __('Address') }} {{ __('City') }} {{ __('QR') }} {{ __('Serial') }}
{{ $point->id }} @if($hasPassword) 🔒 {{-- POINT PROTÉGÉ PAR MOT DE PASSE --}} @endif {{ $point->name }} @if($point->user) {{ $point->user->name }}
{{ $point->user->email }}
@else Utilisateur supprimé @endif
{{ $point->address1 }}
{{ $point->address2 }}
{{ $point->postcode }} - {{ $point->city }}
{{ $point->country_isocode }}
@php $qrUrl = $point->qrcode ? Storage::disk('public')->url($point->qrcode) : null; // petit cache-busting pour voir la régénération sans F5 forcé if ($qrUrl) $qrUrl .= (str_contains($qrUrl,'?') ? '&' : '?') . 'v=' . time(); @endphp @if($point->qrcode && $qrUrl) QR Code
@csrf @method('PUT')
{{--
@csrf @method('PUT')
--}} @else {{--
@csrf @method('PUT')
--}} @endif
{{ $point->serial ?? '—' }}
{{ __('No waypoints found') }}
{{-- Pagination si fournie --}} @if(method_exists($points, 'links'))
{{ $points->links() }}
@endif