@extends('layouts.app') @php $accepted = in_array($quote->status, ['accepted', 'converted'], true); $declined = $quote->status === 'declined'; $open = $quote->isOpen(); $invoice = $accepted && $quote->invoice_id ? $quote->invoice : null; $statusKey = $expired ? 'expired' : ($accepted ? 'accepted' : $quote->status); $statusLabel = $open ? 'Awaiting your decision' : null; $notes = collect(preg_split('/\R/', (string) $quote->notes))->map(fn ($l) => trim($l))->filter(fn ($l) => $l !== '' && ! str_starts_with($l, 'Declined by customer'))->implode("\n"); $phone = setting('phone'); $wa = digits(setting('whatsapp')); $sentOn = $quote->sent_at ?? $quote->created_at; seo()->noindex()->title('Quotation '.$quote->number); @endphp @push('head')@endpush @section('content')
Quotation

{{ $quote->title ?: 'Training quotation' }}

@if($accepted)
Quotation accepted{{ $quote->accepted_at ? ' on '.$quote->accepted_at->format('d M Y') : '' }}. @if($invoice) Invoice {{ $invoice->number }} has been raised and emailed to {{ $quote->customer_email }}. View the invoice and payment details.@else Our team will send the invoice shortly.@endif
@elseif($declined)
You declined this quotation{{ $quote->declined_at ? ' on '.$quote->declined_at->format('d M Y') : '' }}. If your plans change, contact us and we will prepare a fresh quote.
@elseif($expired) @elseif($open)
Ready for your decision. This quotation is valid until {{ $quote->valid_until?->format('d M Y') }}@if($quote->valid_until) ()@endif. Accept it below and we will email your invoice straight away.
@endif
@include('docs._head', ['docname' => 'QUOTATION', 'docno' => $quote->number, 'statusKey' => $statusKey, 'statusLabel' => $statusLabel])
Prepared for {{ $quote->customer_name }} @if($quote->company)
{{ $quote->company }}
@endif
{{ $quote->customer_email }}@if($quote->customer_phone)
{{ $quote->customer_phone }}@endif
Quotation no.
{{ $quote->number }}
Date
{{ $sentOn->format('d M Y') }}
Valid until
{{ $quote->valid_until?->format('d M Y') ?? '—' }}
@if($quote->course)@endif
@if($quote->title)

{{ $quote->title }}

@endif
@include('docs._items', ['doc' => $quote, 'itemLabel' => 'Item'])
@if($notes || $quote->terms)
@if($notes)
Notes

{!! nl2br(e($notes)) !!}

@endif @if($quote->terms)
Terms & conditions

{!! nl2br(e($quote->terms)) !!}

@endif
@endif
This quotation is issued by {{ setting('legal_name', 'INFOTICS IT Academy') }}. Amounts are in {{ $quote->currency ?: config('infotics.currency', 'PKR') }}.
@if($open)

Accept this quotation

Accepting turns this quotation into an invoice for {{ money2($quote->total) }}. No payment is taken on this page — you choose how to pay once the invoice is issued.

@csrf @error('agree')
{{ $message }}
@enderror

Not the right fit?

Tell us if you would like changes, or decline if you are going another way.

@csrf
@endif
Questions about this quotation?We are available {{ config('infotics.brand.hours') }}.
@if($phone) {{ $phone }}@endif @if($wa) WhatsApp@endif Email
@endsection @push('scripts')@endpush