@foreach ($order->products as $product)
@php
$quantity = null;
$product->cover ? $src = config('site.url') . "storage/". $product->cover : $src=asset("storage/images/img-indisponivel.jpg");
$product->pivot->quantity == 1 ? $quantity = "unidade" : $quantity = "unidades";
@endphp
{{ $product->name }}
{{ $product->pivot->quantity }} {{$quantity}} -
{{ config('cart.currency_symbol') }} {{ number_format($product->price, 2,',','.') }}
@endforeach
@if($order->total_shipping != "0.00")
Frete: {{ number_format($order->total_shipping, 2,',','.') }} |
@endif
TOTAL: {{ number_format($order->total, 2,',','.') }}
status:
@switch($order->orderStatus->name)
@case("pendente")
{{$order->orderStatus->name}}
@break
@case("pago")
{{$order->orderStatus->name}}
@break
@case("encomendado")
{{$order->orderStatus->name}}
@break
@default
@endswitch
@if($order->orderStatus->id === 2 && $order->total > 0)
Efetuar pagamento
@else
Acompanhar pedido
@endif
Preciso de ajuda