@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.view_invoice')) @push('head') @include('portal.ninja2020.components.no-cache') @endpush @section('header') @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif @endsection @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]) @livewire('pdf-slot', ['entity' => $invoice, 'invitation' => $invitation, 'db' => $invoice->company->db]) @endsection @section('footer') @include('portal.ninja2020.invoices.includes.required-fields') @include('portal.ninja2020.invoices.includes.signature') @include('portal.ninja2020.invoices.includes.terms', ['entities' => [$invoice], 'variables' => $variables, 'entity_type' => ctrans('texts.invoice')]) @endsection @push('head') @vite('resources/js/clients/invoices/payment.js') @endpush