@extends('layouts.app') @section('title', 'Retenciones de Ventas') @section('content')

Retenciones de Ventas

@forelse($retentions as $retention) @empty @endforelse
N° Retención Cliente Factura Fecha Tipo Porcentaje Monto Estado Acciones
{{ $retention->retention_number }}
{{ $retention->client->business_name ?? 'N/A' }} @if($retention->client->legal_name)
{{ $retention->client->legal_name }} @endif
@if($retention->salesInvoice) {{ $retention->salesInvoice->invoice_number }} @else N/A @endif {{ $retention->retention_date ? $retention->retention_date->format('d/m/Y') : 'N/A' }} {{ $retention->retention_type }} {{ $retention->retention_percentage }}% ${{ number_format($retention->retention_amount ?? 0, 2) }} @php $statusClasses = [ 'draft' => 'badge-secondary', 'pending' => 'badge-warning', 'approved' => 'badge-success', 'rejected' => 'badge-danger', 'processed' => 'badge-info' ]; @endphp {{ ucfirst($retention->status) }}
@if($retention->status === 'approved') @endif @if($retention->status === 'draft')
@csrf @method('DELETE')
@endif

No hay retenciones de ventas registradas
@if($retentions->hasPages())
{{ $retentions->links() }}
@endif
@endsection