diff --git a/resources/views/portal/ninja2020/payments/show.blade.php b/resources/views/portal/ninja2020/payments/show.blade.php index 093084da0e13..c6f27e1024f4 100644 --- a/resources/views/portal/ninja2020/payments/show.blade.php +++ b/resources/views/portal/ninja2020/payments/show.blade.php @@ -2,102 +2,112 @@ @section('meta_title', ctrans('texts.payment')) @section('body') -
-
-
-

- {{ ctrans('texts.payment') }} -

-

- {{ ctrans('texts.payment_details') }} -

-
-
-
- @if(!empty($payment->clientPaymentDate()) && !is_null($payment->clientPaymentDate())) -
-
- {{ ctrans('texts.payment_date') }} -
-
- {{ $payment->clientPaymentDate() }} -
-
- @endif +
+
+
+

+ {{ ctrans('texts.payment') }} +

+

+ {{ ctrans('texts.payment_details') }} +

+
+
+
+ @if(!empty($payment->clientPaymentDate()) && !is_null($payment->clientPaymentDate())) +
+
+ {{ ctrans('texts.payment_date') }} +
+
+ {{ $payment->clientPaymentDate() }} +
+
+ @endif - @if(!empty($payment->transaction_reference) && !is_null($payment->transaction_reference)) -
-
- {{ ctrans('texts.transaction_reference') }} -
-
+ @if(!empty($payment->transaction_reference) && !is_null($payment->transaction_reference)) +
+
+ {{ ctrans('texts.transaction_reference') }} +
+
{{ $payment->transaction_reference }} -
-
- @endif + +
+ @endif - @if(!empty(optional($payment->type)->name) && !is_null(optional($payment->type)->name)) -
-
- {{ ctrans('texts.method') }} -
-
- {{ optional($payment->type)->name }} -
-
- @endif - - @if(!empty($payment->formattedAmount()) && !is_null($payment->formattedAmount())) -
-
- {{ ctrans('texts.amount') }} -
-
- {{ $payment->formattedAmount() }} -
-
- @endif + @if(!empty(optional($payment->type)->name) && !is_null(optional($payment->type)->name)) +
+
+ {{ ctrans('texts.method') }} +
+
+ {{ optional($payment->type)->name }} +
+
+ @endif - @if(!empty($payment->status_id) && !is_null($payment->status_id)) -
-
- {{ ctrans('texts.status') }} -
-
- {!! \App\Models\Payment::badgeForStatus($payment->status_id) !!} -
-
- @endif -
+ @if(!empty($payment->formattedAmount()) && !is_null($payment->formattedAmount())) +
+
+ {{ ctrans('texts.amount') }} +
+
+ {{ $payment->formattedAmount() }} +
+
+ @endif + + @if(!empty($payment->status_id) && !is_null($payment->status_id)) +
+
+ {{ ctrans('texts.status') }} +
+
+ {!! \App\Models\Payment::badgeForStatus($payment->status_id) !!} +
+
+ +
+
+ {{ ctrans('texts.refunded') }} +
+
+ {{ \App\Utils\Number::formatMoney($payment->refunded, $payment->client) }} +
+
+ @endif + +
+
+
+
+

+ {{ ctrans('texts.invoices') }} +

+

+ {{ ctrans('texts.list_of_payment_invoices') }} +

+
+
+
+ @foreach($payment->invoices as $invoice) +
+
+ {{ ctrans('texts.invoice_number') }} +
+ +
+ @endforeach +
+
-
-
-

- {{ ctrans('texts.invoices') }} -

-

- {{ ctrans('texts.list_of_payment_invoices') }} -

-
-
-
- @foreach($payment->invoices as $invoice) -
-
- {{ ctrans('texts.invoice_number') }} -
- -
- @endforeach -
-
-
- -@endsection \ No newline at end of file +@endsection