@foreach($pedido->itens as $i)
{{$i->produto->id}}
|
{{$i->produto->produto->nome}}
|
{{$i->quantidade}}
|
@if(count($i->sabores) > 0)
@foreach($i->sabores as $s)
{{$s->produto->produto->nome}}
@endforeach
@else
--
@endif
|
@if(count($i->sabores) > 0)
{{number_format($maiorValor, 2, ',', '.')}}
@else
{{number_format($i->produto->valor, 2, ',', '.')}}
@endif
|
@if($i->status)
OK
@else
Pendente
@endif
|
@if(count($i->itensAdicionais) > 0)
@foreach($i->itensAdicionais as $key => $ad)
{{$ad->adicional->nome()}}
@if($key < count($i->itensAdicionais)-1)
|
@endif
@endforeach
@else
Nenhum
@endif
|
{{number_format($subTotal, 2, ',', '.')}}
|
{{number_format($subComAdicional, 2, ',', '.')}}
|
@if(!$i->status)
@endif
|
@endforeach