| {{ __('Subtotal') }} | {{ number_format((float)$invoice->subtotal, 2) }} {{ $invoice->currency }} |
@if((float)$invoice->discount > 0)
| {{ __('Free allowance') }} | -{{ number_format((float)$invoice->discount, 2) }} |
@endif
| {{ __('VAT') }} ({{ rtrim(rtrim(number_format((float)$invoice->vat_rate,2),'0'),'.') }}%) | {{ number_format((float)$invoice->vat_amount, 2) }} |
| {{ __('Total') }} | {{ number_format((float)$invoice->total, 2) }} {{ $invoice->currency }} |
@if($invoice->reverse_charge)
{{ __('VAT reverse-charged โ Article 21 ยง2 of Belgian VAT Code (intra-EU B2B).') }}
@endif
@php
$payGateways = app(\App\Services\Payments\PaymentGatewayService::class);
$payStripeOn = $payGateways->isEnabled(\App\Models\Transaction::GATEWAY_STRIPE);
$payPaypalOn = $payGateways->isEnabled(\App\Models\Transaction::GATEWAY_PAYPAL);
$payable = $invoice->status === 'issued' && (float) $invoice->total > 0;
$stripeUrl = $payable && $payStripeOn ? route('invoices.pay', ['invoice' => $invoice, 'gateway' => 'stripe']) : null;
$paypalUrl = $payable && $payPaypalOn ? route('invoices.pay', ['invoice' => $invoice, 'gateway' => 'paypal']) : null;
@endphp
@if($stripeUrl || $paypalUrl)