{# empty Twig template #}
<style type="text/css">
    nobr {
        word-wrap: normal;
        white-space: nowrap;
    }

    .bg {
        background-color: #F4EEC0;
    }

    .bord {
        border: 1px solid #C7BD87;
    }

    .Stil1 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
    }

    .Stil2 {
        font-size: 11px;
        font-family: Verdana, Arial, Helvetica, sans-serif
    }

    body {
        font-size: 90%
    }


    @media only screen and (max-width: 600px) {
        #wrapper {
            width: 100% !important;
        }
    }
</style>

<table id="wrapper" align="center" width="600" border="1" cellpadding="5" cellspacing="0"
       style="border-collapse: collapse;">
    <tr>
        <td>
            <table class="bg" bgcolor="#F4EEC0" width="100%" align="center" border="0" cellspacing="0" cellpadding="10">
                <tr colspan="3" valign="top">
                    <td width=40% class="bg" align="left">
                        {% if stock_logo_path > '' %}
                            <img src="{{ stock_logo_path|raw }}" width="150" alt="{{ stock.name }}" border="0"/>
                        {% endif %}
                    </td>
                    <td style="vertical-align: middle;" class="bg" bgcolor="#F4EEC0"><h3 style="margin:0">Заказ
                            № {{ order_code }}</h3>
                    </td>
                </tr>
            </table>
            <div class="outer">

                <table border="0" cellspacing="" cellpadding="2" width="100%">
                    <!-- begin customer information -->


                    <!-- begin order items information -->
                    <tr>
                        <td colspan="2" bgcolor="#F4EEC0"><strong>Содержание заказа</strong></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <table width=100% border=1 cellpadding=4 cellspacing=0 bordercolor="#CCCCCC">
                                <tr align=left class="Stil1">
                                    <th align="center">Артикул</th>
                                    <th align="center">Наименование</th>
                                    <th align="center">Кол.-во</th>
                                    <th width="15%" align="center">Цена,{{ currency }}</th>
                                    <th width="15%" align="center">Итог,{{ currency }}</th>
                                </tr>
                                {% for item in order_items %}

                                    <tr class="Stil1">
                                        <td>
                                            <nobr>{{ item.article }}</nobr>
                                        </td>
                                        <td>{{ item.desc }}{{ display_sex(item.groups) }}
                                        </td>
                                        <td align="center">{{ item.amount }}</td>
                                        <td align="right">
                                            <nobr>{{ display_price(item.price) }}</nobr>
                                        </td>
                                        <td align="right">
                                            <nobr>{{ display_price(item.price * item.amount) }}</nobr>
                                        </td>
                                    </tr>
                                {% endfor %}


                                <tr class="Stil1">
                                    <td colspan=4 align=right><b>Итого:</b></td>
                                    <td align="right">
                                        <strong><nobr>{{ display_price(sum) }}</nobr></strong>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <!-- end order items information -->
                    <!-- begin customer note -->
	
					
					 <tr>
                        <td colspan="3"><b class="Stil1">ФИО: </b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ customer.name }} , тел:{{ customer.phone }}, email:{{ customer.email }}
                        </td>

                    </tr>
					
					{%if order.deliveryAddress > ''%}
                    <tr>
                        <td colspan="3"><b class="Stil1">Адрес доставки:</b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ order.deliveryAddress }}
                        </td>

                    </tr>
					{%endif%}

                    <tr>
                        <td colspan="3"><b class="Stil1">Способ оплаты:</b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ payment.title }}
                        </td>

                    </tr>

					{%if order.comment > ''%}
                    <tr>
                        <td colspan="3"><b class="Stil1">Комментарий к заказу:</b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ order.comment }}
                        </td>

                    </tr>
					{%endif%}

                </table>
                <p class="Stil1">
                    {{ signature|raw }}
                </p>
            </div>
        </td>
    </tr>
</table>
