@if($userLogo) @endif @if($userLogo===null) @endif
Date: {{ $date }}
@if ($invoiceNumber) Invoice #: {{ $invoiceNumber }} @endif

Invoice {{ $invoiceNumber ? '#' . $invoiceNumber : '' }}

Business Details:

{{ $userName }}
@if($userWebsite) Website : {{$userWebsite}}
@endif ID: {{ $ruc }}
{{ $userPhone }}
{{ $userEmail }}
Province: {{$userProvince}}
City: {{$userCity}}
Address: {{$userLine1}} {{$userLine2}}
Zip Code: {{$userZipCode}}

Customer Details:

{{ $clientName }}
ID: {{ $clientId }}
{{ $clientPhone }}
{{ $clientEmail }}
Province: {{$clientProvince}}
City: {{$clientCity}}
{{$clientLine1}}
{{$clientLine2}}
ZIP Code: {{ $clientZipCode }}

Items:

@foreach ($details as $item) @endforeach
# Item Name Price Quantity Total(base) Discount Total Without Tax Tax Total
{{ $loop->iteration }} {{ $item['item'] }} ${{ $item['price'] }} {{ $item['quantity'] }} ${{ $item['totalBase'] }} {{ $item['discount'] }}% (${{ $item['detailedDiscount'] }}) ${{ $item['totalWithDiscount'] }} {{ $item['tax'] }}% (${{ $item['detailedTax'] }}) ${{ $item['total'] }}
@if($notes)

Notes:

{{ $notes }}
@endif

Total:

@foreach ($details as $item) @endforeach @foreach ($details as $item) @endforeach
Total(base) ${{ $totalBase }}
Discount {{ $item['discount'] }}% of (${{ $item['totalBase'] }}) - ${{ $item['detailedDiscount'] }}
Subtotal ${{ $subTotal1 }}
Tax {{ $item['tax'] }}% of (${{ $item['totalBase'] }}) + ${{ $item['detailedTax'] }}
Grand Total ${{ $grandTotal }}
@if ($footNote)

{{ $footNote }}
@endif