{{ __('Product') }} | {{ __('Details') }} | {{ __('Total') }} |
---|---|---|
@if($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if(isset($user)) {{ $product['item']['name']}} @else {{$product['item']['name']}} @endif @else {{ $product['item']['name']}} @endif |
@if($product['size'])
{{ __('Size') }} : {{str_replace('-',' ',$product['size'])}} @endif @if($product['color']){{ __('Color') }} : @endif{{ __('Price') }} : {{ \PriceHelper::showOrderCurrencyPrice(($product['item_price'] * $order->currency_value),$order->currency_sign) }} {{ __('Qty') }} : {{$product['qty']}} {{ $product['item']['measure'] }} @if(!empty($product['keys'])) @foreach( array_combine(explode(',', $product['keys']), explode(',', $product['values'])) as $key => $value){{ ucwords(str_replace('_', ' ', $key)) }} : {{ $value }} @endforeach @endif |
{{ \PriceHelper::showOrderCurrencyPrice(($product['price'] * $order->currency_value),$order->currency_sign) }} {{ $product['discount'] == 0 ? '' : '('.$product['discount'].'% '.__('Off').')' }} | @php $subtotal += round($product['price'] * $order->currency_value, 2); @endphp
{{ __('Subtotal') }} | {{ \PriceHelper::showOrderCurrencyPrice($subtotal,$order->currency_sign) }} | |
{{ __('Shipping Cost') }}({{$order->currency_sign}}) | {{ \PriceHelper::showOrderCurrencyPrice($order->shipping_cost,$order->currency_sign) }} | |
{{ __('Packaging Cost') }}({{$order->currency_sign}}) | {{ \PriceHelper::showOrderCurrencyPrice($order->packing_cost,$order->currency_sign) }} | |
{{ __('TAX') }}({{$order->currency_sign}}) | @php $tax = ($subtotal / 100) * $order->tax; $subtotal = $subtotal + $tax; @endphp{{ \PriceHelper::showOrderCurrencyPrice($tax,$order->currency_sign) }} | |
{{ __('Total') }} | {{ \PriceHelper::showOrderCurrencyPrice(($subtotal + $data),$order->currency_sign) }} |