@extends('layouts.app') @section('title', 'Presupuestos') @section('content')

Presupuestos

Gestión y seguimiento de presupuestos y cotizaciones

Nuevo Presupuesto
Total Presupuestos
{{ $stats['total_quotations'] }}
Borradores
{{ $stats['draft_quotations'] }}
Enviados
{{ $stats['sent_quotations'] }}
Aceptados
{{ $stats['accepted_quotations'] }}
Listado de Presupuestos
@forelse($quotations as $quotation) @empty @endforelse
N° Presupuesto Cliente Vendedor Fecha Válido Hasta Total Estado Acciones
{{ $quotation->quotation_number }} @if($quotation->client)
{{ Str::limit($quotation->client->business_name, 30) }}
@if($quotation->client->contact_person) {{ Str::limit($quotation->client->contact_person, 25) }} @endif
@else N/A @endif
@if($quotation->salesman) {{ $quotation->salesman->first_name }} {{ $quotation->salesman->last_name }} @else N/A @endif {{ $quotation->quotation_date ? $quotation->quotation_date->format('d/m/Y') : 'N/A' }} @if($quotation->valid_until) {{ $quotation->valid_until->format('d/m/Y') }} @else N/A @endif ${{ number_format($quotation->total_amount, 2) }} @php $statusConfig = [ 'draft' => ['class' => 'secondary', 'icon' => 'edit', 'label' => 'Borrador'], 'sent' => ['class' => 'primary', 'icon' => 'paper-plane', 'label' => 'Enviado'], 'accepted' => ['class' => 'success', 'icon' => 'check-circle', 'label' => 'Aceptado'], 'rejected' => ['class' => 'danger', 'icon' => 'times-circle', 'label' => 'Rechazado'], 'expired' => ['class' => 'warning', 'icon' => 'clock', 'label' => 'Expirado'], 'converted' => ['class' => 'info', 'icon' => 'exchange-alt', 'label' => 'Convertido'] ]; $status = $statusConfig[$quotation->status] ?? ['class' => 'secondary', 'icon' => 'circle', 'label' => ucfirst($quotation->status)]; @endphp {{ $status['label'] }}
@if($quotation->status === 'accepted') @endif @if($quotation->status === 'draft')
@csrf @method('DELETE')
@endif
No hay presupuestos registrados

Comienza creando tu primer presupuesto.

Crear Primer Presupuesto
@if($quotations->hasPages()) @endif
@push('styles') @endpush @endsection