@extends('layouts.admin') @section('title', 'Quotation ' . $quotation->quotation_number) @section('page-title', 'Quotation Details') @section('breadcrumbs') Quotations chevron_right {{ $quotation->quotation_number }} @endsection @section('header-actions')
edit Edit @if($quotation->canBeConverted())
@csrf
@endif
@endsection @section('content')

{{ $quotation->quotation_number }}

Issued {{ $quotation->issue_date->format('M d, Y') }} @if($quotation->expiry_date) · Valid until {{ $quotation->expiry_date->format('M d, Y') }} @endif

@if(isset($whatsappConfig) && $whatsappConfig && $whatsappConfig->is_active) @endif print Print download PDF
@if(isset($templateView) && view()->exists($templateView)) @php $templateContent = view($templateView, ['quotation' => $quotation])->render(); preg_match_all('/]*>(.*?)<\/style>/is', $templateContent, $styleMatches); $styles = !empty($styleMatches[1]) ? '' : ''; $bodyContent = $templateContent; if (preg_match('/]*>(.*?)<\/body>/is', $templateContent, $bodyMatches)) { $bodyContent = $bodyMatches[1]; } $bodyContent = preg_replace('/]*>(.*?)<\/script>/is', '', $bodyContent); @endphp {!! $styles !!}
{!! $bodyContent !!}
@else
Template not found.
@endif
{{-- Email --}} {{-- WhatsApp: public link (wa.me) --}} @if(isset($whatsappConfig) && $whatsappConfig && $whatsappConfig->is_active) {{-- WhatsApp Business API: PDF --}} @endif @php $canManualReminder = auth()->user()->hasPermission('send_manual_reminders') || auth()->user()->hasRole(\App\Enums\RoleEnum::SUPER_ADMIN->value); @endphp @if($canManualReminder)

Billing reminders

Recent emails queued or sent for this quotation.

@forelse($quotation->reminderLogs as $log) @empty @endforelse
Type To Status Sent
{{ str_replace('_', ' ', $log->reminder_type) }} {{ $log->recipient_email }} {{ $log->status }} {{ $log->sent_at?->format('M j, Y g:i A') ?? '—' }}
No reminder log entries yet.
@endif {{-- Success toast --}} @push('scripts') @endpush @endsection