55 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
| {{ 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">Transport 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'">
 | |
|                                 Conducteurs </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 = 'solidarityService'"
 | |
|                                 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>
 | |
|                             
 | |
|                             <a href="#" @click="tab = 'solidarityHistory'"
 | |
|                                 class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
 | |
|                                 :class="tab == 'solidarityHistory' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
 | |
|                                 Trajets passés </a>
 | |
|                         </nav>
 | |
|                     </div>
 | |
|                 </div>
 | |
|             </div>
 | |
| 
 | |
|             <div x-show="tab == 'drivers'">{{template "solidarity_drivers_list" .}}</div>
 | |
| 
 | |
| 
 | |
|             <div x-show="tab == 'beneficiaries'">1</div>
 | |
|             <div x-show="tab == 'solidarityService'">{{template "solidarity_bookings_list" .}}</div>
 | |
|             <div x-show="tab == 'solidarityHistory'">{{template "solidarity_bookings_history" .}}</div>
 | |
| 
 | |
|         </div>
 | |
|     </div>
 | |
| 
 | |
| 
 | |
| </div>
 | |
| 
 | |
| {{ end }}
 |