Date: {{ $invoice->date->formatLocalized('%A %d %B %Y') }}
@if ($invoice->number)
Invoice #: {{strval($invoice->number) }}
@endif

Business Details:

@if(config('contact_data') != "") @php $contact_data = contact_data(config('contact_data')); @endphp

{{env('APP_NAME')}}

@if($contact_data["primary_address"]["status"] == 1) Address: {{$contact_data["primary_address"]["value"]}}
@endif @if($contact_data["primary_phone"]["status"] == 1) {{--{{dd($contact_data["primary_phone"]["value"])}}--}} Contact No.: {{ $contact_data["primary_phone"]["value"]}}
@endif @if($contact_data["primary_email"]["status"] == 1) Email : {{$contact_data["primary_email"]["value"]}}
@endif @else No business details
@endif

Customer Details:

{!! $invoice->customer_details->count() == 0 ? 'No customer details
' : '' !!}

{{ $invoice->customer_details->get('name') }}

Email : {{ $invoice->customer_details->get('email') }}

Items:

@foreach ($invoice->items as $key=>$item) @php $key++ @endphp @endforeach
# ID Item Name Total
{{$key}} {{ $item->get('id') }} {{ $item->get('name') }} {{ $item->get('totalPrice') }} {{ $invoice->formatCurrency()->symbol }}
{{--
--}} {{--

Total: {{ $invoice->totalPriceFormatted() }} {{ $invoice->formatCurrency()->symbol }}

--}} {{--
--}}

Total:

@if($invoice->discount != null) @endif @if($invoice->taxData != null) @foreach($invoice->taxData as $tax) @endforeach @endif
Subtotal {{ $invoice->subTotalPriceFormatted() }} {{ $invoice->formatCurrency()->symbol }}
- Discount {{$invoice->discount }} {{ $invoice->formatCurrency()->symbol }}
+ {{$tax['name']}} {{$tax['amount'] }} {{ $invoice->formatCurrency()->symbol }}
TOTAL {{ $invoice->total }} {{ $invoice->formatCurrency()->symbol }}
@if ($invoice->footnote)

{{ $invoice->footnote }}
@endif