@extends('layouts.app') @section('title', 'Presupuestos') @section('content')
Gestión y seguimiento de presupuestos y cotizaciones
| 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
|
@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'] }} | |