{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Liste des destinations{% endblock %}
{% block breadcump_main %}Pays{% endblock %}
{% block breadcump_subtitle %}Destinations{% 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 destinations"|trans }}{% endblock %}
{% block content %}
<div class="container-fluid px-0">
<div class="card dark:bg-zink-700 ">
<div class=" p-3 sm: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 par titre , category..." id="search-input">
</div>
<a href="{{ path('add_destination') }}"
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 pays</a>
</div>
<div class="my-6 overflow-x-auto">
<div id="cards-container" class="grid grid-cols-2 gap-6 mb-5 mx-1 ">
{% for destination in destinations %}
<div class="mb-0 border rounded-lg dark:bg-zink-700">
<div class="card-body">
<div class="grid items-start grid-cols-12">
<div class="mr-2 shrink-0 col-span-4 text-center">
<div>
<span class="flex mx-auto items-center justify-center overflow-hidden h-32 w-full font-medium text-blue-500 rounded-xl text-16 bg-blue-500/20 mt-1">
<img src="{{asset(''~destination.image)}}" class="w-full h-full object-cover" alt="">
</span>
</div>
</div>
<div class=" grow col-span-8 ">
<div class="title-sejour">
<h2 class="font-medium text-16 mt-2">{{ destination.name }}</h2>
<p>ID : #{{ destination.id }}</p>
</div>
</div>
<div class="col-span-12 flex justify-end mt-3 text-xs w-full">
<a href="{{ path('edit_destination',{'id':destination.id}) }}" class=" text-blue-500 font-medium dark:text-white cursor-pointer">Modifier</a>
<p class=" text-blue-500 mx-3 font-medium dark:text-white cursor-pointer">Expériences</p>
<p class="text-blue-500 font-medium dark:text-white cursor-pointer"> Appearances</p>
{# <p class="text-blue-500 font-medium dark:text-white cursor-pointer"> Experiences</p>#}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</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 items-center justify-between">
<li class="cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8"style=";border:1px solid #ffaa00; "><i style="color:#ffaa00" class="bx bx-chevron-left text-16 dark:text-zink-200 rtl:rotate-180 block"></i></li>
<li class="cursor-pointer mx-1 flex h-8 items-center justify-center rounded-full text-white w-8" style="background: #ffaa00; ">1</li>
<li class="cursor-pointer mx-1 flex h-8 items-center justify-center rounded-full text-orange-light w-8" style="border: 1px solid #ffaa00; ">2</li>
<li class="cursor-pointer mx-1 flex h-8 items-center justify-center rounded-full text-orange-light w-8" style="border: 1px solid #ffaa00; ">3</li>
<li class="cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8"style=";border:1px solid #ffaa00; "><i style="color:#ffaa00" class="bx bx-chevron-right 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 %}