{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Comptes Coaches{% endblock %}
{% block breadcump_main %}Coaches{% endblock %}
{% block breadcump_subtitle %}Liste des Coaches{% endblock %}
{% block menu_left_sidebar %}
{% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
{% endblock %}
{% block stylesheets %}
<link href="{{ asset('admin/libs/select2/css/select2.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('admin/css/tailwind.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('admin/css/tailwind2.css') }}" rel="stylesheet" type="text/css">
{% endblock %}
{% block title %}{{"Liste des coachs"|trans }}{% endblock %}
{% block content %}
<div class="container-fluid px-0">
<div class="card dark:bg-zink-700 ">
<div class="p-6">
<div class="grid grid-cols-12">
<div class="col-span-12">
<div class="md:flex justify-between space-y-2 md:space-y-0">
<div class="relative">
<i class="bx bx-search-alt text-16 text-zink-600 dark:text-zink-200 absolute top-3 left-4 right-4 transform w-1/12"></i>
<input class="border border-gray-400 focus:border focus:border-gray-400 focus:outline-none focus:ring-0 p-3 ps-5 pl-10 placeholder:text-[13px] placeholder:text-gray-600 py-2 rounded-full rtl:pr-10 text-gray-700 w-full" type="search" placeholder="Rechercher..." id="example-search-input">
</div>
<a href="{{ path('add_coach') }}"
class="mb-3 text-13 px-4 rounded-full text-white bg-orange-500 border-transparent btn hover:bg-green-600" style="background: #ffaa00;"><i class="bx bx-plusme-1"></i>Ajouter nouveau coach</a>
</div>
<div class="my-6 overflow-x-auto">
<table class="table w-full datatable dt-responsive nowrap whitespace-nowrap border-spacing-y-1.5 border-collapse text-gray-800 " id="cards-container">
<thead>
<tr class="bg-gray-50 dark:bg-zink-50 dark:text-zink-200 ">
<th class="p-3 font-semibold text-13 ltr:text-left rtl:text-right">#</th>
<th class="p-3 font-semibold text-13 ltr:text-left rtl:text-right">Coach</th>
<th class="p-3 font-semibold text-13 ltr:text-left rtl:text-right">Category</th>
<th class="p-3 font-semibold text-13 ltr:text-left rtl:text-right">Pays de résidence</th>
<th class="p-3 font-semibold text-13 ltr:text-left rtl:text-right" style="width: 120px;">Action</th>
</tr>
</thead>
<tbody>
{% for coach in coaches %}
<tr class="bg-white border-b border-gray-300 dark:bg-transparent dark:border-zink-50">
<td class="p-3">
<div class="w-24 h-16 bg-gray-50 dark:bg-zink-50 rounded p-1">
<img class="h-full w-full object-cover" src="{{ asset(''~coach.image) }}" alt="">
</div>
</td>
<th scope="row" class="p-3 text-13 ltr:text-left rtl:text-right font-normal whitespace-nowrap text-gray-600 dark:text-zink-200">
<p class="text-[14px] font-medium mb-1 text-gray-800 dark:text-white name">{{ coach.FirstName }} {{ coach.LastName }}</p>
<p></p>
</th>
<th scope="row" class="p-3 text-13 ltr:text-left rtl:text-right font-normal whitespace-nowrap text-gray-600 dark:text-zink-200">
<p>15 </p>
</th>
<td class="p-3 country">
<p>{{ coach.country }} </p>
</td>
<td class="p-3 ltr:text-left rtl:text-right">
<div class="relative dropdown">
<button class="p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 " type="button" data-bs-toggle="dropdown" id="dropdownMenuButton1">
<i class="bx bx-dots-horizontal font-medium text-15"></i>
</button>
<ul class="absolute right-0 left-auto top-auto z-20 hidden w-44 py-1.5 text-left list-none bg-white border border-transparent rounded shadow-lg dropdown-menu bg-clip-padding dark:bg-zink-700 dark:border-zink-50 dark:text-zink-200" aria-labelledby="dropdownMenuButton1">
<li><a class="bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap" href="{{ path('edit_coach', {'id':coach.id}) }}"><i class="bx bx-pencil text-16 text-green-500 me-2 "></i> Edit</a>
</li>
<li><a class="bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap" href="#"> <i class="bx bx-lock-alt text-16 text-gray-500 me-2"></i>Securite</a>
</li>
<li><a class="bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap" href="#"> <i class="bx bx-trash-alt text-16 text-red-500 me-2"></i>Remove</a>
</li>
</ul>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<!-- end table -->
</div>
<div class="col-span-12">
<div class="flex justify-between items-center">
<p class="text-13">Showing 1 to 7 of 7 entries</p>
<ul class="flex space-x-4 rtl:space-x-reverse items-center">
<li class="cursor-pointer"><i class="bx bx-chevron-left text-gray-700 text-16 dark:text-zink-200 rtl:rotate-180 block"></i></li>
<li class="cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8" style="background: #ffaa00; ">1</li>
<li class="cursor-pointer"><i class="bx bx-chevron-right text-gray-700 text-16 dark:text-zink-200 rtl:rotate-180 block"></i></li>
</ul>
</div>
</div>
</div>
<!-- end grid -->
</div>
</div>
</div>
<!-- container-fluid -->
<!-- End main -->
{% endblock %}
{% block javascripts %}
<script src="{{ asset('admin/js/app.js')}}"></script>
{% endblock %}