{{-- {{ config('app.name') }} --}} @if ($logo == null) @else @endif

{{ @$company_name->field_value }}
{{ $company_city->field_value }} [{{ @$company_zip->field_value }}], {{ @$company_state->field_value }}
{{ @$company_address->field_value }}
{{ @$company_phone->field_value }}
{{ @$company_email->field_value }}
{{ Str::limit($invoice->invoice_title, 80) }}
@if (@$invoice->invoice_paid == 'yes') {{__('Invoice Paid')}} @if (@$invoice->payment_confirmed == 'no') {{__('Confirmation pending')}} @else {{__('Payment Confirmed')}} @endif
{{__('By')}} {{@$invoice->payment_mode->gateway_name}}
{{__('Time')}}: {{@$invoice->updated_at}}
{{__('Txn No.')}} {{@$invoice->txn_number}} @endif
{{__('Bill to')}}:
@if ($invoice->customer->company_name != null) {{@$invoice->customer->company_name}} {{@$invoice->customer->first_contact->first_name}} {{@$invoice->customer->first_contact->last_name}} {{@$invoice->customer->first_contact->title->name}} @else {{@$invoice->customer->first_contact->first_name}} {{@$invoice->customer->first_contact->last_name}} {{@$invoice->customer->first_contact->title->name}} @endif
{{ @$customer_address->address_line_1 }} {{ @$customer_address->address_line_2 }}
{{ @$customer_address->city_name }} {{ @$customer_address->state_name }}
{{ @$customer_address->phone }}
{{ @$customer_address->email }}

@foreach (json_decode($invoice->selected_products) as $product) @endforeach
{{__('Name')}} {{__('Price')}} {{__('Qty')}} {{__('Tax')}} {{__('Amount')}}
{{$product->name}} {{@$invoice->currency->symbol}} {{$product->price}} {{$product->quantity}} {{$product->tax_amount}} % {{@$invoice->currency->symbol}} {{$product->total_p_amount}}
{{__('Sub Total')}} {{@$invoice->currency->symbol}} {{@$invoice->sub_total}}
{{__('Discount')}} {{@$invoice->discount_type_selected}} tax {{@$invoice->discount_percentage}} % {{@$invoice->currency->symbol}} {{@$invoice->discount_value}}
{{__('Adjustments')}} {{@$invoice->currency->symbol}} {{@$invoice->adjustments}}
{{__('Total Amount')}} {{@$invoice->currency->symbol}} {{@$invoice->total_amount}}
{{-- invoice Products Table ends --}}

{{__('Due Date')}}: {{@$invoice->due_date}}

@if (@$invoice->termsandconditions != NULL || @$invoice->termsandconditions != '') Terms and conditions:
{{@$invoice->termsandconditions}}

@endif Note to customer:
@if (@$invoice->customer_notes != NULL || @$invoice->customer_notes != '') {{@$invoice->customer_notes}}

@endif {{__('Thanks')}},
{{ config('app.name') }}