{{-- resources/views/admin/itins/edit.blade.php --}} @extends('layouts.base') @section('title', __('Edit itinerary')) @section('content') @php $urlAdmins = url('/admin/itineraries/admins-for-society'); $urlPoints = url('/admin/itineraries/points-for-society'); @endphp

{{ __('Edit itinerary') }}

@if(session('ok'))
{{ session('ok') }}
@endif @if($errors->any())
@endif
@csrf @method('PUT')
{{-- Name --}}
{{ __('A unique itinerary name.') }}
{{-- Company --}}
{{-- Pro admin (dynamic) --}}
{{ __('Optional if you use multi-assignment via the checklist below.') }}
{{-- Assigned users checklist (members of company, id > 1) --}}
{{-- Rempli côté JS quand société change, et auto-chargé au chargement --}}
{{-- Waypoints --}}
{{ __('Pick a company, then a Pro admin to load waypoints of the company and those shared to that admin. Add and drag to reorder them.') }}
{{-- Available --}}

{{ __('Available') }}

{{ __('Select a company and a Pro admin.') }}
{{-- Selected --}}

{{ __('Selected (drag to reorder)') }}

{{-- Pré-rempli avec $selectedPoints --}} @forelse($selectedPoints as $p)
{{ $p['name'] ?? ('#'.$p['id']) }}
@empty
{{ __('No waypoint selected yet.') }}
@endforelse
@foreach($selectedPoints as $p) @endforeach
@push('scripts') @endpush @endsection