{% 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" >

        <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">
                                        <a href={{ "receta-detalle/update/" ~ i.lunchFirst[0].id  }}>
                                            <div class="row">
                                                <div class="col-xs-11 plr0">
                                                    <label class="color-other">{{ i.lunchFirst[0].name }}</label>
                                                </div>
                                                <div class="col-xs-1 plr0">
                                                    <i class="fa fa-search pointer a-black"></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">
                                        <a href={{ "receta-detalle/update/"~ i.lunchSecond[0].id }}>
                                                <div class="row">
                                                    <div class="col-xs-11 plr0">
                                                        <label class="color-other" for="comida_segun_1_">{{ i.lunchSecond[0].name }}</label>
                                                    </div>
                                                    <div class="col-xs-1 plr0">
                                                        <i class="fa fa-search pointer a-black"></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">
                                        <a href={{ "receta-detalle/update/"~ i.dinnerFirst[0].id }}>
                                                <div class="row">
                                                    <div class="col-xs-11 plr0">
                                                        <label class="color-other" for="cena_primer_1_">{{ i.dinnerFirst[0].name }}</label>
                                                    </div>
                                                    <div class="col-xs-1 plr0">
                                                        <i class="fa fa-search pointer a-black"></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">
                                        <a href={{ "receta-detalle/update/"~ i.dinnerSecond[0].id }}>
                                                <div class="row">
                                                    <div class="col-xs-11 plr0">
                                                        <label class="color-other" for="cena_segun_1_"> {{ i.dinnerSecond[0].name }} </label>
                                                    </div>
                                                    <div class="col-xs-1 plr0">
                                                        <i class="fa fa-search pointer a-black"></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 %}




