 }})
 }})
 }})
{{ translate('Products') }}
{{ translate('Description') }}
{{ translate('Quantity') }}
{{ translate('Item price') }}
{{ translate('Total amount') }}
@foreach ($order->OrderProduct as $key => $OrderProduct)
@endforeach
@if ($OrderProduct->product != null)
@switch($OrderProduct->product->advanced_product)
@case('digital_product')
@break
@case('digital_cards')
@break
@default
@endswitch
{{ $OrderProduct->product->getTranslation('title') }}
@endif
@if ($OrderProduct->product->advanced_product == 'digital_product')
 }})
 }})
---
@else
{{ $OrderProduct->quantity }}
@endif
{{ $OrderProduct->price }}
{{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
@if ($OrderProduct->product->advanced_product == 'digital_product')
{{ $OrderProduct->price }}
{{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
@else
{{ $OrderProduct->price * $OrderProduct->quantity }}
{{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
@endif
{{ translate('History') }}
@if ($order->order_history != null)
@foreach (json_decode($order->order_history) as $key => $one_hist)
@if (!$loop->last)
@endif
@endforeach @else @endif
 }})
{{ translate($one_hist->type) }}
{{ translate('By') }} : {{ $one_hist->doneBy }} {{ $one_hist->date }}
@endforeach @else @endif
{{ translate('Order details') }}
{{ translate('Customer') }} : {{ $order->user->name }}
{{ translate('Order number') }} : {{ $order->code }}
{{ translate('Order date') }} : {{ date('Y-m-d', strtotime($order->date)) }}
{{ translate('Payment') }} : {{ translate($order->payment_type) }}
{{ translate('Total amount') }} : {{ $order->total_price }} {{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
{{ translate('TOTAL') }}
{{ translate('The Amount') }} : {{ $order->OrderProduct->sum('price') }} {{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
{{ translate('Taxes') }} : {{ $order->tax }} {{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
{{ translate('Coupon discount') }} : {{ $order->coupon_discount }} {{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
{{ translate('Wallet discount') }} : {{ $order->wallet_discount }} {{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
{{ translate('Total amount') }} : {{ $order->total_price }} {{ \App\Currency::find($order->currency_id)->getTranslation('symbol') }}
@if ($order->commercial_register == null)
@else
{{ translate('Show invoice') }}
@endif