@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.pay_now')) @push('head') @endpush @section('body')
@csrf
@livewire('pay-now-dropdown', ['total' => $total, 'company_id' => $company->id, 'db' => $company->db])
@foreach($invoices as $key => $invoice)

{{ ctrans('texts.invoice') }} (#{{ $invoice->number }})

@if(!empty($invoice->number) && !is_null($invoice->number))
{{ ctrans('texts.invoice_number') }}
{{ $invoice->number }}
@endif
@if($invoice->po_number)
{{ ctrans('texts.po_number') }}
{{ $invoice->po_number }}
@elseif($invoice->public_notes)
{{ ctrans('texts.public_notes') }}
{!! html_entity_decode($invoice->public_notes) !!}
@else
{{ ctrans('texts.invoice_date') }}
{{ $invoice->translateDate($invoice->date, $invoice->client->date_format(), $invoice->client->locale()) }}
@endif
@if(!empty($invoice->due_date) && !is_null($invoice->due_date))
{{ ctrans('texts.due_date') }}
{{ $invoice->translateDate($invoice->due_date, $invoice->client->date_format(), $invoice->client->locale()) }}
@endif @if($settings->client_portal_allow_under_payment || $settings->client_portal_allow_over_payment)
{{ ctrans('texts.amount_due') }}
{{ $invoice->client->currency()->code }} ({{ $invoice->client->currency()->symbol }}) {{ $invoice->partial > 0 ? $invoice->partial : $invoice->balance }}
@endif @if(!empty($invoice->amount) && !is_null($invoice->amount))
{{ ctrans('texts.payment_amount') }}
@if(!$settings->client_portal_allow_under_payment && !$settings->client_portal_allow_over_payment) @else
@endif @if($settings->client_portal_allow_under_payment) {{ ctrans('texts.minimum_payment') }}: {{ $settings->client_portal_under_payment_minimum }} @endif
@endif
@endforeach @if(intval($total) == 0) * {{ ctrans('texts.online_payments_minimum_note') }} @endif
@include('portal.ninja2020.invoices.includes.required-fields') @include('portal.ninja2020.invoices.includes.terms', ['entities' => $invoices, 'variables' => $variables, 'entity_type' => ctrans('texts.invoice')]) @include('portal.ninja2020.invoices.includes.signature') @endsection @push('footer') @vite('resources/js/clients/invoices/payment.js') @endpush