@extends('layouts.portal') @php $editing = $quote->exists; $rows = old('items', $lines); $rows = is_array($rows) && count($rows) ? array_values($rows) : [['description' => '', 'quantity' => 1, 'unit_price' => '']]; @endphp @section('title', $editing ? 'Edit '.$quote->number : 'New quotation') @section('subtitle', $editing ? 'Changes update the PDF and the customer\'s online link. Re-send the email if the customer should see them.' : 'Prepare a proposal, save it as a draft, or email it to the customer straight away.') @section('actions') {{ $editing ? 'Back to quotation' : 'All quotations' }}@endsection @section('content')
@csrf @if($editing) @method('PUT') @endif @if(old('lead_id', $quote->lead_id))@endif

Customer

@if($quote->lead_id)From enquiry@endif
Picking a learner fills the fields below. If the email matches a learner account, the quotation is linked to it automatically.

Quotation details

@include('admin.billing._line-builder', ['rows' => $rows, 'courses' => $courses])

Notes & terms

@endsection @push('scripts')@endpush