{{-- New-Unity ERP | Modules/Sales/Resources/Views/quotes/index.blade.php | v1.9 | 26/06/2026 --}} {{-- v1.9 — Deshabilita "Convert to SO" si está Aprobada o Cancelada. --}} {{-- v1.9b — Modal de advertencia al intentar borrar cotización con OV relacionada. --}} {{-- v1.8 — Agrega "Convert to Sales Order" en dropdown de acciones. --}} {{-- v1.7 — Fix estructura JS: openSendEmailModal global, btnSendEmail dentro de DOMContentLoaded. --}} {{-- v1.6 — Fix openSendEmailModal: usa data-attributes; función fuera de ready(). --}} {{-- v1.5 — Usa showNotification() de notifications.js en modal email. --}} {{-- v1.4 — Modal Enviar por Correo con Para/CC/CC2/CCO y envío AJAX. --}} {{-- v1.3 — Columna Product muestra primer producto + contador de adicionales. --}} {{-- v1.2 — Resalta fila recién creada/editada via ?highlight={id}. --}} {{-- v1.1 — Fix part_number display. --}} {{-- v1.0 — Index de Cotizaciones: filtros, tabla paginada, dropdown de acciones. --}} @extends('layouts.vertical') @section('content')
{{-- Page Header --}}

{{ __('quotes.quotes') }}

{{ __('quotes.sales_quotes') }}

{{ __('quotes.newquote') }}
{{-- Breadcrumbs --}} {{-- Flash messages --}} @if(session('success')) @endif @if(session('error')) @endif {{-- Filters --}}
{{ __('quotes.filters') }}
{{ __('quotes.rfc') }}
{{ __('quotes.company') }}
{{ __('quotes.quote_number') }}
{{ __('quotes.currency') }}
{{ __('quotes.status') }}
{{ __('quotes.period') }}
{{ __('quotes.from') }}
{{ __('quotes.to') }}
{{ __('quotes.clear') }}
{{-- Table --}}
@forelse($quotes as $quote) @empty @endforelse
{{ __('quotes.date') }} {{ __('quotes.quote_number') }} {{ __('quotes.part_hash') }} {{ __('quotes.customer') }} {{ __('quotes.col_product') }} {{ __('quotes.expiration') }} {{ __('quotes.currency') }} {{ __('quotes.total') }} {{ __('quotes.status') }} {{ __('quotes.actions') }}
{{ $quote->created_at->format('d-m-Y') }} {{ $quote->fol }} {{ $quote->part_number ?: '—' }}
{{ $quote->customer_name }}
@if($quote->customer_rfc)
{{ $quote->customer_rfc }}
@endif
@php $firstProduct = $quote->products->first(); $productCount = $quote->products->count(); @endphp @if($firstProduct) {{ Str::limit($firstProduct->product_name, 50) }} @if($productCount > 1) +{{ $productCount - 1 }} {{ __('quotes.more') }} @endif @else @endif @if($quote->expiration_date) {{ $quote->expiration_date->format('d-m-Y') }} @else — @endif {{ $quote->currency }} ${{ number_format($quote->total, 2) }} {{ $quote->statusLabel() }}
{{ __('quotes.no_quotes') }}
@if($quotes->hasPages())
{{ $quotes->withQueryString()->links() }}
@endif
{{-- Modal No se puede eliminar --}} {{-- Modal Convertir a Orden de Venta --}} {{-- Modal Enviar por Correo --}} @endsection @section('scripts') @endsection