From ba4fd3651454d4bea3ac37bc774eed6d66563c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 23 Sep 2024 17:12:29 +0200 Subject: [PATCH] show invoice in popup for new payment flow --- .../ninja2020/invoices/show_smooth.blade.php | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/resources/views/portal/ninja2020/invoices/show_smooth.blade.php b/resources/views/portal/ninja2020/invoices/show_smooth.blade.php index f7add35dd08f..1f9b65f69cd5 100644 --- a/resources/views/portal/ninja2020/invoices/show_smooth.blade.php +++ b/resources/views/portal/ninja2020/invoices/show_smooth.blade.php @@ -1,10 +1,30 @@ @extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.view_invoice')) -@push('head') -@endpush - @section('body') + @if(Route::is('client.invoice.show')) + + @livewire('pdf-slot', ['entity' => $invoice, 'invitation' => $invitation, 'db' => $invoice->company->db, 'with_close_button' => 'dialog#dialogPdf']) + + +
+
+
+
+
+

+ {{ ctrans('texts.invoice_number_placeholder', ['invoice' => $invoice->number])}} +

+
+
+ +
+
+
+
+
+ @endif @if($invoice->isPayable() && $client->getSetting('custom_message_unpaid_invoice')) @component('portal.ninja2020.components.message') @@ -19,11 +39,4 @@ @if($invoice->isPayable()) @livewire('flow2.invoice-pay', ['invoices' => $invoices, 'invitation_id' => $invitation->id, 'db' => $db, 'variables' => $variables]) @endif - -@endsection - -@section('footer') -@endsection - -@push('head') -@endpush +@endsection \ No newline at end of file