@stack('timeline_get_paid_body_button_payment_start')
@if (! $hideAddPayment)
@if (empty($document->transactions->count()) || (! empty($document->transactions->count()) && $document->paid != $document->amount))
id) }}')"
id="show-slider-actions-payment-{{ $document->type }}"
class="px-3 py-1.5 mb-3 sm:mb-0 rounded-lg text-xs font-medium leading-6 bg-green hover:bg-green-700 text-white disabled:bg-green-100"
override="class"
>
{{ trans('invoices.add_payment') }}
@endif
@endif
@stack('timeline_get_paid_body_button_payment_end')
@if (! $hideAcceptPayment)
{{ trans('documents.accept_payment_online') }}
@endif
{{ trans('invoices.payment_received') }} :
@if ($transactions->count())
@foreach ($transactions as $transaction)
- {!! trans('documents.transaction', [
'amount' => '' . money($transaction->amount, $transaction->currency_code, true) . '',
'account' => '' . $transaction->account->name . '',
]) !!}
@if (! empty($transaction->contact) && $transaction->contact->email)
id) }}', '{{ $transactionEmailTemplate }}')">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
@else
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
@endif
-
$document->id, 'transaction' => $transaction->id]) }}')"
id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
class="text-purple mt-1"
override="class"
>
{{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
-
@php
$message = trans('general.delete_confirm', [
'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '',
'type' => strtolower(trans_choice('general.transactions', 1))
]);
@endphp
@endforeach
@else
{{ trans('general.no_records') }}
@endif