{function monthName} {if $month == '01'} Январь {else if $month == '02'} Февраль {else if $month == '03'} Март {else if $month == '04'} Апрель {else if $month == '05'} Май {else if $month == '06'} Июнь {else if $month == '07'} Июль {else if $month == '08'} Август {else if $month == '09'} Сентябрь {else if $month == '10'} Октябрь {else if $month == '11'} Ноябрь {else if $month == '12'} Декабрь {else} ??? {/if} {/function}
{$rate = ($currency->rate_from|default:1) / ($currency->rate_to|default:1)} {$lastMonth = 0} {$lastYear = 0} {foreach $orders as $order} {$date=substr($order->date, 0, 10)} {$day = substr($order->date, 0, 2)} {$month = substr($order->date, 3, 2)} {$year = substr($order->date, 6, 4)} {if $month != $lastMonth || $year != $lastYear}
{monthName month=$month} {$year}
{$lastMonth = $month} {$lastYear = $year} {/if} {$pullRight = ""} {if $order@index % 2 == 0} {$pullRight = "pull-right "} {/if}
Открыть заказ {foreach $order->products as $product} {/foreach}
Товар К-во Сумма
{$product->product_name} {$product->variant_name} {$product->quantity} {$product->price * $rate * $product->quantity} {sign}
{/foreach}