@extends('layouts.admin') @section('title', 'Quote Details') @section('page_heading', 'Quote - ' . $quote->name) @section('page_actions') Back to Quotes @endsection @section('content')
Quote Details

{{ $quote->name }}

{{ $quote->business_name }}

{{ $quote->phone ?? '-' }}

@if ($quote->website) {{ $quote->website }} @else - @endif

{{ $quote->industry ?? '-' }}

@if ($quote->services) {{ implode(', ', $quote->services) }} @else - @endif

{{ $quote->word_count ?? '-' }}

{{ $quote->service_minutes ?? '-' }}

{{ $quote->budget ?? '-' }}

@if ($quote->amount) ${{ number_format((float) $quote->amount, 2) }} @else - @endif

{{ $quote->goal ?? '-' }}

{{ $quote->source ?? '-' }}

{{ $quote->details ?? '-' }}

{{ $quote->created_at?->format('M d, Y \a\t h:i A') ?? '-' }}

@if ($quote->invoice)
Linked Invoice

Invoice #:
{{ $quote->invoice->invoice_number ?? 'INV-PENDING' }}

Status:
@if ($quote->invoice->status === 'paid') Paid @else Unpaid @endif

Amount:
${{ number_format((float) $quote->invoice->amount, 2) }}

@endif
Quote Status

Current Status:
@if ($quote->status === 'pending') Pending @elseif ($quote->status === 'in-progress') In Progress @else Completed @endif

@if ($quote->invoice && $quote->invoice->status === 'paid')
@csrf
@else
@if (!$quote->invoice) Link this quote to a paid invoice to update the status. @else Invoice must be marked as Paid to update the status. @endif
@endif
Danger Zone

Delete this quote and all associated data permanently.

@csrf @method('DELETE')
Edit Quote
@endsection