@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.view_invoice')) @push('head') @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') }}

{{ ctrans('texts.invoice_still_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]) @endif
@else

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

@endif @if($invoice->documents->count() > 0)

{{ ctrans('texts.attachments') }}:

@foreach($invoice->documents as $document) @endforeach
@endif
{{ ctrans('texts.page') }}: {{ strtolower(ctrans('texts.of')) }}
100%
@include('portal.ninja2020.invoices.includes.terms', ['entities' => [$invoice], 'entity_type' => ctrans('texts.invoice')]) @include('portal.ninja2020.invoices.includes.signature') @endsection @section('footer') @endsection