{% extends 'layout/template.twig' %}

{% block content %}
    <!-- barra superior titulo de pagina-->
    <div class="div-title bg-color-menus-saludables">
        <div class="container">
            <div class="row">
                <div class="col-xs-10 col-sm-11">
                    {{ title }}
                </div>
                <div class="col-xs-2 col-sm-1 text-right" data-toggle="tooltip" data-placement="bottom" title="¿Como funciona?">
                    <i class="fa fa-info-circle" data-toggle="modal" data-target="#modalInfo"></i>
                </div>
            </div>
        </div>
    </div>

    <div class="container mt20" >

        <h2 class="name-menu-saludable">Menú {{ name_menu }}</h2>

        <div id="exTab2" class="container">
            <ul class="nav nav-tabs nav-tabs-menus-saludables">
                <li class="active">
                    <a  href="#monday" data-toggle="tab">LU</a>
                </li>
                <li>
                    <a href="#tuesday" data-toggle="tab">MA</a>
                </li>
                <li>
                    <a href="#wednesday" data-toggle="tab">MIE</a>
                </li>
                <li>
                    <a href="#thursday" data-toggle="tab">JUE</a>
                </li>
                <li>
                    <a href="#friday" data-toggle="tab">VIE</a>
                </li>
                <li>
                    <a href="#saturday" data-toggle="tab">SAB</a>
                </li>
                <li>
                    <a href="#sunday" data-toggle="tab">DOM</a>
                </li>
            </ul>
            <div class="tab-content tab-content-menus-saludables">
                {% for i in items.days %}
                    <div class="tab-pane {% if i.ds == 'monday' %}active {% endif %}" id="{{ i.ds }}">
                        <div class="row">
                            {#comida#}
                            <div class="col-md-6">
                                <h2 class="color-menus-saludables">COMIDA</h2>
                                <div class="border-box border-menus-saludables-light">
                                    <div class="title-box-border-box bg-color-menus-saludables-light">
                                        PRIMER PLATO
                                    </div>
                                    <div class="container-box-border-box plr-recipe-generales">
                                        <a href={{ "receta-detalle/update/" ~ i.lunchFirst[0].id  }}>
                                            <div class="row  pointer a-black">
                                                <div class="col-xs-11 plr0">
                                                    <p class="color-other">{{ i.lunchFirst[0].name }}</p>
                                                </div>
                                                <div class="col-xs-1 plr0">
                                                    <i class="fa fa-search"></i>
                                                </div>
                                            </div>
                                        </a>
                                    </div>
                                </div>
                                <div class="border-box border-menus-saludables-light">
                                    <div class="title-box-border-box bg-color-menus-saludables-light">
                                        SEGUNDO PLATO
                                    </div>
                                    <div class="container-box-border-box plr-recipe-generales">
                                        <a href={{ "receta-detalle/update/"~ i.lunchSecond[0].id }}>
                                                <div class="row pointer a-black">
                                                    <div class="col-xs-11 plr0">
                                                        <p class="color-other">{{ i.lunchSecond[0].name }}</p>
                                                    </div>
                                                    <div class="col-xs-1 plr0">
                                                        <i class="fa fa-search "></i>
                                                    </div>
                                                </div>
                                        </a>
                                    </div>
                                </div>
                            </div>

                            {#cena#}
                            <div class="col-md-6">
                                <h2 class="color-menus-saludables">CENA</h2>
                                <div class="border-box border-menus-saludables-light">
                                    <div class="title-box-border-box bg-color-menus-saludables-light">
                                        PRIMER PLATO
                                    </div>

                                    <div class="container-box-border-box plr-recipe-generales">
                                        <a href={{ "receta-detalle/update/"~ i.dinnerFirst[0].id }}>
                                                <div class="row pointer a-black">
                                                    <div class="col-xs-11 plr0">
                                                        <p class="color-other" >{{ i.dinnerFirst[0].name }}</p>
                                                    </div>
                                                    <div class="col-xs-1 plr0">
                                                        <i class="fa fa-search "></i>
                                                    </div>
                                                </div>
                                        </a>
                                    </div>
                                </div>
                                <div class="border-box border-menus-saludables-light">
                                    <div class="title-box-border-box bg-color-menus-saludables-light">
                                        SEGUNDO PLATO
                                    </div>
                                    <div class="container-box-border-box plr-recipe-generales">
                                        <a href={{ "receta-detalle/update/"~ i.dinnerSecond[0].id }}>
                                                <div class="row pointer a-black">
                                                    <div class="col-xs-11 plr0">
                                                        <p class="color-other" > {{ i.dinnerSecond[0].name }} </p>
                                                    </div>
                                                    <div class="col-xs-1 plr0">
                                                        <i class="fa fa-search "></i>
                                                    </div>
                                                </div>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6 col-md-offset-6">
                                <button  class="btn btn-custom btn-menus-saludables-light mt20" data-toggle="modal" data-target="#modalRecomendaciones"> Recomendaciones resto del día <i class="fa fa-angle-double-right"></i> </button>
                            </div>
                        </div>
                    </div>
                {% endfor %}
            </div>
        </div>

        <div class="row">
            <div class="col-md-4 col-md-offset-8">
                <button  class="btn btn-custom btn-menus-saludables mt20" ><i class="fa fa-save"></i> Guardar Selección</button>
            </div>
        </div>

    </div>

    <!--modal recomendaciones resto del día-->
    {% include 'modal_resto_dia.twig' %}


{% endblock %}




