@if ( $invoice->status != 0 && $invoice->getDue() > 0 && (!empty($company_payment_setting) && ($company_payment_setting['is_bank_transfer_enabled'] == 'on' || $company_payment_setting['is_stripe_enabled'] == 'on' || $company_payment_setting['is_paypal_enabled'] == 'on' || $company_payment_setting['is_paystack_enabled'] == 'on' || $company_payment_setting['is_flutterwave_enabled'] == 'on' || $company_payment_setting['is_razorpay_enabled'] == 'on' || $company_payment_setting['is_mercado_enabled'] == 'on' || $company_payment_setting['is_paytm_enabled'] == 'on' || $company_payment_setting['is_mollie_enabled'] == 'on' || $company_payment_setting['is_paypal_enabled'] == 'on' || $company_payment_setting['is_skrill_enabled'] == 'on' || $company_payment_setting['is_coingate_enabled'] == 'on' || $company_payment_setting['is_paymentwall_enabled'] == 'on' || $company_payment_setting['is_toyyibpay_enabled'] == 'on' || $company_payment_setting['is_payfast_enabled'] == 'on' || $company_payment_setting['is_iyzipay_enabled'] == 'on' || $company_payment_setting['is_sspay_enabled'] == 'on' || $company_payment_setting['is_paytab_enabled'] == 'on' || $company_payment_setting['is_benefit_enabled'] == 'on' || $company_payment_setting['is_cashfree_enabled'] == 'on' || $company_payment_setting['is_aamarpay_enabled'] == 'on' || $company_payment_setting['is_yookassa_enabled'] == 'on' || $company_payment_setting['is_midtrans_enabled'] == 'on' || $company_payment_setting['is_nepalste_enabled'] == 'on' || $company_payment_setting['is_paiementpro_enabled'] == 'on' || $company_payment_setting['is_cinetpay_enabled'] == 'on' || $company_payment_setting['is_xendit_enabled'] == 'on' || $company_payment_setting['is_fedapay_enabled'] == 'on' || $company_payment_setting['is_payhere_enabled'] == 'on' || $company_payment_setting['tap_payment_is_on'] == 'on' || $company_payment_setting['authorizenet_payment_is_on'] == 'on'))) @endif

{{ __('Invoice') }}

{{ $user->invoiceNumberFormat($invoice->invoice_id) }}


{{ __('Issue Date') }} :
{{ Utility::dateFormat($settings, $invoice->issue_date) }}

{{ __('Due Date') }} :
{{ Utility::dateFormat($settings, $invoice->due_date) }}

@if (!empty($customer->billing_name))
{{ __('Billed To') }} :
{{ !empty($customer->billing_name) ? $customer->billing_name : '' }}
{{ !empty($customer->billing_phone) ? $customer->billing_phone : '' }}
{{ !empty($customer->billing_address) ? $customer->billing_address : '' }}
{{ !empty($customer->billing_zip) ? $customer->billing_zip : '' }}
{{ !empty($customer->billing_city) ? $customer->billing_city : '' . ', ' }} {{ !empty($customer->billing_state) ? $customer->billing_state : '', ', ' }} {{ !empty($customer->billing_country) ? $customer->billing_country : '' }}
@endif @if (\Utility::companyData($invoice->created_by, 'shipping_display') == 'on')
{{ __('Shipped To') }} :
{{ !empty($customer->shipping_name) ? $customer->shipping_name : '' }}
{{ !empty($customer->shipping_phone) ? $customer->shipping_phone : '' }}
{{ !empty($customer->shipping_address) ? $customer->shipping_address : '' }}
{{ !empty($customer->shipping_zip) ? $customer->shipping_zip : '' }}
{{ !empty($customer->shipping_city) ? $customer->shipping_city : '' . ', ' }} {{ !empty($customer->shipping_state) ? $customer->shipping_state : '' . ', ' }},{{ !empty($customer->shipping_country) ? $customer->shipping_country : '' }}
@endif
{!! DNS2D::getBarcodeHTML( route('invoice.link.copy', \Illuminate\Support\Facades\Crypt::encrypt($invoice->id)), 'QRCODE', 2, 2, ) !!}
{{ __('Status') }} :
@if ($invoice->status == 0) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 1) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 2) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 3) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 4) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @endif
@if (!empty($customFields) && count($invoice->customField) > 0) @foreach ($customFields as $field)
{{ $field->name }} :
{{ !empty($invoice->customField) ? $invoice->customField[$field->id] : '-' }}

