@extends('modules.head') @section('contenido')

{{Lang::get('messages.screen_editEC_tag1')}} |{{Lang::get('messages.screen_editEC_tag2')}}

@if ($order->order_state_id == 5) @else @endif
{{--
--}}
@if( $order->order_state_id == 1 || $order->order_state_id == 2 || $order->order_state_id == 3 || $order->order_state_id == 4)
@endif
@if($order->payment_type_id == 5) @if($order->gw_state == "CONFIRMED")
PAGO EXITOSO REF: {{ $order->gw_code_transaction }}
@else
PAGO PENDIENTE REF: {{ $order->gw_code_transaction }}
@endif @endif
{{--
--}} {{--
--}}
@if(count($products)>0) @if ($order->order_state_id < 4) {{-- @include('orders.addProduct')--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
Subtotal:$

0

--}} {{--
--}} {{--
--}} {{--
--}} @endif

{{Lang::get('messages.screen_editEC_tag7')}}

@if (Auth::user()->rol_id == 1 || Auth::user()->rol_id == 2 || Auth::user()->rol_id == 8) @endif @foreach($products as $product) @if($product->bo_return_state == 1) @else @endif @if($product->percentage_discount != 0) @elseif($product->flash_price !=null && $product->flash_price !=0) @else @endif @endforeach
{{Lang::get('messages.screen_editEC_tag10')}} {{Lang::get('messages.screen_editEC_tag11')}} {{Lang::get('messages.screen_editEC_tag24')}} {{Lang::get('messages.screen_editEC_tag12')}} {{Lang::get('messages.screen_editEC_tag25')}} {{Lang::get('messages.screen_editEC_tag21')}} {{Lang::get('messages.screen_editEC_tag13')}} {{Lang::get('messages.screen_editEC_tag22')}}
{{$product->products->plu}} {{$product->products->name}} {{$product->comments}} {{$product->quantity}} {{$product->return_quantity_allowed}}{{$product->products->plu}} {{$product->products->name}} {{$product->comments}} {{$product->quantity}} {{$product->return_quantity_allowed}} @priceFormat($product->price_bruto)

@priceFormat($product->price)

@priceFormat($product->price_bruto)

@priceFormat($product->price)

@priceFormat($product->price) @priceFormat($product->price * $product->quantity) @if ($parameter->b1_activate) @if($order->order_state_id == 4 || $order->order_state_id == 5) @if (!$order->isFlagged()) @else

No returns allowed

@endif @endif @endif @if (count($product->orderProductAttributes)) @endif @if($order->order_state_id <= 3 || $order->order_state_id == 9) @if ( Auth::user()->rol_id == 1 || Auth::user()->rol_id == 2 || (Auth::user()->rol_id == 8 && $products->count() > 1)) @endif @endif
@else

{{Lang::get('messages.screen_editEC_tag14')}}

@endif @if($order->not_found !=null)

Productos no encontrados:

{{$order->not_found}}

@endif

Subtotal: @priceFormat($order->subtotal)

Taxes: @priceFormat($order->tax)

@php $total_additional_cost = 0; $order_total_updated = false; foreach($order->additionalPayments as $additionalPayment) { if($additionalPayment->payment_reason == 'additional_shipping_cost') { $total_additional_cost += $additionalPayment->amount; $order_total_updated = $additionalPayment->order_total_updated; } } @endphp

Delivery fee: @priceFormat($order->cost_delivery) @if($total_additional_cost > 0 && $order_total_updated) (Including additional: @priceFormat($total_additional_cost)) @elseif($total_additional_cost > 0 && !$order_total_updated) (Plus additional: @priceFormat($total_additional_cost)) @endif

Total: @priceFormat($order->total_price)


@if($order->additionalPayments->isEmpty() and in_array($order->order_state_id, [1, 2, 3, 9]) and in_array($order->bo_shipping_type_id, [2, 3, 4, 5])) @endif
{{ csrf_field() }}
@include('modules.modal_loading') @include('modal_direction') @include('orders.modal_attributes') @endsection @include('additional_payments/additional_payments')