@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.view_invoice')) @section('body') @if(Route::is('client.invoice.show')) @livewire('pdf-slot', ['class' => get_class($invoice), 'entity_id' => $invoice->id, 'invitation_id' => $invitation->id ?? false, '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')
{{ $client->getSetting('custom_message_unpaid_invoice') }}
@endcomponent @elseif($invoice->status_id === 4 && $client->getSetting('custom_message_paid_invoice')) @component('portal.ninja2020.components.message')
{{ $client->getSetting('custom_message_paid_invoice') }}
@endcomponent @endif @if($invoice->isPayable()) @livewire('flow2.invoice-pay', ['invoices' => $invoices, 'invitation_id' => $invitation->id, 'db' => $db, 'variables' => $variables]) @endif @endsection