@extends('default.layout') @section('content')

DETALHES DO PEDIDO

Pedido ID: {{$item->pedido_id}}
DATA {{ $item->data_pedido }}
Cliente {{ $item->nome_cliente }}
Endereço {{ $item->endereco }} - {{ $item->bairro }} {{ $item->ccep }}
@foreach($item->itens as $i) @endforeach
Produto Quantidade Valor unitário Total
@if($i->image_url != "")
@else
@endif
{{ $i->nome_produto }}
{{ $i->quantidade }} R$ {{ number_format($i->valor_unitario, 2, ',', '.') }} R$ {{ number_format($i->total, 2, ',', '.') }}
STATUS VALOR ENTREGA VALOR PRODUTOS TOTAL
@if($item->status == 'CAN') {{$item->status}} @else {{$item->status}} @endif R$ {{ number_format($item->valor_entrega, 2, ',', '.')}} R$ {{ number_format($item->valor_produtos, 2, ',', '.')}} R$ {{ number_format($item->valor_total, 2, ',', '.')}}
@if(sizeof($item->payments) > 0)

Pagamentos

@foreach($item->payments as $p) @endforeach
FORMA PAGAMENTO TIPO PAGAMENTO VALOR
{{$p->forma_pagamento}} {{$p->tipo_pagamento}} R$ {{ number_format($p->valor, 2, ',', '.')}}
@endif
@if(!$item->venda) Ir Para o PDV @else @if($item->numero_nfe > 0) Imprimir Danfe @endif Ver Venda @endif Imprimir Pedido
@endsection