@extends('crm.layouts.app') @section('styles') @endsection @section('content')
{{@$invoice->invoice_date}} @if (@$invoice->invoice_paid == 'no') Unpaid @else Download @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 }}
{{$invoice->prefix}} {{ @$invoice->invoice_number }} {{__('Issued at:')}} {{-- {net_term_label} {due_date_label} {po_number_label} --}}
{{$invoice->created_at}} {{-- {net_term} {due_date} {po_number} --}}
{{ 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}} @if (@$invoice->txn_receipt != null)
{{__('Receipt')}} @endif @else {{--

Unpaid

--}} {{-- Pay Now --}}
@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 }}
{{-- Invoice Data starts --}} {{-- invoice Products Table starts --}} @foreach (json_decode($invoice->selected_products) as $product) @endforeach
{{__('Product/Item')}} {{__('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}} {{@$invoice->discount_percentage}} % {{@$invoice->currency->symbol}} {{@$invoice->discount_total}}
{{__('Adjustments')}} {{@$invoice->currency->symbol}} {{@$invoice->adjustments}}
{{__('Total Amount')}} {{@$invoice->currency->symbol}} {{@$invoice->total_amount}}
{{-- Payment section starts here --}} @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}} @if (@$invoice->txn_receipt != null)
{{__('Receipt')}} @endif @else Unpaid {{-- {{__('Pay through: ')}}
Cash/Cheque
@csrf
--}} @endif {{-- Payment section ends here --}}
{{-- invoice Products Table ends --}}

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

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

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

@endif
{{-- Invoice data ends --}}
{{-- SECTION modal Starts Here --}} {{-- !SECTION modal ends here --}} @endsection @section('scripts') @include('client.invoice.index_js') @endsection