@extends('layouts.app') @section('titulo', 'Cotizaciones') @section('contenido')
Panel general

Cotizaciones

+ Nueva cotización
@include('partials.alertas')
Cotizaciones del mes
{{ $totalMes }}
Pendientes
{{ $conteos['pendiente'] ?? 0 }}
Aprobadas
{{ $conteos['aprobada'] ?? 0 }}
Rechazadas
{{ $conteos['rechazada'] ?? 0 }}

{{ $titulo }}

@forelse ($cotizaciones as $c) @empty @endforelse
FolioClienteFechaVendedorTotalEstadoFacturado
{{ $c->folio }} {{ $c->cliente->nombre }}RUC {{ $c->cliente->ruc ?: '—' }} {{ $c->fecha_emision->translatedFormat('d M Y') }} {{ $c->vendedor->nombre }} {{ \App\Support\Montos::formatear((float) $c->total, $c->moneda) }} {{ $c->etiquetaEstado() }} @if ($c->estado === 'aprobada')
@csrf @method('PATCH') facturado) onchange="this.form.submit()" title="Marcar como facturado" class="casilla-facturado">
@else — @endif
@if (in_array($c->estado, ['pendiente', 'enviada'], true))
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif @if ($c->esEditable()) ✎ @endif
@csrf
🖨
No se encontraron cotizaciones.
@include('partials.paginacion', ['paginador' => $paginador])
@include('partials.modal-cotizacion') @endsection @push('scripts') @endpush