{% set order = __SELF__.order %}
{% set total = __SELF__.total %}
<!-- Breadcumb Area -->
<div class="breadcumb_area">
    <div class="container h-100">
        <div class="row h-100 align-items-center">
            <div class="col-12">
                <h5>{{ 'zakaz.Zakaz'|_ }}</h5>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="{{ 'index'|page }}">{{ 'breadcrumbEsasySahypa'|_ }}</a></li>
                    <li class="breadcrumb-item"><a href="{{ 'my-orders'|page }}">{{ 'breadcrumbYza'|_ }}</a></li>
                    <li class="breadcrumb-item active">{{ 'zakaz.Zakaz'|_ }} # {{ order.order_id }}</li>
                </ol>
            </div>
        </div>
    </div>
</div>
<!-- Breadcumb Area -->

<!-- Cart Area -->
<div class="cart_area section_padding_100_70 clearfix">
    <div class="container">
        <div class="row justify-content-between">
            <div class="col-12">
                <div class="cart-table">
                    <div class="table-responsive">
                        <table class="table table-bordered mb-30">
                            <thead>
                                <tr>
                                    <th scope="col">{{ 'product.Surat'|_ }}</th>
                                    <th scope="col">{{ 'product.HarytAdy'|_ }}</th>
                                    <th scope="col">{{ 'checkout.Mukdary'|_ }}</th>
                                    <th scope="col">{{ 'checkout.Bahasy'|_ }}</th>
                                    <th scope="col">{{ 'checkout.Jemi'|_ }}</th>
                                </tr>
                            </thead>
                            <tbody>
                            
                            {% for item in order.items %}
                                <tr>
                                    <td>
                                        <img src="{{ getProductImage(item.item) }}" alt="{{ getProductName(item.item) }}"/>
                                        
                                    </td>
                                    <td><a href="{{ 'product'|page({id: item.item}) }}">{{ getProductName(item.item) }}</a></td>
                                    <td>{{ item.qty }}</td>
                                    <td>{{ item.price }} TMT</td>
                                    <td>{{ item.qty * item.price }} TMT</td>
                                </tr>
                                {% set total = total + (item.price * item.qty) %}
                            {% endfor %}
                                
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-12 col-lg-7 ml-auto">
                <div class="cart-total-area">
                    <h5 class="mb-3">{{ 'checkout.Jemi'|_ }}</h5>
                    <div class="table-responsive">
                        <table class="table mb-0">
                            <tbody>
                                <tr>
                                    <td>{{ 'checkout.HarytlarynJemi'|_ }}</td>
                                    <td>{{ total }} TMT</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>



    </div>
</div>
<!-- Cart Area End -->

