gurl_o/plugins/tps/birzha/components/singlesale/default.htm

95 lines
4.8 KiB
HTML

{% set sales = __SELF__.sales %}
{% set order = __SELF__.order %}
<!-- Breadcumb Area -->
<div class="breadcumb_area">
<div class="container h-100">
<div class="row h-100 align-items-center">
<div class="col-12">
<h5>Sargyt maglumaty</h5>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ 'index'|page }}">Esasy sahypa</a></li>
<li class="breadcrumb-item active"># {{ order }} sargyt</li>
</ol>
</div>
</div>
</div>
</div>
<!-- Breadcumb Area -->
<!-- Checkout Area -->
<div class="checkout_area section_padding_100">
<div class="container">
<div class="row">
<div class="col-12">
<div class="checkout_details_area clearfix">
<h5 class="mb-30">Harytlar</h5>
<div class="cart-table">
<div class="table-responsive">
<table class="table table-bordered mb-30">
<thead>
<tr>
<th scope="col">Surat</th>
<th scope="col">Haryt ady</th>
<th scope="col">Bahasy</th>
<th scope="col">Mukdary</th>
<th scope="col">Umumy</th>
</tr>
</thead>
<tbody>
{% set total_price = 0 %}
{% for order in sales %}
<tr>
<td>
<a href="{{ 'product'|page({id: order.product.id}) }}">
<img src="{{ order.product.images[0].thumb(60,60, { mode: 'crop' }) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ order.product.name }}">
</a>
</td>
<td>
<a href="{{ 'product'|page({id: order.product.id}) }}">{{ order.product.name }}</a>
</td>
<td>{{ order.product.price }} TMT</td>
<td>{{ order.qty }}</td>
<td>{{ order.product.price * order.qty }} TMT</td>
{% set total_price = total_price + (order.product.price * order.qty) %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-7 ml-auto">
<div class="cart-total-area">
<h5 class="mb-3">Zakaz jemi</h5>
<div class="table-responsive">
<table class="table mb-0">
<tbody>
<tr>
<td>Jemi</td>
<td>{{ total_price }} TMT</td>
</tr>
</tbody>
</table>
</div>
<div class="checkout_pagination d-flex justify-content-end mt-3">
<form action="#"
data-request="onConfirm"
data-request-flash
data-request-validate
>
<input type="hidden" name="order_id" value="{{ order }}">
<button type="submit" class="btn btn-primary mt-2 ml-2">Zakazy kabul etmek</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Checkout Area End -->