@php $addProductPermission = user()->permission('add_product'); @endphp @if (!in_array('clients', user_modules())) @lang('messages.enableClientModule') @lang('app.back') @else

@lang('app.invoice') @lang('app.details')


@method('PUT')
id == $invoice->currency_id) readonly @endif> @if (company()->currency->currency_code != $invoice->currency->currency_code) ( {{company()->currency->currency_code}} @lang('app.to') {{$invoice->currency->currency_code}} ) @endif

@if($linkInvoicePermission == 'all')
@endif @if ($invoice->amountPaid() == 0 && $invoice->status == 'paid')
@endif

{!! nl2br($invoice->client?->clientDetails?->address) !!}

@if ($invoice->client?->clientDetails?->shipping_address) {!! nl2br($invoice?->client?->clientDetails?->shipping_address) !!} @else @lang('app.addShippingAddress') @endif


@if(in_array('products', user_modules()) || in_array('purchase', user_modules()))
@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@endif
@foreach ($invoice->items as $key => $item)
@if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif
@lang('app.description') @lang("app.hsnSac")@lang('modules.invoices.qty') @lang("modules.invoices.unitPrice") @lang('modules.invoices.tax') @lang('modules.invoices.amount')
@if (!is_null($item->product_id) && $item->product_id != 0) {{ $item->unit->unit_type }} @else @endif
{{ number_format((float) $item->amount, 2, '.', '') }}
invoiceItemImage && $item->invoiceItemImage->external_link) data-show-remove="false" @endif />
@endforeach

@lang('modules.invoices.subTotal') {{ number_format((float) $invoice->sub_total, 2, '.', '') }}
@lang('modules.invoices.discount')
{{ number_format((float) $invoice->discount, 2, '.', '') }}
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') {{ number_format((float) $invoice->total, 2, '.', '') }}

{!! nl2br($invoiceSetting->invoice_terms) !!}

@if ($paymentGateway->paypal_status == 'active') @endif @if ($paymentGateway->stripe_status == 'active') @endif @if ($paymentGateway->razorpay_status == 'active') @endif @if ($paymentGateway->paystack_status == 'active') @endif @if ($paymentGateway->mollie_status == 'active') @endif @if ($paymentGateway->payfast_status == 'active') @endif @if ($paymentGateway->authorize_status == 'active') @endif @if ($paymentGateway->square_status == 'active') @endif @if ($paymentGateway->flutterwave_status == 'active') @endif
@foreach ($methods as $method) @if($method->status == 'yes') @endif @endforeach
@lang('app.cancel')
@endif