@extends('layouts.portal') @php $exp = $quote->isExpired(); $status = $quote->status; $shown = $exp ? 'expired' : ($status === 'converted' ? 'accepted' : $status); $canEdit = ! in_array($status, ['converted', 'accepted'], true); $open = in_array($status, ['sent', 'viewed'], true); $isDraft = $status === 'draft'; @endphp @section('title', 'Quotation '.$quote->number) @section('subtitle', $quote->customer_name.($quote->company ? ' · '.$quote->company : '').' · '.money2($quote->total)) @section('actions') All quotations Download PDF @endsection @section('content')
@if($exp)
This quotation expired on {{ $quote->valid_until->format('d M Y') }}. The customer can no longer accept it online. Edit it to extend the validity date, then re-send.
@endif @if($status === 'declined')
Declined{{ $quote->declined_at ? ' on '.$quote->declined_at->format('d M Y') : '' }}. Duplicate it to send a revised proposal.
@endif @if($status === 'converted' && $quote->invoice)
Accepted{{ $quote->accepted_at ? ' on '.$quote->accepted_at->format('d M Y') : '' }}. Invoice {{ $quote->invoice->number }} was raised and emailed to the customer.
@endif @include('admin.billing._document', ['doc' => $quote, 'kind' => 'quote'])
@if($open) @endif @endsection