{{__('texte.emails_arr.order_sent.number')}}: {{ $order->id}}
{{__('texte.emails_arr.order_sent.contragent')}}: {{ $order->obect->contragent->company_name ?? $order->obect->contragent->user->name }}
{{__('texte.emails_arr.order_sent.object')}}: {{ $order->name }}
{{__('texte.emails_arr.order_sent.delivery_date')}}: {{date("d.m.Y",strtotime($order->delivery_date))}}
@if($order->note!='')
{{__('texte.emails_arr.order_sent.note')}}: {{ $order->note }}
@endif

{{__('texte.emails_arr.order_sent.products')}}

@foreach($order_products as $index=>$order_product) @endforeach
{{__('texte.emails_arr.order_sent.product')}} {{__('texte.emails_arr.order_sent.quantity')}} {{__('texte.emails_arr.order_sent.price')}} {{__('texte.emails_arr.order_sent.amount')}}
{{$index+1}} {{$order_product->name}} {{$order_product->quantity_ordered / ($order_product->package ==1 ? 1 : $order_product->package_count)}} {{number_format(number_format($order_product->single_price*1.2,2,'.','') * ($order_product->package ==1 ? 1 : $order_product->package_count) - number_format($order_product->super_discount*1.2*($order_product->package ==1 ? 1 : $order_product->package_count),2), 2, '.', '')}} {{number_format($order_product->quantity_ordered*(number_format($order_product->single_price*1.2,2,'.','') - number_format($order_product->super_discount*1.2,2)), 2, '.', '')}}
{{__('texte.emails_arr.order_sent.total_amount')}} {{number_format($order->total_amount, 2, '.', '')}}
{{__('texte.emails_arr.order_sent.discounts_amount')}} {{number_format($order->total_discounts, 2, '.', '')}}
{{__('texte.emails_arr.order_sent.transport_amount')}} {{number_format($order->transport==1 ? $intangible*1.2 : 0, 2, '.', '')}}
{{__('texte.emails_arr.order_sent.end_amount')}} {{number_format($order->total_amount-$order->total_discounts + ($order->transport==1 ? $intangible*1.2 : 0), 2, '.', '')}}
@if(count($bonus_products)>0)

{{__('texte.emails_arr.order_sent.gifts')}}

@foreach($bonus_products as $bonus_product) @endforeach
{{__('texte.emails_arr.order_sent.name')}} {{__('texte.emails_arr.order_sent.quantity')}}
{{$bonus_product->name}} {{$bonus_product->quantity_ordered/($bonus_product->measure==0 ? 1 : $bonus_product->produkt->package_count)}}
@endif