{{define "content"}}
{{if ne .ViewState.passengerid ""}} {{end}}
{{if .ViewState.searched}}
Filtres:
{{$.IconSet.Icon "hero:outline/bookmark" "h-4 w-4 mr-2"}} Enregistrer pour plus tard
{{end}}
{{if .ViewState.searched}}
{{range $index, $journey := .ViewState.journeys}}
{{ timeFormat $journey.StartTime "15:04" }} {{ timeFormat $journey.EndTime "15:04" }}
{{ shortDuration $journey.Duration }}
{{$.IconSet.Icon "tabler-icons:bus" "h-3 w-3"}} Transport {{range $leg := $journey.Legs}} {{if or (eq $leg.Mode "BUS") (eq $leg.Mode "COACH")}} {{$leg.RouteShortName}} {{else if or (eq $leg.Mode "REGIONAL_FAST_RAIL") (eq $leg.Mode "REGIONAL_RAIL")}} {{$leg.RouteShortName}} {{end}} {{end}}
{{end}} {{if .ViewState.driver_journeys}}
Transport solidaire {{len .ViewState.driver_journeys}} conducteur{{if gt (len .ViewState.driver_journeys) 1}}s{{end}}
{{$.IconSet.Icon "tabler-icons:car" "h-3 w-3"}} Conducteurs disponibles
{{end}} {{if .ViewState.organized_carpools}}
Covoiturage solidaire {{len .ViewState.organized_carpools}} trajet{{if gt (len .ViewState.organized_carpools) 1}}s{{end}}
{{$.IconSet.Icon "tabler-icons:users" "h-3 w-3"}} Trajets disponibles
{{end}} {{range $carpoolIndex, $carpoolFC := .ViewState.carpools}} {{$carpoolData := index $carpoolFC.ExtraMembers "ocss"}}
{{$carpoolData.Driver.Alias}}
{{if or $carpoolData.PassengerPickupAddress $carpoolData.PassengerDropAddress}}
{{if $carpoolData.PassengerPickupAddress}}
{{$.IconSet.Icon "hero:outline/map-pin" "h-3 w-3 mt-0.5 flex-shrink-0"}} {{$carpoolData.PassengerPickupAddress}}
{{end}} {{if $carpoolData.PassengerDropAddress}}
{{$.IconSet.Icon "hero:outline/flag" "h-3 w-3 mt-0.5 flex-shrink-0"}} {{$carpoolData.PassengerDropAddress}}
{{end}}
{{end}}
{{$.IconSet.Icon "tabler-icons:car" "h-3 w-3"}} Covoiturage {{$carpoolData.Operator}} {{if $carpoolData.AvailableSteats}} {{$carpoolData.AvailableSteats}} place(s) {{end}}
{{end}} {{range $index, $solution := .ViewState.kb_data}}
{{if $solution.title}}{{$solution.title}}{{else if $solution.name}}{{$solution.name}}{{else}}Solution locale{{end}}
{{$.IconSet.Icon "hero:outline/map" "h-3 w-3"}} Solution locale
{{end}} {{if .ViewState.vehicles}}
Véhicules disponibles {{len .ViewState.vehicles}} véhicule{{if gt (len .ViewState.vehicles) 1}}s{{end}}
{{$.IconSet.Icon "tabler-icons:car" "h-3 w-3"}} Véhicules partagés
{{end}}
{{else}}

Effectuez une recherche pour voir les résultats

{{end}}
{{end}}