Quotations @can('quotations.create') + Smart Quotation Entry New Quotation @endcan @php $filtersActive = $numberFilter || $customerFilter || $warehouseFilter || $statusFilter || $totalFilter || $fromDate || $toDate; @endphp @if ($filtersActive) @endif
QuotationCustomerDateStatusTotal @forelse ($quotations as $quotation) @empty @endforelse
Warehouse
{{ $quotation->quotation_number }} {{ $quotation->customer->name }} {{ $quotation->warehouse->name }} {{ $quotation->quotation_date->format('d M Y') }} $quotation->status === 'draft', 'bg-green-50 text-green-700 dark:bg-green-500/10 dark:text-green-400' => $quotation->status === 'converted', 'bg-red-50 text-red-700 dark:bg-red-500/10 dark:text-red-400' => $quotation->status === 'cancelled', ])> {{ str($quotation->status)->title() }} @if ($quotation->status === 'draft' && $quotation->isExpired()) Expired @endif {{ number_format($quotation->total, 2) }}
@if ($filtersActive) @else @endif
@if ($quotations->isNotEmpty())
{{ $quotations->links() }}
@endif