@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.pay_now')) @push('head') @endpush @section('body')
@csrf
@if(count($payment_methods) > 0)
@foreach($payment_methods as $payment_method) @if($payment_method['label'] == 'Custom') {{ \App\Models\CompanyGateway::find($payment_method['company_gateway_id'])->firstOrFail()->getConfigField('name') }} @else {{ $payment_method['label'] }} @endif @endforeach
@else {{ ctrans('texts.to_pay_invoices') }}   {{ ctrans('texts.add_payment_method_first') }}. @endif
@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(!empty($invoice->due_date) && !is_null($invoice->due_date))
{{ ctrans('texts.due_date') }}
{{ $invoice->due_date }}
@endif
{{ ctrans('texts.additional_info') }}
@if($invoice->po_number) {{ $invoice->po_number }} @elseif($invoice->public_notes) {{ $invoice->public_notes }} @else {{ $invoice->date}} @endif
@if(!empty($invoice->amount) && !is_null($invoice->amount))
{{ ctrans('texts.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
@include('portal.ninja2020.invoices.includes.terms', ['entities' => $invoices, 'entity_type' => ctrans('texts.invoice')]) @include('portal.ninja2020.invoices.includes.signature') @endsection @push('footer') @endpush