{{ define "content" }}

<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
  <h1 class="text-2xl font-semibold text-gray-900">Covoiturage solidaire</h1>

    <div class="bg-white shadow sm:rounded-lg sm:overflow-hidden my-4" x-data="{
        tab: 'drivers',
        to(event) {
            this.tab = event.target.value
        }
    }">
        <div class="divide-y divide-gray-200">
            <div>
                <div class="hidden sm:block">
                    <div class="border-b border-gray-200 pl-4">
                        <nav class="-mb-px flex space-x-8" aria-label="Tabs"> 
                            <a href="#" @click="tab = 'drivers'"
                                class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
                                :class="tab == 'drivers' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
                                Covoitureurs solidaires </a>
                            
                            <!--<a href="#" @click="tab = 'beneficiaries'"
                                class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
                                :class="tab == 'beneficiaries' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
                                Bénéficiaires </a>-->

                            <a href="#" @click="tab = 'trips'"
                                class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
                                :class="tab == 'solidarityService' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
                                Trajets </a>
                        </nav>
                    </div>
                </div>
            </div>

            <div x-show="tab == 'drivers'">{{template "carpool_drivers_list" .}}</div>


            <div x-show="tab == 'beneficiaries'">1</div>
            <div x-show="tab == 'trips'">{{template "carpool_bookings_list" .}}</div>

        </div>
    </div>


</div>

{{ end }}
