@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_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($settings->client_portal_allow_under_payment || $settings->client_portal_allow_over_payment) @else @livewire('pay-now-dropdown', ['total' => $invoice->partial > 0 ? $invoice->partial : $invoice->balance, 'company' => $company]) @endif
@else

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

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