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

RELATÓRIO DE VENDAS


@if(isset($vendasNfe) && count($vendasNfe) > 0)
Total de NF-e: {{count($vendasNfe)}}
@foreach($vendasNfe as $x) @endforeach
NF-e Cliente Valor Tipo de pagamento Data
{{$x->NfNumero}} {{$x->cliente->razao_social}} {{number_format($x->valor_total, 2, ',', '.')}} {{$x->getTipoPagamento($x->tipo_pagamento)}} {{ \Carbon\Carbon::parse($x->data_registro)->format('d/m/Y H:i:s')}}
DINHEIRO{{ number_format($total_nfe_dinheiro, 2, ',', '.') }}
CHEQUE{{ number_format($total_nfe_cheque, 2, ',', '.') }}
CARTAO CREDITO{{ number_format($total_nfe_credito, 2, ',', '.') }}
CARTAO DEBITO{{ number_format($total_nfe_debito, 2, ',', '.') }}
PRAZO (Crédito Loja){{ number_format($total_nfe_prazo, 2, ',', '.') }}
OUTROS{{ number_format($total_nfe_outros, 2, ',', '.') }}
TOTAL{{ number_format($total_nfe, 2, ',', '.') }}

@endif @if(isset($vendasNfce) && count($vendasNfce) > 0)
Total de NFC-e: {{count($vendasNfce)}}
@foreach($vendasNfce as $x) @if($x->cliente) @else @endif @if($x->tipo_pagamento == 99 && ($x->valor_pagamento_1 > 0 || $x->valor_pagamento_2 > 0 || $x->valor_pagamento_3 > 0) ) @else @endif @endforeach
NFC-e Cliente Valor Tipo de pagamento Data
{{$x->NFcNumero}}{{$x->cliente->razao_social}}NAO IDENTIFICADO{{number_format($x->valor_total, 2, ',', '.')}} @if($x->valor_pagamento_1 > 0) {{ $x->tipo_pagamento_1.' ..: R$ '.$x->valor_pagamento_1 }}
@endif @if($x->valor_pagamento_2 > 0) {{ $x->tipo_pagamento_2.' ..: R$ '.$x->valor_pagamento_2 }}
@endif @if($x->valor_pagamento_3 > 0) {{ $x->tipo_pagamento_3.' ..: R$ '.$x->valor_pagamento_3 }} @endif
{{$x->getTipoPagamento($x->tipo_pagamento)}}{{ \Carbon\Carbon::parse($x->data_registro)->format('d/m/Y H:i:s')}}
DINHEIRO{{ number_format($total_nfce_dinheiro, 2, ',', '.') }}
CHEQUE{{ number_format($total_nfce_cheque, 2, ',', '.') }}
CARTAO CREDITO{{ number_format($total_nfce_credito, 2, ',', '.') }}
CARTAO DEBITO{{ number_format($total_nfce_debito, 2, ',', '.') }}
PRAZO (Crédito Loja){{ number_format($total_nfce_prazo, 2, ',', '.') }}
OUTROS{{ number_format($total_nfce_outros, 2, ',', '.') }}
TOTAL{{ number_format($total_nfce, 2, ',', '.') }}

@endif @if(isset($vendasNfe) && isset($vendasNfce) && count($vendasNfe) > 0 && count($vendasNfce) > 0)
Total Geral:
Forma de Pagamento
DINHEIRO{{ number_format($total_nfe_dinheiro +$total_nfce_dinheiro, 2, ',', '.') }}
CHEQUE{{ number_format($total_nfe_cheque + $total_nfce_cheque, 2, ',', '.') }}
CARTAO CREDITO{{ number_format($total_nfe_credito + $total_nfce_credito, 2, ',', '.') }}
CARTAO DEBITO{{ number_format($total_nfe_debito + $total_nfce_debito, 2, ',', '.') }}
PRAZO (Crédito Loja){{ number_format($total_nfe_prazo + $total_nfce_prazo, 2, ',', '.') }}
OUTROS{{ number_format($total_nfe_outros + $total_nfce_outros, 2, ',', '.') }}
TOTAL{{ number_format($total_nfe + $total_nfce, 2, ',', '.') }}

@endif @if(isset($vendasNfe) && isset($vendasNfce) && count($vendasNfe) == 0 && count($vendasNfce) == 0)

Nenhum movimento encontrado

@endif @if(isset($vendasNfe) && count($vendasNfe) > 0 || isset($vendasNfce) && count($vendasNfce) > 0 )
@if(isset($dataInicial) && isset($dataFinal)) print Imprimir @endif




@endif
@endsection