@extends('delivery.default') @section('content') @if(session()->has('message_sucesso'))
{{ session()->get('message_sucesso') }}
@endif


ITENS DO CARRINHO

@if($pedido) @foreach($pedido->itens as $i) @if(count($i->sabores) > 0) @else @endif @endforeach @else

Nenhum item no seu carrinho Cardápio


@endif
Produto Valor Quantidade Subtotal

{{$i->produto->produto->nome}}

Adicionais: @if(count($i->itensAdicionais)>0) @foreach($i->itensAdicionais as $a) {{$a->adicional->nome}} @endforeach @else @endif @if(count($i->sabores) > 0)
Sabores: @foreach($i->sabores as $key => $s) {{$s->produto->produto->nome}} {{($key+1 >= count($i->sabores) ? '' : '|')}} @endforeach
Total de sabores: {{count($i->sabores)}} | Tamanho {{$i->tamanho->nome}} @endif

R${{number_format($maiorValor, 2)}}R${{number_format($i->produto->valor, 2)}} R${{number_format($total, 2, ',', '.')}}
Total {{number_format($geral, 2, ',', '.')}}
@if($pedido) FINALIZAR R$ {{number_format($geral, 2, ',', '.')}} CONTINUAR COMPRANDO @else CARDÁPIO @endif

@endsection