@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.view_invoice')) @push('head') @include('portal.ninja2020.components.no-cache') @endpush @section('body') @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())
@csrf

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

@if($key) @endif
@if($settings->client_portal_allow_under_payment || $settings->client_portal_allow_over_payment) @else @livewire('pay-now-dropdown', ['total' => $invoice->getPayableAmount(), 'company' => $company]) @endif
@else

{{ ctrans('texts.invoice_number_placeholder', ['invoice' => $invoice->number])}} - {{ \App\Models\Invoice::stringStatus($invoice->status_id) }}

@if($key) @endif
@endif @include('portal.ninja2020.components.entity-documents', ['entity' => $invoice]) @include('portal.ninja2020.components.pdf-viewer', ['entity' => $invoice, 'invitation' => $invitation]) @include('portal.ninja2020.invoices.includes.terms', ['entities' => [$invoice], 'entity_type' => ctrans('texts.invoice')]) @include('portal.ninja2020.invoices.includes.signature') @endsection @section('footer') @endsection