@extends('layouts.portal') @section('title', 'Quotations') @section('subtitle', 'Proposals for individual learners and corporate training. Send a PDF plus an online accept link, then convert to an invoice in one click.') @section('actions') New quotation@endsection @section('content') @php $st = $filters['status'] ?? null; $tabs = ['' => 'All', 'draft' => 'Draft', 'sent' => 'Sent', 'viewed' => 'Viewed', 'converted' => 'Accepted', 'declined' => 'Declined', 'expired' => 'Expired']; @endphp
Awaiting response{{ money($kpi['open_value']) }}{{ $kpi['open_count'] }} open quotation{{ $kpi['open_count'] === 1 ? '' : 's' }}
Accepted & invoiced{{ money($kpi['won_value']) }}{{ $kpi['won_count'] }} converted to invoice
Drafts{{ $kpi['drafts'] }}not yet sent to a customer
Expired{{ $kpi['expired'] }}validity date has passed
@forelse($quotes as $q) @php $exp = $q->isExpired(); @endphp @empty @endforelse
QuotationCustomerTotalValid untilStatusActions
{{ $q->number }}{{ $q->title ?: $q->created_at->format('d M Y') }} {{ $q->customer_name }}@if($q->company){{ $q->company }}@endif{{ $q->customer_email }} {{ money2($q->total) }} {{ $q->valid_until?->format('d M Y') ?? '—' }} @if($q->status === 'converted' && $q->invoice_id)Invoice raised@endif
@if(! in_array($q->status, ['converted', 'accepted'], true))@endif @if(! in_array($q->status, ['converted', 'declined'], true))
@csrf
@endif
New quotation
{{ $quotes->links() }} @endsection