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

Notas de Crédito

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($notes as $cn) @empty @endforelse
N.C. Fecha Comprobante afectado Motivo Total Estado Acciones
{{ $cn->full_number }} {{ $cn->created_at->format('d/m/Y H:i') }} {{ $cn->order?->full_number ?? '#' . $cn->order_id }} {{ $cn->reason_code }} {{ $cn->reason_description }} S/ {{ number_format($cn->total, 2) }} @php $color = $cn->sunat_status === 'ACCEPTED' ? 'success' : ($cn->sunat_status === 'OBSERVED' ? 'warning' : ($cn->sunat_status === 'PENDING' ? 'secondary' : 'danger')); @endphp {{ $cn->sunat_status }}
@if($cn->xml_path) @endif @if($cn->cdr_path) @endif @if(in_array($cn->sunat_status, ['PENDING','ERROR','REJECTED']))
@csrf
@endif
Sin notas de crédito.
@endsection