{{ define "carpool_bookings_history" }} {{template "booking_filters" dict "tab" "carpoolHistory" "filters" .ViewState.hist_filters "geography_filters_enabled" .ViewState.geography_filters_enabled "geography_filters_list" .ViewState.geography_filters_list }} {{if eq (len .ViewState.bookings_history) 0}}
Aucun trajet dans le passé
{{else}} {{$inrange := false}}
1) this.currentPage--; }, goToPage(page) { this.currentPage = page; }, getStatusBadge(status) { if (status === 'WAITING_DRIVER_CONFIRMATION') return { class: 'p-1 text-xs bg-gray-300 rounded-xl', text: 'Attente confirmation' }; if (status === 'CONFIRMED') return { class: 'p-1 text-xs bg-co-green rounded-xl', text: 'Confirmé' }; if (status === 'VALIDATED') return { class: 'p-1 text-xs bg-co-green rounded-xl', text: 'Validé' }; if (status === 'CANCELLED') return { class: 'p-1 text-xs bg-co-red text-white rounded-xl', text: 'Annulé' }; return { class: '', text: '' }; } }">
Conducteur Passager Départ Destination Date Statut Prix  
{{end}} {{end}}