{{-- A BinduHost order's invoice is the last step of buying it, so it is shown in the BinduHost client area under the same steps; any other invoice keeps the portal it has always had. --}}
@if ($binduhostOrder ?? null) @endif
@if ($binduhostOrder ?? null) Order {{ $binduhostOrder->order_number }} @else Back to invoices @endif

{{ $invoice->invoice_number }}

{{ $invoice->billingOwnerName() }} · {{ strtoupper($invoice->status->value) }}

{{-- The BinduHost layout already shows a success message and the first error above the page; saying them twice would be noise. --}} @if (session('success') && ! ($binduhostOrder ?? null))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @unless ($binduhostOrder ?? null) @error('shurjopay')
{{ $message }}
@enderror @endunless

{{ number_format($invoice->total, 2) }} {{ $invoice->currency }}

Due {{ $invoice->due_date?->toDateString() ?? '-' }}

@if (($canPayOnline ?? false) && ! $invoice->isPaid())

Pay Now

Pay {{ number_format($invoice->total, 2) }} {{ $invoice->currency }} securely through ShurjoPay. You will be taken to ShurjoPay to complete the payment.

@csrf {{-- ShurjoPay refuses a payer without a phone, an address and a city. Only what the profile lacks is asked for, and the answer is kept on the profile. --}} @if (($missingPayerDetails ?? []) !== []) @php $payerFields = [ 'phone' => ['label' => 'Mobile number', 'type' => 'tel', 'max' => 50, 'autocomplete' => 'tel'], 'address' => ['label' => 'Address', 'type' => 'text', 'max' => 255, 'autocomplete' => 'street-address'], 'city' => ['label' => 'City', 'type' => 'text', 'max' => 100, 'autocomplete' => 'address-level2'], ]; @endphp

ShurjoPay needs these before it can take your payment. They will be saved to your profile.

@foreach ($missingPayerDetails as $field)
@error($field)

{{ $message }}

@enderror
@endforeach @endif
@endif {{-- A cancelled invoice is not a debt, so it is not offered for payment. --}} @if (! $invoice->isPaid() && ! $invoice->isCancelled())

Pay by Bank

Submit your bank transaction reference for administrator review.

@csrf
@error('transaction_reference')

{{ $message }}

@enderror
@endif

Payments

    @forelse($invoice->payments as $payment)
  • {{ $payment->transaction_reference }} · {{ number_format($payment->amount, 2) }} {{ $payment->currency }} · {{ strtoupper($payment->status->value) }}
  • @empty
  • No payments recorded.
  • @endforelse