@php $primary = $setting?->primary_color ?: '#124a61'; $accent = $setting?->accent_color ?: '#2e86ab'; $companyName = $setting?->company_name ?: $quote->team?->name; $symbol = $currencySymbol ?: ''; $code = $quote->currency_code ?: ''; $money = function ($value) use ($symbol, $code) { $formatted = number_format((float) $value, 2); return ($symbol !== '' ? $symbol . ' ' : ($code !== '' ? $code . ' ' : '')) . $formatted; }; $logoUrl = $setting?->logoSrc(); $statusColors = [ 'DRAFT' => ['bg' => '#f1f5f9', 'text' => '#475569'], 'SENT' => ['bg' => '#e0f2fe', 'text' => '#0369a1'], 'ACCEPTED' => ['bg' => '#d1fae5', 'text' => '#047857'], 'REJECTED' => ['bg' => '#ffe4e6', 'text' => '#be123c'], 'EXPIRED' => ['bg' => '#fef3c7', 'text' => '#b45309'], ]; $statusColor = $statusColors[$quote->status] ?? $statusColors['DRAFT']; @endphp
{{ $companyName }}
@if ($setting?->email){{ $setting->email }}
@endif @if ($setting?->phone){{ $setting->phone }}
@endif{{ __('Quote') }}
{{ $quote->quote_number }}
{{ $expired && $quote->status === 'SENT' ? __('EXPIRED') : $quote->status }}{{ __('Prepared For') }}
{{ $quote->customer?->name ?: '—' }}
{{ $quote->customer->address }}
@endif @if ($quote->customer?->email){{ $quote->customer->email }}
@endif @if ($quote->customer?->phone){{ $quote->customer->phone }}
@endif| {{ __('Description') }} | {{ __('Qty') }} | {{ __('Unit Price') }} | {{ __('Total') }} |
|---|---|---|---|
|
{{ $line->name }} @if ($line->description){!! nl2br(e($line->description)) !!} @endif |
{{ number_format((float) $line->qty, 2) }} | {{ $money($line->unit_price) }} | {{ $money($line->line_total) }} |
| {{ __('No items.') }} | |||
{{ __('Accepted by :name on :date. We will be in touch about the next steps.', [ 'name' => $quote->client_responded_name, 'date' => $quote->client_responded_at->format('M j, Y'), ]) }}
{{ __('You declined this quote') }}
{{ __('On :date. If that was a mistake, please get in touch.', ['date' => $quote->client_responded_at->format('M j, Y')]) }}
@if ($quote->decline_reason){{ $quote->decline_reason }}@endif
{{ __('This quote has expired') }}
{{ __('Prices move. Get in touch and we will gladly requote for you.') }}
{{ __('Happy with this?') }}
{{ __('Let us know either way. Accepting does not commit you to payment today.') }}
{{ __('Accept :total', ['total' => $money($quote->total)]) }}
{{ __('Type your name to confirm. This tells us to go ahead.') }}
@error('respondedName'){{ $message }}
@enderror{{ __('Not this time?') }}
{{ __('Telling us why costs you nothing and helps us quote better next time.') }}
@error('respondedName'){{ $message }}
@enderror @error('declineReason'){{ $message }}
@enderror{{ __('Notes') }}
{{ $quote->notes }}
{{ __('Banking Details') }} @if ($banking['accounts']->isNotEmpty()) · {{ $quote->currency_code }} @endif
{{ __('Terms & Conditions') }}
{{ __('Powered by') }} {{ $companyName }}