{{-- resources/views/itins/index.blade.php --}} @extends('layouts.base') @section('title', __('Itineraries')) @section('content') @php /** @var \Illuminate\Support\Collection|\App\Models\Itinerary[] $itins */ /** @var \Illuminate\Support\Collection|\App\Models\Society[] $societyOptions ?? null */ $isAdminCtx = request()->routeIs('admin.*'); $isProCtx = request()->routeIs('pro.*'); // pour le filtre société côté super admin uniquement // $selectedSocietyId doit venir du contrôleur (nullable) $canFilterBySociety = $isAdminCtx && (auth()->user()?->isSuperAdmin() ?? false); @endphp
{{ __('Manage and follow company routes / visits.') }}
| {{ __('ID') }} | {{ __('Name') }} | {{ __('Company') }} | {{ __('Manager') }} | {{ __('Scheduled date') }} | {{ __('Waypoints') }} | {{ __('Assigned users') }} | |
|---|---|---|---|---|---|---|---|
| #{{ $itinerary->id }} | {{ $itinerary->name }} | {{ $socName }} | {{ $ownerName }} | {{ $scheduled }} | {{ $wpCount }} | {{-- Voir carte / progression --}} {{ __('Map') }} @if($editUrl) {{ __('Edit') }} @endif @if($delUrl) @endif | |
| {{ __('No itinerary yet.') }} | |||||||