{{-- New-Unity ERP | Modules/Sales/Resources/Views/quotes/show.blade.php | v1.0 | 15/06/2026 --}} {{-- v1.0 — Vista de solo lectura de cotización. --}} @extends('layouts.vertical') @section('content')
{{-- Header --}}

{{ __('quotes.quote') }} COT-{{ $quote->fol }}

@if($quote->status !== 'approved') {{ __('quotes.edit_short') }} @else @endif {{ __('quotes.back') }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('info'))
{{ session('info') }}
@endif @if($quote->status === 'approved')
{{ __('quotes.read_only') }} — {{ __('quotes.readonly_show_prefix') }} {{ $quote->salesOrder?->folDisplay() }} . {{ __('quotes.readonly_show_suffix') }}
@endif {{-- ── Customer Information ── --}}
{{ __('quotes.customer_information') }}
{{ $quote->statusLabel() }}
{{ __('quotes.customer') }} {{ $quote->customer_name }}
{{ __('quotes.rfc_taxid') }} {{ $quote->customer_rfc ?? '—' }}
{{ __('quotes.customer_hash') }} {{ $quote->customer_number ?? '—' }}
{{ __('quotes.address') }} {{ $quote->customer_address ?? '—' }}
{{ __('quotes.quote_number') }} COT-{{ $quote->fol }}
{{ __('quotes.part_hash') }} {{ $quote->part_number ?: '—' }}
{{ __('quotes.date') }} {{ $quote->created_at->format('d-m-Y') }}
{{ __('quotes.expiration') }} {{ $quote->expiration_date?->format('d-m-Y') ?? '—' }}
{{ __('quotes.contact') }} {{ $quote->customer_contact_name ?? '—' }}
{{-- ── Products ── --}}
{{ __('quotes.products') }}
@forelse($quote->products as $product) @empty @endforelse
{{ __('quotes.group_col') }} {{ __('quotes.unit_label') }} {{ __('quotes.part_hash') }} {{ __('quotes.qty') }} {{ __('quotes.tax_code_col') }} {{ __('quotes.description') }} {{ __('quotes.unit_price') }} {{ __('quotes.total') }}
{{ $product->group_code ?? '—' }} {{ $product->unity ?? '—' }} {{ $product->sku ?? $product->product_id }} {{ $product->quantity }} {{ $product->tax_code ?? '—' }} {{ $product->product_name }} ${{ number_format($product->sales_price, 2) }} ${{ number_format($product->amount, 2) }}
{{ __('quotes.no_products_short') }}
{{-- Notes --}} @if($quote->notes)
{{ __('quotes.notes') }}

{{ $quote->notes }}

@endif
{{-- ── Totals ── --}}
{{ __('quotes.currency') }} {{ $quote->currency }}
{{ __('quotes.exchange_rate_label') }} {{ $quote->currency_to_mxn }}
{{ __('quotes.subtotal_label') }} ${{ number_format($quote->subtotal, 2) }}
{{ __('quotes.discount') }} ({{ $quote->discount_perc }}%) ${{ number_format($quote->discount, 2) }}
{{ __('quotes.vat') }} ({{ $quote->tax_perc }}%) ${{ number_format($quote->tax, 2) }}
{{ __('quotes.total') }} ${{ number_format($quote->total, 2) }}
{{-- ── Actions ── --}}
{{-- Cambiar estatus --}}
@csrf @method('PATCH')
{{-- Convert to Sales Order --}} @if(!in_array($quote->status, ['cancelled']))
@csrf
@endif {{ __('quotes.edit_quote') }}
@csrf @method('DELETE')
@endsection