{{define "journeys_carpool"}} {{$first := true}} {{range .ViewState.carpools}} {{if $first}} {{$first = false}}
{{else}}
{{end}}
{{if .days.monday}}
Départ entre {{.outward.monday.mintime}} et {{.outward.monday.maxtime}}
{{else if .days.tuesday}}
Départ entre {{.outward.tuesday.mintime}} et {{.outward.tuesday.maxtime}}
{{else if .days.wednesday}}
Départ entre {{.outward.wednesday.mintime}} et {{.outward.wednesday.maxtime}}
{{else if .days.thursday}}
Départ entre {{.outward.thursday.mintime}} et {{.outward.thursday.maxtime}}
{{else if .days.friday}}
Départ entre {{.outward.friday.mintime}} et {{.outward.friday.maxtime}}
{{else if .days.saturday}}
Départ entre {{.outward.saturday.mintime}} et {{.outward.saturday.maxtime}}
{{else if .days.sunday}}
Départ entre {{.outward.sunday.mintime}} et {{.outward.sunday.maxtime}}
{{end}}
{{divideFloat64 .duration 60.0 | printf "%.0f"}} Minutes
{{.from.address}}, {{.from.city}} {{$.IconSet.Icon "hero:outline/chevron-right" "h-3 w-3 stroke-gray-800 m-2"}} {{.to.address}}, {{.to.city}}
Avec {{.driver.alias}} sur l'application RIDYGO
{{end}} {{end}}