{{ __('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') }} : {{$order->currency_sign}}{{ round($product['item']['price'] * $order->currency_value , 2) }} {{ __('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 |
{{$order->currency_sign}}{{ round($product['price'] * $order->currency_value , 2) }} | @php $subtotal += round($product['price'] * $order->currency_value, 2); @endphp
@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') }} : {{$order->currency_sign}}{{ round($product['item']['price'] * $order->currency_value , 2) }} {{ __('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 |
{{$order->currency_sign}}{{ round($product['price'] * $order->currency_value , 2) }} | @php $subtotal += round($product['price'] * $order->currency_value, 2); @endphp
{{ __('Subtotal') }} | {{$order->currency_sign}}{{ round($subtotal, 2) }} | |
{{ DB::table('shippings')->where('price','=',$price)->first()->title }}({{$order->currency_sign}}) | {{ round($order->shipping_cost , 2) }} | |
{{ DB::table('packages')->where('price','=',$pprice)->first()->title }}({{$order->currency_sign}}) | {{ round($order->packing_cost , 2) }} | |
{{ __('TAX') }}({{$order->currency_sign}}) | @php $tax = ($subtotal / 100) * $order->tax; @endphp{{round($tax, 2)}} | |
{{ __('Coupon Discount') }}({{$order->currency_sign}}) | {{$order->currency_sign}}{{round($order->coupon_discount, 2)}} | |
{{ __('Total') }} | {{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }} |