@extends('default.layout') @section('content')
Lista de Vendas de Frente de Caixa    inboxCaixa NFC-e messageWHATSAPP insert_drive_fileRELATÓRIO cancelCANCELAR
@if(session()->has('message'))
{{ session()->get('message') }}
@endif
{{$info}}    


@foreach($vendas as $v) @if($v->estado == 'APROVADO') @elseif($v->estado == 'REJEITADO' || $v->estado == 'CANCELADO') @if($v->estado == 'REJEITADO') @else @endif @else @endif @endforeach
NFC-e Cliente Data emissão Data autorização Tipo de pagamento Estado Usuário Valor Ações
{{ $v->NFcNumero > 0 ? $v->NFcNumero : '--' }} {{ $v->cliente->razao_social ?? 'NAO IDENTIFICADO' }} {{ \Carbon\Carbon::parse($v->data_registro)->format('d/m/Y H:i:s')}} {{ \Carbon\Carbon::parse($v->updated_at)->format('d/m/Y H:i:s')}} @if($v->tipo_pagamento == '99') money @else {{$v->getTipoPagamento($v->tipo_pagamento)}} @endif {{ $v->estado }} {{ $v->usuario->nome }} {{ number_format($v->valor_total, 2, ',', '.') }} @if(($v->NFcNumero) && ($v->estado == 'APROVADO') || ($v->NFcNumero) && ($v->estado == 'REJEITADO')) print find_in_page @else print @endif print @if((!$v->NFcNumero) && ($v->estado == 'REJEITADO') || (!$v->NFcNumero) && ($v->estado == 'DISPONIVEL')) nfc @endif @if(($v->NFcNumero) && ($v->estado == 'REJEITADO')) nfc @endif @if($v->estado != 'CANCELADO') close @endif
TOTAL {{ number_format($total, 2, ',', '.') }}
@endsection