@php $control = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500 placeholder:text-xs'; @endphp
{{ $record ? $record->title : __('Opportunities') }}

{{ $record ? __('Edit opportunity') : __('New opportunity') }}

{{ $record ? __('The stage, the owner and the originator are not changed here.') : __('It opens at Prospect. Title, organisation, source and a dated next action are required.') }}

{{-- The essentials --}} @include('livewire.crm.opportunities.partials.section-head', ['icon' => 'flag', 'title' => __('The opportunity')])
@if ($canAddOrganisation) {{ __('Add a new organisation') }} @endif
@if ($customer_id === '')

{{ __('Choose the organisation first.') }}

@elseif ($contacts->isEmpty())

{{ __('No contacts recorded at this organisation yet.') }}

@else
@foreach ($contacts as $contact) @endforeach

{{ __('The first one ticked is the primary contact.') }}

@endif

{{ __('Leave this blank when it is not known. It is never saved as zero.') }}

@if ($picksPeople)

{{ __('Set once. It cannot be changed later.') }}

@elseif ($record)
{{ __('Owner: :owner. Originator: :originator.', [ 'owner' => $record->owner?->name ?? __('No owner'), 'originator' => $record->originator?->name ?? __('Not recorded'), ]) }}
@endif
{{-- Requirement --}} @include('livewire.crm.opportunities.partials.section-head', ['icon' => 'document-text', 'title' => __('Requirement')])

{{ __('For anything that is not in the catalogue. Catalogue items go in the lines below.') }}

{{-- Catalogue lines. The free-text Products field above stays. --}} @include('livewire.crm.opportunities.partials.section-head', ['icon' => 'cube', 'title' => __('Catalogue lines')]) @include('livewire.crm.opportunities.partials.product-lines', [ 'canEdit' => true, 'showEstimateButton' => false, 'showSave' => false, ]) {{-- Buying process --}} @include('livewire.crm.opportunities.partials.section-head', ['icon' => 'building-office', 'title' => __('Buying process')])
{{ __('Cancel') }} {{ $record ? __('Save') : __('Open opportunity') }} {{ __('Saving…') }}