@extends('layouts.app') @section('title', 'Export Quotations') @push('styles') @endpush @section('breadcrumbs') @endsection @section('content')

Export Quotations

Manage export quotations and proposals

New Quotation
@php $stats = [ ['label' => 'Total', 'count' => $stats['total'] ?? 0, 'icon' => 'bi-file-earmark-text', 'color' => 'primary'], ['label' => 'Draft', 'count' => $stats['draft'] ?? 0, 'icon' => 'bi-pencil-square', 'color' => 'secondary'], ['label' => 'Sent', 'count' => $stats['sent'] ?? 0, 'icon' => 'bi-send', 'color' => 'info'], ['label' => 'Accepted', 'count' => $stats['accepted'] ?? 0, 'icon' => 'bi-check-circle', 'color' => 'success'], ['label' => 'Rejected', 'count' => $stats['rejected'] ?? 0, 'icon' => 'bi-x-circle', 'color' => 'danger'], ]; @endphp @foreach($stats as $stat)

{{ $stat['count'] }}

{{ $stat['label'] }}
@endforeach
@forelse($quotations as $quotation) @empty @endforelse
Quotation # Date Inquiry # Customer Commodity Amount Status Actions
{{ $quotation->quotation_number }} {{ $quotation->created_at->format('d M Y') }} {{ $quotation->inquiry->inquiry_number ?? '' }} {{ $quotation->customer->name ?? 'N/A' }} {{ $quotation->commodity->name ?? 'N/A' }} {{ number_format($quotation->total_amount, 2) }} {{ $quotation->currency }} @php $statusMap = [ 'draft' => 'bg-secondary-subtle text-secondary', 'sent' => 'bg-primary-subtle text-primary', 'accepted' => 'bg-success-subtle text-success', 'rejected' => 'bg-danger-subtle text-danger', 'expired' => 'bg-warning-subtle text-warning', ]; @endphp {{ ucfirst($quotation->status) }}

No quotations found

@endsection @push('scripts') @endpush