@extends('layouts.app') @section('title', 'Quotation ' . $quotation->quotation_number) @section('content')

Quotation {{ $quotation->quotation_number }}

Created on {{ $quotation->created_at->format('M d, Y') }}

Preview PDF @if ($quotation->canBeConvertedToInvoice()) Edit @endif Back

{{ $quotation->company->name }}

{{ $quotation->company->address }}

Quotation #: {{ $quotation->quotation_number }}

Date: {{ $quotation->quotation_date->format('M d, Y') }}

Valid Until: {{ $quotation->valid_until_date->format('M d, Y') }}

{{ ucfirst(str_replace('_', ' ', $quotation->status)) }} @if ($quotation->is_expired) Expired @endif

Quotation To:

{{ $quotation->client->contact_person_name }}

{{ $quotation->client->company_name }}

{{ $quotation->client->company_address }}

@if ($quotation->client->email)

{{ $quotation->client->email }}

@endif @if ($quotation->client->phone)

{{ $quotation->client->phone }}

@endif

Line Items

@foreach ($quotation->lineItems as $item) @endforeach
# Item Description Price UOM Qty Total
{{ $item->item_number }} {{ $item->item_name }} {{ $item->description }} ${{ number_format($item->price_per_unit, 2) }} {{ $item->uom }} {{ $item->quantity }} ${{ number_format($item->total, 2) }}
Grand Total: ${{ number_format($quotation->grand_total, 2) }}
@if ($quotation->notes || $quotation->terms_conditions)
@if ($quotation->notes)

Notes:

{{ $quotation->notes }}

@endif @if ($quotation->terms_conditions)

Terms & Conditions:

{{ $quotation->terms_conditions }}

@endif
@endif @if ($quotation->invoice->count() > 0)

Converted to Invoice

This quotation has been converted to invoice: {{ $quotation->invoice->first()->invoice_number }}

@endif

Quick Actions

@if ($quotation->canBeConvertedToInvoice())
@csrf
@endif
@csrf
@if ($quotation->canBeConvertedToInvoice())
@csrf @method('DELETE')
@endif
@endsection