@extends('layouts.app') @section('title', 'Devoluciones de Ventas') @section('content')
Gestión y seguimiento de devoluciones de ventas
| N° Devolución | Cliente | Factura | Fecha | Motivo | Total | Estado | Acciones |
|---|---|---|---|---|---|---|---|
| {{ $return->return_number }} |
@if($return->client)
{{ Str::limit($return->client->business_name, 30) }}
@if($return->client->contact_person)
{{ Str::limit($return->client->contact_person, 25) }}
@endif
|
@if($return->salesInvoice) {{ $return->salesInvoice->invoice_number }} @else N/A @endif | {{ $return->return_date ? $return->return_date->format('d/m/Y') : 'N/A' }} | {{ Str::limit($return->return_reason ?? 'N/A', 30) }} | ${{ number_format($return->total_amount ?? 0, 2) }} | @php $statusConfig = [ 'draft' => ['class' => 'secondary', 'icon' => 'edit', 'label' => 'Borrador'], 'pending' => ['class' => 'warning', 'icon' => 'clock', 'label' => 'Pendiente'], 'approved' => ['class' => 'success', 'icon' => 'check-circle', 'label' => 'Aprobada'], 'rejected' => ['class' => 'danger', 'icon' => 'times-circle', 'label' => 'Rechazada'], 'processed' => ['class' => 'info', 'icon' => 'check-double', 'label' => 'Procesada'] ]; $status = $statusConfig[$return->status] ?? ['class' => 'secondary', 'icon' => 'circle', 'label' => ucfirst($return->status)]; @endphp {{ $status['label'] }} | |
No hay devoluciones de ventas registradasComienza creando tu primera devolución de venta. Crear Primera Devolución |
|||||||