@extends('laravel-crm::layouts.document') @section('content')
{{ strtoupper(__('laravel-crm::lang.invoice')) }}@if($invoice->reference || ($invoice->xeroInvoice && $invoice->xeroInvoice->reference)) {{ ucfirst(__('laravel-crm::lang.reference')) }} {{ $invoice->xeroInvoice->reference ?? $invoice->reference }} |
@if($logo)
|
|
{{ ucfirst(__('laravel-crm::lang.to')) }} @if($invoice->organisation) {{ $invoice->organisation->name }} @endif @isset($invoice->person) {{ $invoice->person->name }} @endisset @if(isset($organisation_address)) @if($organisation_address->line1) {{ $organisation_address->line1 }} @endif @if($organisation_address->line2) {{ $organisation_address->line2 }} @endif @if($organisation_address->line3) {{ $organisation_address->line3 }} @endif @if($organisation_address->city || $organisation_address->state || $organisation_address->postcode) {{ $organisation_address->city }} {{ $organisation_address->state }} {{ $organisation_address->postcode }} @endif {{ $organisation_address->country }} @elseif($address) {{ $address->line1 }} @if($address->line2) {{ $address->line2 }} @endif @if($address->line3) {{ $address->line3 }} @endif {{ $address->city }} {{ $address->country }} @endif |
{{ ucfirst(__('laravel-crm::lang.from')) }} @if($contactDetails) {!! nl2br($contactDetails) !!} @else {{ $fromName }} @endif |
{{ ucfirst(__('laravel-crm::lang.description')) }}{!! nl2br($invoice->description) !!} |
| {{ ucfirst(__('laravel-crm::lang.item')) }} | {{ ucfirst(__('laravel-crm::lang.price')) }} | {{ ucfirst(__('laravel-crm::lang.quantity')) }} | {{ $taxName }} | {{ ucfirst(__('laravel-crm::lang.amount')) }} |
|---|---|---|---|---|
|
{{ $invoiceLine->product->name ?? null }}
@if($invoiceLine->comments)
{{ ucfirst(__('laravel-crm::lang.comments')) }}: {{ $invoiceLine->comments }} @endif |
{{ money($invoiceLine->price ?? null, $invoiceLine->currency) }} | {{ $invoiceLine->quantity }} | {{ money($invoiceLine->tax_amount ?? null, $invoiceLine->currency) }} | {{ money($invoiceLine->amount ?? null, $invoiceLine->currency) }} |
| {{ ucfirst(__('laravel-crm::lang.sub_total')) }} | {{ money($invoice->subtotal, $invoice->currency) }} | |||
| {{ ucfirst(__('laravel-crm::lang.discount')) }} | {{ money($invoice->discount, $invoice->currency) }} | |||
| {{ $taxName }} | {{ money($invoice->tax, $invoice->currency) }} | |||
| {{ ucfirst(__('laravel-crm::lang.adjustment')) }} | {{ money($invoice->adjustments, $invoice->currency) }} | |||
| {{ ucfirst(__('laravel-crm::lang.total')) }} | {{ money($invoice->total, $invoice->currency) }} |
{{ ucfirst(__('laravel-crm::lang.terms')) }}{!! nl2br($invoice->terms) !!} |