140 lines
6.9 KiB
HTML
140 lines
6.9 KiB
HTML
title = "Print"
|
|
url = "/print/:id"
|
|
is_hidden = 0
|
|
robot_index = "index"
|
|
robot_follow = "follow"
|
|
|
|
[singlesale]
|
|
id = "{{ :id }}"
|
|
perPage = 12
|
|
|
|
[session]
|
|
security = "user"
|
|
redirect = "login"
|
|
==
|
|
{% set sales = singlesale.sales %}
|
|
{% set order = singlesale.order %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Zakaz # {{ order.id }} | gurlushyk.com.tm</title>
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"/>
|
|
<link rel="icon" href="{{ 'assets/img/core-img/favicon.png'|theme}}">
|
|
<link rel="stylesheet" href="{{ 'assets/css/style.css'|theme}}">
|
|
<link rel="stylesheet" href="{{ 'assets/css/newcss.css'|theme}}">
|
|
<link rel="stylesheet" href="{{ 'assets/css/toastr.min.css'|theme}}">
|
|
|
|
<style>
|
|
@media print {
|
|
.backgroundOrange {
|
|
background-color: orange;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body onload="window.print();">
|
|
<div class="container">
|
|
<!-- 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">
|
|
<div class="cart-table">
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered mb-30 backgroundOrange">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th scope="col">{{ 'checkout.HarytAdy'|_ }}</th>
|
|
<th scope="col">{{ 'checkout.Bahasy'|_ }}</th>
|
|
<th scope="col">{{ 'checkout.Mukdary'|_ }}</th>
|
|
<th scope="col">{{ 'checkout.Umumy'|_ }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% set total_price = 0 %}
|
|
{% for saleOrder in sales %}
|
|
<tr>
|
|
|
|
<td>{{ saleOrder.product.name }}</td>
|
|
<td>{{ saleOrder.product.price }} TMT</td>
|
|
<td>{{ saleOrder.qty }}</td>
|
|
<td>{{ saleOrder.product.price * saleOrder.qty }} TMT</td>
|
|
{% set total_price = total_price + (saleOrder.product.price * saleOrder.qty) %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<div class="cart-total-area">
|
|
<h5 class="mb-3">{{ 'checkout.BeylekiMaglumatlar'|_ }}</h5>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table mb-0">
|
|
<tbody>
|
|
<tr>
|
|
<td>{{ 'checkout.Ulanyjy'|_ }}</td>
|
|
<td>{{ order.user.name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ 'footer.TelefonTitle'|_ }}</td>
|
|
<td>+993 {{ order.user.username }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ 'checkout.Address'|_ }}</td>
|
|
<td>{{ order.address }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ 'checkout.Bellik'|_ }}</td>
|
|
<td>{{ order.note }}</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6">
|
|
|
|
<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.Jemi'|_ }}</td>
|
|
<td>{{ total_price }} TMT</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<!-- Checkout Area End -->
|
|
</div>
|
|
</body>
|
|
</html> |