@extends('layouts.app') @section('content')

Documento {{ strtoupper($documento->tipo) }} #{{ $documento->id }}

Status: {{ $documento->status }}
Chave: {{ $documento->chave_acesso ?? '—' }}
Protocolo: {{ $documento->protocolo ?? '—' }}
Referência: {{ $documento->referencia }}
Total: R$ {{ number_format($documento->valor_total,2,',','.') }}
IBS: R$ {{ number_format($documento->valor_ibs,2,',','.') }}
CBS: R$ {{ number_format($documento->valor_cbs,2,',','.') }}
IS: R$ {{ number_format($documento->valor_is,2,',','.') }}

Itens

@foreach($documento->itens as $it)@endforeach
DescriçãoNCMCFOPQtdValorIBSCBS
{{ $it->descricao }}{{ $it->ncm }}{{ $it->cfop }}{{ $it->quantidade }}R$ {{ number_format($it->valor_total,2,',','.') }}R$ {{ number_format($it->valor_ibs,2,',','.') }}R$ {{ number_format($it->valor_cbs,2,',','.') }}
@if($documento->focus_response)
Resposta SEFAZ (Focus NFe)
{{ json_encode($documento->focus_response, JSON_PRETTY_PRINT) }}
@endif @endsection