@extends('layouts.app', ['title' => $proposal->title]) @section('content') @php($locked = in_array($proposal->status, ['approved', 'converted'], true)) @php($blocks = old('blocks', $proposal->blocks ?? []))

{{ $proposal->title }} {{ \App\Models\Proposal::STATUSES[$proposal->status] }}

{{ $proposal->number }} · {{ money_format_short($proposal->total, $proposal->currency) }} incl. GST @if ($proposal->view_count) · viewed {{ $proposal->view_count }} {{ \Illuminate\Support\Str::plural('time', $proposal->view_count) }}@endif @if ($proposal->signed_at) · signed by {{ $proposal->signed_name }} on {{ $proposal->signed_at->timezone($currentAccount->timezone)->format('d M Y, h:i A') }} ({{ $proposal->signed_ip }})@endif

@if ($proposal->isPublic()) Open link@endif
@csrf
@if ($proposal->status === 'built' && ! $proposal->is_template)
@csrf
@endif @if (! $proposal->is_template && ! in_array($proposal->status, ['approved', 'converted', 'declined', 'void'], true)) @endif @if ($proposal->status === 'approved')
@csrf
@endif
@if ($locked)
This proposal is signed and can no longer be edited. Duplicate it to make changes.
@endif @if ($proposal->status === 'declined')
Declined{{ $proposal->decline_reason ? ': '.$proposal->decline_reason : '' }}
@endif
@csrf @method('PUT')
@foreach ($blocks as $i => $block) @include('sales.proposals._block', ['i' => $i, 'block' => $block]) @endforeach
@error('blocks')
{{ $message }}
@enderror
Details
Marked won when you convert the signed proposal.
is_template))>
Subtotal{{ money_format_short($proposal->subtotal, $proposal->currency) }}
GST{{ money_format_short($proposal->tax_total, $proposal->currency) }}
Total{{ money_format_short($proposal->total, $proposal->currency) }}
Totals update when you save.
@unless ($locked)@endunless
@if (! in_array($proposal->status, ['void', 'converted'], true) && ! $proposal->is_template)
@csrf
@endif
@csrf @method('DELETE')
@endsection @push('scripts') @endpush