@php $tabMeta = [ 'working' => ['label' => __('In progress'), 'icon' => 'pencil-square'], 'review' => ['label' => __('Waiting for review'), 'icon' => 'shield-check'], 'submitted' => ['label' => __('Submitted'), 'icon' => 'paper-airplane'], 'closed' => ['label' => __('Answered'), 'icon' => 'archive-box'], 'all' => ['label' => __('All'), 'icon' => 'queue-list'], ]; $statusColors = \App\Livewire\Crm\Proposals\Show::STATUS_COLORS; $control = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; @endphp
@if ($canCreate) {{ __('New proposal') }} @endif
@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach
@foreach ($tabMeta as $key => $meta) @endforeach

{{ __('Proposals') }}

{{ __('Each proposal is shown by its latest version; earlier versions are on the proposal') }}

@forelse ($proposals as $proposal) @empty @endforelse
{{ __('Proposal') }} {{ __('For') }} {{ __('Written by') }} {{ __('Quote') }} {{ __('Status') }} {{ __('Actions') }}
{{ $proposal->title }}

{{ __('Version :v', ['v' => $proposal->version]) }}@if ($proposal->customer) · {{ $proposal->customer->name }} @endif

@if ($proposal->opportunity) {{ __('Opportunity') }} {{ $proposal->opportunity->title }} @elseif ($proposal->partnership) {{ __('Partnership') }} {{ $proposal->partnership->name }} @else {{ __('The organisation') }} @endif {{ $proposal->author?->name ?? __('Not available') }} @if ($proposal->status === 'in_review' && $proposal->reviewer) {{ __('With :name', ['name' => $proposal->reviewer->name]) }} @endif {{ $proposal->quote?->quote_number ?? __('None linked') }} {{ __(\App\Models\Crm\Proposal::STATUSES[$proposal->status] ?? $proposal->status) }}
{{ __('PDF') }} @if ($canCreate) @endif {{ __('Open') }}
@if (trim($search) !== '') @elseif ($tab === 'review') @else @endif
@if ($proposals->hasPages())
{{ $proposals->links() }}
@endif
@if ($canCreate) {{ __('New proposal') }}
@if ($reusable->isNotEmpty())

{{ __('Its text and document link are copied into a new version 1 for you to adapt. The original is not touched.') }}

@endif

{{ __('Say what the proposal is for. Choose an opportunity for a sale, a partnership for a partner, or only an organisation.') }}

@include('livewire.crm.partnerships.partials.organisation-picker', [ 'field' => 'customer_id', 'label' => __('Organisation'), 'hint' => __('Taken from the opportunity when one is chosen.'), ])
{{ __('Cancel') }} {{ __('Start the draft') }} {{ __('Saving…') }}
@endif