@extends('layouts.portal') @section('title', __('Review payment batch')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Review payment batch') }}

@include('accounting.balances._nav') @include('payroll._messages')

{{ __('Full net balances are selected by default, oldest due first. Change each document amount for a partial payment. Unapplied credits reduce the maximum payable amount.') }}

{{ __('Additional accounts are optional and start at zero. Enter an amount or use Include. Payments and collections remain separate; balances are never offset across accounts.') }}

@csrf
@if($methods->isEmpty())
{{ __('Configure an active cash or bank payment method before posting.') }}
@endif @foreach($people as $personId => $personItems)

{{ $personItems->first()->first_name }} {{ $personItems->first()->last_name }}

@foreach($personItems as $index => $item) @endforeach
{{ __('Account') }}{{ __('Document') }}{{ __('Due date') }}{{ __('Balance') }}{{ __('Amount to settle') }}{{ __('Remaining') }}
{{ $item->code }} - {{ $item->account_name }} @if($item->is_additional){{ __('Optional') }}@endif {{ $item->document_number }} {{ $item->entry_year }}-{{ $item->entry_number }} {{ $item->due_date ?: $item->entry_date }}{{ number_format((float) $item->balance, 2) }}
balance < 0)> @if($item->is_additional && (float) $item->maximum_amount > 0) @endif
@endforeach
{{ __('Total payment') }}: {{ __('Remaining balance') }}:
@endsection @push('scripts') @endpush