templates/croisiere/details.html.twig line 1

Open in your IDE?
  1. {# {% extends 'base.html.twig' %}
  2. {% block title %}Détails de la Croisière{% endblock %}
  3. {% block body %}
  4.     <h1>Détails de la Croisière : {{ croisiere.name }}</h1>
  5.     <h2>Informations sur la croisière</h2>
  6.     <p><strong>Nom :</strong> {{ croisiere.name }}</p>
  7.     <h2>Sous-Croisières</h2>
  8.     <form method="post" action="{{ path('details', {'croisiereId': croisiere.id}) }}">
  9.         <!-- Sélection du nom de la croisière -->
  10. <select id="croisiereNom" name="croisiere_nom" style="margin-bottom: 10px; color: #9a9a9a; height: 42px; border-radius: 5px; width: 100%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  11.     <option value="" {% if not croisiereNom %}selected{% endif %}><span>Sélectionner une croisière</span></option>
  12.     {% for croisiere in croisieres %}
  13.     <option value="{{ croisiere.name }}" {% if croisiereNom == croisiere.name %}selected{% endif %}>
  14.         {{ croisiere.name }}
  15.     </option>
  16.     {% endfor %}
  17. </select>
  18. <!-- Sélection du titre du navire -->
  19. <select id="navireTitre" name="navire_titre" style="color: #9a9a9a; height: 42px; border-radius: 5px; width: 100%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  20.     <option value="" {% if not navireTitre %}selected{% endif %}><span>Sélectionner un navire</span></option>
  21.     {% for navire in navires %}
  22.     <option value="{{ navire.titre }}" {% if navireTitre == navire.titre %}selected{% endif %}>
  23.         {{ navire.titre }}
  24.     </option>
  25.     {% endfor %}
  26. </select>
  27. <!-- Sélection du nom de la sous-croisière -->
  28. <select id="sousCroisiereName" name="name" style="margin-left: 10px; color: #9a9a9a; height: 42px; border-radius: 5px; width: 100%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  29.     <option value="" {% if not name %}selected{% endif %}><span>Sélectionner une sous-croisière</span></option>
  30.     {% for sousCroisiere in sousCroisieres %}
  31.     <option value="{{ sousCroisiere.name }}" {% if name == sousCroisiere.name %}selected{% endif %}>
  32.         {{ sousCroisiere.name }}
  33.     </option>
  34.     {% endfor %}
  35. </select>
  36.         <button type="submit">Rechercher</button>
  37.     </form>
  38.     {% if sousCroisieres is not empty %}
  39.         <ul>
  40.             {% for sousCroisiere in sousCroisieres %}
  41.                 <li>
  42.                     <p><strong>Navire :</strong> {{ sousCroisiere.croisiere.name }}</p>
  43.                     <h3>{{ sousCroisiere.name }}</h3>
  44.                     <p><strong>Navire :</strong> {{ sousCroisiere.navire.titre }}</p>
  45.                     <p><strong>Durée :</strong> {{ sousCroisiere.duree }} jours</p>
  46.                 </li>
  47.             {% endfor %}
  48.         </ul>
  49.     {% else %}
  50.         <p>Aucune sous-croisière trouvée.</p>
  51.     {% endif %}
  52. {% endblock %} #}
  53. {% extends 'base.html.twig' %}
  54. {% block stylesheets %}
  55. {#    Ajoutez les liens vers les fichiers CSS de noUiSlider#}
  56.     <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet">
  57.     <link rel="stylesheet" href="{{ asset('slider/css/owl.carousel.min.css') }}">
  58.     <link rel="stylesheet" href="{{ asset('slider/css/owl.theme.default.min.css') }}">
  59.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/4.5.6/css/ionicons.min.css">
  60.     <link rel="stylesheet" href="{{ asset('slider/css/style.css') }}">
  61.     <link href="{{ asset('formcroisiere/css/main.css') }}" rel="stylesheet" />
  62.     <style>
  63.         .mt-100{
  64.             margin-top:100px;
  65.         }
  66.         .carousel .carousel-indicators li{
  67.             display:inline-block;
  68.             width:10px;
  69.             height:10px;
  70.             text-indent: -99px;
  71.             cursor:pointer;
  72.             border:1px solid #000;
  73.             background:#000;
  74.             border-radius:2px;
  75.         }
  76.         .sidebar_list {
  77.             margin-top: 10px;
  78.         }
  79.         .sidebar_archives {
  80.             margin-top: 40px;
  81.             margin-left: 70px;
  82.             margin-right: 40px;
  83.         }
  84.         .badge{
  85.             font-size: 84%;
  86.             height: 26px;
  87.             line-height: normal;
  88.             font-weight: 600;
  89.             background-color: #b29b63;
  90.         }
  91.         @media screen and (max-width: 768px) {
  92.             .offers_item{
  93.                 width: 130% !important;
  94.             }
  95.         }
  96.         .offers_item{
  97.             position: relative;
  98.             width: 205%;
  99.             margin-left: -50px;
  100.             overflow: hidden;
  101.             box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  102.             transition: all 300ms;
  103.             margin-top: 50px;
  104.             border-radius: 20px;
  105.             color: rgba(0, 0, 0, 0.87);
  106.             background: #fff;
  107.         }
  108.         .offer_item{
  109.             position: relative;
  110.             width: 205%;
  111.             overflow: hidden;
  112.             transition: all 300ms;
  113.             margin-top: 50px;
  114.             border-radius: 5px;
  115.             color: rgba(0, 0, 0, 0.87);
  116.             background:#1269a2
  117.         }
  118.         .offers_price {
  119.             display: inline-block;
  120.             font-size: 36px;
  121.             font-weight: 700;
  122.             color: #ff9100;
  123.             line-height: 25px;
  124.         }
  125.         .offers_price a{
  126.             display: inline-block;
  127.             font-size: 22px;
  128.             font-weight: 700;
  129.             color: #0093a9;
  130.             line-height: 25px;
  131.         }
  132.         .offer_name{
  133.             display: block;
  134.             font-size: 22px;
  135.             font-weight: 700;
  136.             background: #0093a9;
  137.             color: #FFFFFF;
  138.             width: 360px;
  139.             line-height: 35px;
  140.             padding-left: 12px;
  141.         }
  142.         .noUi-horizontal .noUi-tooltip{
  143.             bottom: -41px;
  144.         }
  145.         .offers_item:hover {
  146.             transform: translateY(-2px);
  147.             box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  148.         }
  149.         .offers_image_background {
  150.             position: relative;
  151.             margin: auto;
  152.             overflow: hidden;
  153.         }
  154.         .offers_image_background img {
  155.             max-width: 100%;
  156.             transition: all 0.3s;
  157.             display: block;
  158.             transform: scale(1);
  159.         }
  160.         .offers_image_background:hover img {
  161.             transform: scale(1.1);
  162.         }
  163.         .container {
  164.             max-width: 1440px!important;
  165.         }
  166.         .offers_content {
  167.             margin-top: 65px;
  168.             margin-left: 17px;
  169.             margin-bottom: 22px;
  170.             margin-right: 17px;
  171.         }
  172.         .offers_link {
  173.             margin-top: 24px;
  174.         }
  175.         .offers_link a {
  176.             font-size: 14px;
  177.             font-weight: 700;
  178.             color: #2d2c2c;
  179.             text-transform: uppercase;
  180.             -webkit-transition: all 200ms ease;
  181.             -moz-transition: all 200ms ease;
  182.             -ms-transition: all 200ms ease;
  183.             -o-transition: all 200ms ease;
  184.             transition: all 200ms ease;
  185.         }
  186.         .badge{
  187.             font-size: 78%;
  188.             font-weight: 600;
  189.             background-color: #b29b63;
  190.         }
  191.         .badges
  192.         {
  193.             border: 1px solid white;
  194.             background: white;
  195.             color: #ff9600;
  196.             width: 100%;
  197.             height: 50px;
  198.         }
  199.         .work-wrap .img
  200.         {
  201.             height: auto;
  202.             width: auto;
  203.         }
  204.         @media (min-width: 992px) {
  205.             .owl-carousel .owl-dots {
  206.                 position: absolute;
  207.                 top: 0;
  208.                 right: 50px!important;
  209.                 margin-top: 0;
  210.                 margin-right: -40px; }
  211.             .owl-carousel .owl-dots .owl-dot {
  212.                 display: block; }
  213.         }
  214.         @media screen and (max-width: 768px)
  215.         {
  216.             .offer_item {
  217.                 margin-left: 30px !important;
  218.                 width: 85% !important;
  219.             }
  220.             
  221.             .critere{
  222.                     margin-left: 0px!important;
  223.                     margin-bottom: 10px!important;
  224.                     color: #9a9a9a!important;
  225.                     height: 42px!important;
  226.                     border-radius: 5px!important;
  227.                     width: 90%!important;
  228.                     box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1)!important;
  229.             }
  230.             .btn-4{
  231.                 margin-left: -11px!important;
  232.                 width: 39%!important;
  233.             }
  234.             
  235.         
  236.             .btn-3
  237.             {
  238.                 background: #ff9600;
  239.                 width: 200px;
  240.                 height: 50px;
  241.                 line-height: 52px;
  242.                 margin-left: 65px!important;
  243.                 padding: 0;
  244.                 border: none;
  245.                 border-radius: 5px;
  246.             }
  247.             .btn-3 span {
  248.                 position: relative;
  249.                 display: block;
  250.                 width: 100%;
  251.                 height: 100%;
  252.                 background:#ff9600;
  253.             }
  254.             .offers_price1
  255.             {
  256.                 margin-top:-50px!important;
  257.                 margin-left:63px!important;
  258.             }
  259.         }
  260.         .owl-carousel .owl-dots
  261.         {
  262.             text-align: justify;
  263.             margin-top: 0px;
  264.         }
  265.         .owl-carousel .owl-nav {
  266.             position: absolute;
  267.             bottom: 0;
  268.             left: 0;
  269.             right: 0;
  270.             display: none;
  271.         }
  272.         .ftco-section
  273.         {
  274.             padding: 5em 0;
  275.             margin-top: -35px;
  276.         }
  277.         button {
  278.             margin: 20px;
  279.         }
  280.         .custom-btn {
  281.             width: 130px;
  282.             height: 40px;
  283.             color: #fff;
  284.             border-radius: 5px;
  285.             padding: 10px 25px;
  286.             font-family: 'Lato', sans-serif;
  287.             font-weight: 500;
  288.             background: transparent;
  289.             cursor: pointer;
  290.             transition: all 0.3s ease;
  291.             position: relative;
  292.             display: inline-block;
  293.             box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
  294.             7px 7px 20px 0px rgba(0,0,0,.1),
  295.             4px 4px 5px 0px rgba(0,0,0,.1);
  296.             outline: none;
  297.         }
  298.         /* 3 */
  299.         .btn-4 {
  300.             background: #0093a9;
  301.             width: 41%;
  302.             height: 42px;
  303.             margin-top: 0px;
  304.             line-height: 44px;
  305.             margin-left: 0px;
  306.             padding: 0;
  307.             border: none;
  308.             border-radius: 5px;
  309.         }
  310.         .btn-4 span {
  311.             position: relative;
  312.             display: block;
  313.             width: 100%;
  314.             height: 100%;
  315.         }
  316.         .btn-4:before,
  317.         .btn-4:after {
  318.             position: absolute;
  319.             content: "";
  320.             right: 0;
  321.             top: 0;
  322.             background: #ff9600;
  323.             border-radius: 5px;
  324.             transition: all 0.3s ease;
  325.         }
  326.         .btn-4:before {
  327.             height: 0%;
  328.             width: 2px;
  329.         }
  330.         .btn-4:after {
  331.             width: 0%;
  332.             height: 2px;
  333.         }
  334.         .btn-4 span:before,
  335.         .btn-4 span:after {
  336.             position: absolute;
  337.             content: "";
  338.             left: 0;
  339.             bottom: 0;
  340.             background: #ff9600;
  341.             border-radius: 5px;
  342.             transition: all 0.3s ease;
  343.         }
  344.         .btn-4 span:before {
  345.             width: 2px;
  346.             height: 0%;
  347.         }
  348.         .btn-4 span:after {
  349.             width: 0%;
  350.             height: 2px;
  351.         }
  352.         .form-search{
  353.             width: 100%;
  354.             margin-left: 20px;
  355.             margin-top: 16px;
  356.         }
  357.         .btn-3 {
  358.             background: #ff9600;
  359.             width: 200px;
  360.             height: 50px;
  361.             line-height: 52px;
  362.             margin-left: 0px;
  363.             padding: 0;
  364.             border: none;
  365.             border-radius: 5px;
  366.         }
  367.         .btn-3 span {
  368.             position: relative;
  369.             display: block;
  370.             width: 100%;
  371.             height: 100%;
  372.         }
  373.         .btn-3:before,
  374.         .btn-3:after {
  375.             position: absolute;
  376.             content: "";
  377.             right: 0;
  378.             top: 0;
  379.             background: #ff9600;
  380.             border-radius: 5px;
  381.             transition: all 0.3s ease;
  382.         }
  383.         .btn-3:before {
  384.             height: 0%;
  385.             width: 2px;
  386.         }
  387.         .btn-3:after {
  388.             width: 0%;
  389.             height: 2px;
  390.         }
  391.         .btn-3 span:before,
  392.         .btn-3 span:after {
  393.             position: absolute;
  394.             content: "";
  395.             left: 0;
  396.             bottom: 0;
  397.             background: #ff9600;
  398.             border-radius: 5px;
  399.             transition: all 0.3s ease;
  400.         }
  401.         .btn-3 span:before {
  402.             width: 2px;
  403.             height: 0%;
  404.         }
  405.         .btn-3 span:after {
  406.             width: 0%;
  407.             height: 2px;
  408.         }
  409.         .btn-5 {
  410.             background: #0093a9;
  411.             width: 41%;
  412.             height: 42px;
  413.             margin-top: 0px;
  414.             line-height: 44px;
  415.             margin-left: 0px;
  416.             padding: 0;
  417.             border: none;
  418.             border-radius: 5px;
  419.         }
  420.         .btn-5 span {
  421.             position: relative;
  422.             display: block;
  423.             width: 100%;
  424.             height: 100%;
  425.         }
  426.         .btn-5:before,
  427.         .btn-5:after {
  428.             position: absolute;
  429.             content: "";
  430.             right: 0;
  431.             top: 0;
  432.             background: #ff9600;
  433.             border-radius: 5px;
  434.             transition: all 0.3s ease;
  435.         }
  436.         .btn-5:before {
  437.             height: 0%;
  438.             width: 2px;
  439.         }
  440.         .btn-5:after {
  441.             width: 0%;
  442.             height: 2px;
  443.         }
  444.         .btn-5 span:before,
  445.         .btn-5 span:after {
  446.             position: absolute;
  447.             content: "";
  448.             left: 0;
  449.             bottom: 0;
  450.             background: #ff9600;
  451.             border-radius: 5px;
  452.             transition: all 0.3s ease;
  453.         }
  454.         .btn-5 span:before {
  455.             width: 2px;
  456.             height: 0%;
  457.         }
  458.         .btn-5 span:after {
  459.             width: 0%;
  460.             height: 2px;
  461.         }
  462.     </style>
  463. {% endblock %}
  464. {% block body %}
  465.     <div class="home" style="height: 150px;background: #fafafa"></div>
  466.     <div class="row" style="background: #fafafa">
  467.         <div class="offer_item" style="margin-left: 125px;width: 78.8%">
  468.             <form method="post" action="{{ path('details', {'croisiereId': croisiere.id}) }}" class="form-search">
  469.                 <div class="row">
  470.                     <div class="col-md-4">
  471.                         <!-- Sélection du nom de la croisière -->
  472.                         <select class="critere" id="croisiereNom" name="croisiere_nom" style="margin-bottom: 10px; color: #9a9a9a; height: 42px; border-radius: 5px; width: 90%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  473.                             <option value="" {% if not croisiereNom %}selected{% endif %}><span>Destinations</span></option>
  474.                             {% for croisiere in croisieres %}
  475.                                 <option value="{{ croisiere.name }}" {% if croisiereNom == croisiere.name %}selected{% endif %}>
  476.                                     {{ croisiere.name }}
  477.                                 </option>
  478.                             {% endfor %}
  479.                         </select>
  480.                     </div>
  481.                     <div class="col-md-4">
  482.                         <select class="critere" name="monthYear" id="monthYear" style="margin-left: 10px; color: #9a9a9a; height: 42px; border-radius: 5px; width: 90%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  483.                             <option placeholder="" value="" {% if not dated %}selected{% endif %}>Dates de départ</option>
  484.                             {% set months = ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'] %}
  485.                             Déterminer le mois et l'année actuels
  486.                             {% set now = "now"|date("Y-m-d") %}
  487.                             {% set currentMonth = now|date("n") %}
  488.                             {% set currentYear = now|date("Y") %}
  489.                             Spécifiez la plage d'années à afficher
  490.                             {% set startYear = currentYear %}
  491.                             {% set endYear = 2026 %}
  492.                             Afficher les mois et années à partir du mois et année actuels
  493.                             {% for year in startYear..endYear %}
  494.                                 {% set startMonth = (year == currentYear) ? currentMonth : 1 %}
  495.                                 {% for i in startMonth..12 %}
  496.                                     <option value="{{ i ~ '-' ~ year }}"
  497.                                             {% if monthYear == (i ~ '-' ~ year) %}
  498.                                     selected
  499.                                             {% endif %}>
  500.                                         {{ months[i-1] }} {{ year }}
  501.                                     </option>
  502.                                 {% endfor %}
  503.                             {% endfor %}
  504.                         </select>
  505.                     </div>
  506.                     <div class="col-md-4">
  507.                         <select class="critere" id="sousCroisiereDestination" name="destination" style="margin-left: 10px; color: #9a9a9a; height: 42px; border-radius: 5px; width: 90%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  508.                             <option placeholder="" value="" {% if not destination %}selected{% endif %}><span>Ports de départ</span></option>
  509.                             {% for sousCroisiere in sousCroisieres %}
  510.                                 <option value="{{ sousCroisiere.destination }}" {% if name == sousCroisiere.destination %}selected{% endif %}>
  511.                                     {{ sousCroisiere.destination|split(',')[0] }}
  512.                                 </option>
  513.                             {% endfor %}
  514.                         </select>
  515.                     </div>
  516.                 </div>
  517.                 <div class="row">
  518.                     <div class="col-md-4">
  519.                         <!-- Sélection du titre du navire -->
  520.                         <select class="critere" id="navireTitre" name="navire_titre" style="color: #9a9a9a; height: 42px; border-radius: 5px; width: 90%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),7px 7px 20px 0px rgba(0,0,0,.1),4px 4px 5px 0px rgba(0,0,0,.1);">
  521.                             <option value="" {% if not navireTitre %}selected{% endif %}><span>Navires</span></option>
  522.                             {% for navire in navires %}
  523.                                 <option value="{{ navire.titre }}" {% if navireTitre == navire.titre %}selected{% endif %}>
  524.                                     {{ navire.titre }}
  525.                                 </option>
  526.                             {% endfor %}
  527.                         </select>
  528.                     </div>
  529.                     <div class="col-md-4">
  530.                         <select class="critere" id="sousCroisiereDuree" name="duree" style="margin-left: 10px; color: #9a9a9a; height: 42px; border-radius: 5px; width: 90%; box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), 7px 7px 20px 0px rgba(0,0,0,.1), 4px 4px 5px 0px rgba(0,0,0,.1);">
  531.                             <option placeholder="" value="" {% if not duree %}selected{% endif %}>Durée</option>
  532.                             <!-- Option: 1 à 5 jours -->
  533.                             {% if groupedDurations['1-5'] is not empty %}
  534.                                 <option value="1-5" {% if duree == '1-5' %}selected{% endif %}>De 1 à 5 jours</option>
  535.                             {% endif %}
  536.                             <!-- Option: 6 à 9 jours -->
  537.                             {% if groupedDurations['6-9'] is not empty %}
  538.                                 <option value="6-9" {% if duree == '6-9' %}selected{% endif %}>De 6 à 9 jours</option>
  539.                             {% endif %}
  540.                             <!-- Option: Plus de 9 jours -->
  541.                             {% if groupedDurations['9+'] is not empty %}
  542.                                 <option value="9+" {% if duree == '9+' %}selected{% endif %}>Plus de 9 jours</option>
  543.                             {% endif %}
  544.                         </select>
  545.                     </div>
  546.                     <div class="col-md-4">
  547.                         <div class="row" style="margin-left: 10px">
  548.                             <button type="submit" class="custom-btn btn-4">Rechercher</button>
  549.                             <button type="reset" class="custom-btn btn-5" style="margin-left: 7px;">Réinitialiser les filtres</button>
  550.                         </div>
  551.                     </div>
  552.                 </div>
  553.             </form>
  554.         </div>
  555.     </div>
  556.     <div class="blog" style="background:#fafafa">
  557.         <div class="container">
  558.             <div class="col-lg-12">
  559.                 <div class="cards-1 section-gray">
  560.                     <div class="blog_post_container">
  561.                         {% if sousCroisieres is not empty %}
  562.                             <div class="container">
  563.                                 <div class="row">
  564.                                     <div class="col-lg-12">
  565.                                         <!-- Offers Grid -->
  566.                                         <div class="offers_grid" style="width: 108%">
  567.                                             {% for h in sousCroisieres %}
  568.                                                 {% if h.etat == 1 %}
  569.                                                     <div class="col-lg-6 offers_col">
  570.                                                         <div class="offers_item">
  571.                                                             <div class="row">
  572.                                                                 <div class="col-lg-4">
  573.                                                                     <div class="offers_image_container">
  574.                                                                         <div class="offers_image_background" >
  575.                                                                             <section class="ftco-section">
  576.                                                                                 <div class="container">
  577.                                                                                     <div class="row">
  578.                                                                                         <div class="col-md-12">
  579.                                                                                             <div class="featured-carousel owl-carousel">
  580.                                                                                                 {% for img in h.imagessouscroisieres %}
  581.                                                                                                     <div class="item">
  582.                                                                                                         <div class="work-wrap">
  583.                                                                                                             <div class="img order-md-last">
  584.                                                                                                                 <img src="{{ asset('./rusticav/public/uploads/souscroisieres/' ~ img.name) }}" alt=""/>
  585.                                                                                                             </div>
  586.                                                                                                         </div>
  587.                                                                                                     </div>
  588.                                                                                                 {% endfor %}
  589.                                                                                             </div>
  590.                                                                                         </div>
  591.                                                                                     </div>
  592.                                                                                 </div>
  593.                                                                             </section>
  594.                                                                         </div>
  595.                                                                     </div>
  596.                                                                 </div>
  597.                                                                 <div class="col-lg-6">
  598.                                                                     <div class="offers_content" style="font-size: 17px">
  599.                                                                         <div class="offers_price" style="color:#0093a9;font-size: 28px">{{ h.name }}</div><br>
  600.                                                                         <i class="fa fa-anchor" aria-hidden="true" style="color: #635959"></i>
  601.                                                                         <div class="offers_price" style="color:#635959;font-size: 16px;font-weight: 500">{{ h.destination }}</div><br>
  602.                                                                         <i class="fa fa-clock-o" aria-hidden="true" style="color: #635959"></i>
  603.                                                                         <div class="offers_price" style="color:#635959;font-size: 15px;font-weight: 500;">
  604.                                                                             {{h.duree}} jours / {{h.duree-1}} Nuits
  605.                                                                         </div><br>
  606.                                                                         <i class="fa fa-ship" aria-hidden="true"></i>
  607.                                                                         <div class="offers_price" style="margin-top: 4px;color: #635959;font-weight: 500;font-size: 16px">{{ h.navire.titre }}</div>
  608.                                                                         <div class="offers_icons">
  609.                                                                             <ul class="offers_icons_list">
  610.                                                                                 <li class="offers_icons_item">
  611.                                                                                     {% for ha in h.avantages %}
  612.                                                                                         <span class="badge badge-danger">
  613.                                                                                         {% for img in ha.imagesavantages %}
  614.                                                                                             <img src="{{ asset('./rusticav/public/uploads/avantages/' ~ img.name) }}" alt="" style="width:25px;height:25px;margin-top:-8px;"/>
  615.                                                                                         {% endfor %}
  616.                                                                                         <span>{{ ha.name }}</span>
  617.                                                                                     </span>
  618.                                                                                     {% endfor %}
  619.                                                                                 </li>
  620.                                                                             </ul>
  621.                                                                         </div>
  622.                                                                         <p style="font-weight: 700;font-size:16px;color:#1269a2;margin-bottom: 4px ">Prochaines dates de départ</p>
  623.                                                                         {% for hs in h.souscroisiereprices  %}
  624.                                                                             <span class="badge badge-danger" style="background: #1269a2;color: white">
  625.                                                                             {% set months = {
  626.                                                                                 1: 'Janvier',
  627.                                                                                 2: 'Février',
  628.                                                                                 3: 'Mars',
  629.                                                                                 4: 'Avril',
  630.                                                                                 5: 'Mai',
  631.                                                                                 6: 'Juin',
  632.                                                                                 7: 'Juillet',
  633.                                                                                 8: 'Août',
  634.                                                                                 9: 'Septembre',
  635.                                                                                 10: 'Octobre',
  636.                                                                                 11: 'Novembre',
  637.                                                                                 12: 'Décembre'
  638.                                                                             } %}
  639.                                                                                 {% set date = hs.dated|date('d-m-Y') %}
  640.                                                                                 {% set day = date|slice(0,2) %}
  641.                                                                                 {% set month = date|slice(3,2)|number_format(0, '', '') %}
  642.                                                                                 {% set year = date|slice(6,4) %}
  643.                                                                                 {{ day }} {{ months[month|number_format(0, '', '')] }} {{ year }}
  644.                                                                         </span>
  645.                                                                         {% endfor %}
  646.                                                                     </div>
  647.                                                                 </div>
  648.                                                                 <div class="col-lg-2">
  649.                                                                     <div class="offers_price" style="margin-top: 60px">
  650.                                                                         {% set minPrix = null %}
  651.                                                                         {% if h.souscroisiererooms is defined and h.souscroisiererooms|length > 0 %}
  652.                                                                             {% for cabine in h.souscroisiererooms %}
  653.                                                                                 {% if cabine.souscroisierepricerooms is defined and cabine.souscroisierepricerooms|length > 0 %}
  654.                                                                                     {% for priceCabine in cabine.souscroisierepricerooms %}
  655.                                                                                         {% if priceCabine.price is defined %}
  656.                                                                                             {% if minPrix is null or priceCabine.price < minPrix %}
  657.                                                                                                 {% set minPrix = priceCabine.price %}
  658.                                                                                             {% endif %}
  659.                                                                                         {% endif %}
  660.                                                                                     {% endfor %}
  661.                                                                                 {% endif %}
  662.                                                                             {% endfor %}
  663.                                                                         {% endif %}
  664.                                                                         <div class="offers_price1">
  665.                                                                             <span class="text-center" style="margin-left: 50px;font-size: 15px;color: black;font-weight: 300">A partir de:</span><br><br>
  666.                                                                             <span class="badges badge-success" style="font-size: 35px;font-weight: 600;margin-left: 17px;color: #5586c2">
  667.                                                                             {{ minPrix is not null ? minPrix : 'N/A' }} TND
  668.                                                                         </span>
  669.                                                                         </div>
  670.                                                                     </div>
  671.                                                                     <button class="custom-btn btn-3" style="left: -10%,">
  672.                                                                     <span style="color: white;font-size: 16px;font-weight: 500">
  673.                                                                         <a href="{{ path('sous_croisiere_details', {'sousCroisiereId': h.id}) }}" style="color: white">Voir Détails</a>
  674.                                                                     </span>
  675.                                                                     </button>
  676.                                                                 </div>
  677.                                                             </div>
  678.                                                         </div>
  679.                                                     </div>
  680.                                                 {% endif %}
  681.                                             {% endfor %}
  682.                                         </div>
  683.                                     </div>
  684.                                 </div>
  685.                             </div>
  686.                         {% endif %}
  687.                     </div>
  688.                 </div>
  689.             </div>
  690.         </div>
  691.     </div>
  692.     </div>
  693.     <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  694.     <script src="{{ asset('slider/js/popper.js') }}"></script>
  695.     <script src="{{ asset('slider/js/bootstrap.min.js') }}"></script>
  696.     <script src="{{ asset('slider/js/owl.carousel.min.js') }}"></script>
  697.     <script src="{{ asset('slider/js/main.js') }}"></script>
  698. {% endblock %}