@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')--}}
{{--
@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
@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
@if($order->order_state_id != 11)
@endif
{{ csrf_field() }}