@endforeach @endif
{{ __('Product Summary') }}
{{ __('All items here cannot be deleted.') }}
@php $totalQuantity = 0; $totalRate = 0; $totalTaxPrice = 0; $totalDiscount = 0; $taxesData = []; @endphp @foreach ($iteams as $key => $iteam) @php $productName = $iteam->product; $totalRate += $iteam->price; $totalQuantity += $iteam->quantity; $totalDiscount += $iteam->discount; @endphp @php $unitName = App\Models\ProductServiceUnit::find( $iteam->unit, ); @endphp @endforeach @if (!empty($taxesData)) @foreach ($taxesData as $taxName => $taxPrice) @endforeach @endif
# {{ __('Product') }} {{ __('Quantity') }} {{ __('Rate') }} {{ __('Discount') }} {{ __('Tax') }} {{ __('Description') }} {{ __('Price') }}
{{ __('after tax & discount') }}
{{ $key + 1 }}{{ !empty($productName) ? $productName->name : '' }}{{ $iteam->quantity }} {{ $unitName != null ? '(' . $unitName->name . ')' : '' }} {{ \App\Models\Utility::priceFormat($settings, $iteam->price) }} {{ \App\Models\Utility::priceFormat($settings, $iteam->discount) }} @if (!empty($iteam->tax)) @php $itemTaxes = []; $getTaxData = Utility::getTaxData(); if (!empty($iteam->tax)) { foreach ( explode(',', $iteam->tax) as $tax ) { $taxPrice = \Utility::taxRate( $getTaxData[$tax]['rate'], $iteam->price, $iteam->quantity, ); $totalTaxPrice += $taxPrice; $itemTax['name'] = $getTaxData[$tax]['name']; $itemTax['rate'] = $getTaxData[$tax]['rate'] . '%'; $itemTax[ 'price' ] = \App\Models\Utility::priceFormat( $settings, $taxPrice, ); $itemTaxes[] = $itemTax; if ( array_key_exists( $getTaxData[$tax]['name'], $taxesData, ) ) { $taxesData[ $getTaxData[$tax]['name'] ] = $taxesData[ $getTaxData[$tax]['name'] ] + $taxPrice; } else { $taxesData[ $getTaxData[$tax]['name'] ] = $taxPrice; } } $iteam->itemTax = $itemTaxes; } else { $iteam->itemTax = []; } @endphp @foreach ($iteam->itemTax as $tax) @endforeach
{{ $tax['name'] . ' (' . $tax['rate'] . '%)' }} {{ $tax['price'] }}
@else - @endif
{{ !empty($iteam->description) ? $iteam->description : '-' }} {{ Utility::priceFormat($settings, $iteam->price * $iteam->quantity - $iteam->discount + $totalTaxPrice) }}
{{ __('Total') }} {{ $totalQuantity }} {{ Utility::priceFormat($settings, $totalRate) }} {{ Utility::priceFormat($settings, $totalDiscount) }} {{ Utility::priceFormat($settings, $totalTaxPrice) }}
{{ __('Sub Total') }} {{ Utility::priceFormat($settings, $invoice->getSubTotal()) }}
{{ __('Discount') }} {{ Utility::priceFormat($settings, $invoice->getTotalDiscount()) }}
{{ $taxName }} {{ Utility::priceFormat($settings, $taxPrice) }}
{{ __('Total') }} {{ Utility::priceFormat($settings, $invoice->getTotal()) }}
{{ __('Paid') }} {{ Utility::priceFormat($settings, $invoice->getTotal() - $invoice->getDue() - $invoice->invoiceTotalCreditNote()) }}
{{ __('Credit Note') }} {{ Utility::priceFormat($settings, $invoice->invoiceTotalCreditNote()) }}
{{ __('Due') }} {{ Utility::priceFormat($settings, $invoice->getDue()) }}
{{ __('Receipt Summary') }}

@if ($user_plan->storage_limit <= $user->storage_limit) {{ __('Your plan storage limit is over , so you can not see customer uploaded payment receipt') }}
@endif
@php $path = \App\Models\Utility::get_file('uploads/order'); @endphp @if (!empty($invoice->payments) && $invoice->bankPayments) @foreach ($invoice->payments as $key => $payment) @if ($user_plan->storage_limit <= $user->storage_limit) @else @endif @endforeach @foreach ($invoice->bankPayments as $key => $bankPayment) @if ($user_plan->storage_limit <= $user->storage_limit) @else @endif @can('delete invoice product') @endcan @endforeach @else @endforelse
{{ __('Date') }} {{ __('Amount') }} {{ __('Payment Type') }} {{ __('Account') }} {{ __('Reference') }} {{ __('Description') }} {{ __('Receipt') }} {{ __('OrderId') }}
{{ Utility::dateFormat($settings, $payment->date) }} {{ Utility::priceFormat($settings, $payment->amount) }} {{ $payment->payment_type }} {{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '--' }} {{ !empty($payment->reference) ? $payment->reference : '--' }} {{ !empty($payment->description) ? $payment->description : '--' }} -- @if (!empty($payment->receipt)) {{ __('Receipt') }} @elseif(!empty($payment->add_receipt)) {{ __('Receipt') }} @else -- @endif {{ !empty($payment->order_id) ? $payment->order_id : '--' }}
{{ Utility::dateFormat($settings, $bankPayment->date) }} {{ Utility::priceFormat($settings, $bankPayment->amount) }} {{ __('Bank Transfer') }} - - - -- @if ($user_plan->storage_limit <= $user->storage_limit) @if (!empty($bankPayment->receipt)) {{ __('Receipt') }} @endif @else -- @endif {{ !empty($bankPayment->order_id) ? $bankPayment->order_id : '--' }} @if ($bankPayment->status == 'Pending') @endif
{!! Form::open([ 'method' => 'post', 'route' => ['invoice.payment.destroy', $invoice->id, $bankPayment->id], 'id' => 'delete-form-' . $bankPayment->id, ]) !!} {!! Form::close() !!}

{{ __('No Data Found') }}

@if ($invoice->getDue() > 0) @endif