@if(!empty($attributes))
@props(['payment', 'payable' => false])
@endif
{!! $payment->name !!}
@if(!empty($payment->description))
{!! $payment->description !!}
@endif
@if(!empty($payment->totalRaw()))
Due date
{!! $payment->getDue() !!}
@endif
Price
{!! $payment->price() !!}
VAT (included)
{!! $payment->vat() !!}
@if(!empty($payment->discountRaw()))
@foreach($payment->offers as $offer)
{!! $offer->getExplanationFormatted() !!}
@endforeach
Discount
-{!! $payment->discount() !!}
Total
{!! $payment->total() !!}
@endif
@if($payable)
@endif
@if(!empty($payment->getStripePayment()->last_payment_error))
There was a problem processing payment.
@if(!empty($payment->getStripePayment()->last_payment_error->message))
{!! $payment->getStripePayment()->last_payment_error->message !!}
@endif
@endif
@if($payment->state() != 0)
@if($payment->state() == 1)
@elseif($payment->state() == 2 || $payment->state() == 7)
@else
@endif
{!! $payment->stateLong() !!}
@endif
@if(!empty($payment->getStripePayment()->last_payment_error))
@if(!empty($mandate))
@if($mandate->status == 'active')
{!! Form::open(['route' => 'confirm_payment','method' => 'post']) !!}
{!! Form::token() !!}
{!! Form::hidden('payment_id', $payment->id) !!}
Retry payment
{!! Form::close() !!}
@elseif($mandate->status == 'pending')
Payment will be taken when your payment method completes processing
@elseif($mandate->status == 'inactive')
There is a problem with your payment method, please resolve it at the top of this page.
@endif
@endif
@endif
@if(auth()->user()->isPermitted("super") && false)
Debugging info
@php
dump($payment);
@endphp
@endif