@extends('layouts.app') @section('title', ($quote->status === 'paid' ? 'Invoice ' : 'Quote ') . $quote->quote_number . ' - Lektrik') @section('content')

{{ $quote->status === 'paid' ? 'Invoice' : 'Quote' }} {{ $quote->quote_number }}

Created {{ $quote->created_at->format('d M Y') }}

LEKTRIK

{{ $quote->status === 'paid' ? 'INVOICE' : 'QUOTE' }}

{{ $quote->quote_number }}

Client Information

{{ $quote->client->name }}

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

{{ $quote->client->email }}

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

{{ $quote->client->phone }}

@endif @if($quote->client->address)

{{ $quote->client->address }}

@endif

Quote Details

Date: {{ $quote->created_at->format('d M Y') }}
@if($quote->paid_date)
Paid Date: {{ $quote->paid_date->format('d M Y') }}
@endif
@foreach($quote->items as $item) @endforeach
Description Qty Unit Price Total
{{ $item->description }} {{ $item->quantity }} R{{ number_format($item->unit_price, 2) }} R{{ number_format($item->total_price, 2) }}
Subtotal: R{{ number_format($quote->subtotal, 2) }}
VAT (15%): R{{ number_format($quote->vat_amount, 2) }}
Total: R{{ number_format($quote->total, 2) }}
@if($quote->notes)

Notes

{{ $quote->notes }}

@endif
Back to Quotes @if($quote->status === 'pending') Mark as Paid @else
Payment Received
@endif
@endsection