@stack('timeline_get_paid_body_button_payment_start')
            @if (! $hideAddPayment)
                @if ($document->totals->count())
                    @if ($document->status != 'paid' && (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
                @else
                    
                        
                            {{ trans('invoices.add_payment') }}
                        
                    
                @endif
            @endif
            @stack('timeline_get_paid_body_button_payment_end')
            @if (! $hideAcceptPayment)
                
                    
                        {{ trans('documents.accept_payment_online') }}
                    
                
            @endif
        
        
            
                {{ trans('invoices.payments_received') }}:
            
            @if ($transactions->count())
                @foreach ($transactions as $transaction)
                    
                        
                            
                             - {!! trans('documents.transaction', [
                                 'amount' => '' . money($transaction->amount, $transaction->currency_code) . '',
                                 '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) . ' - ' . $transaction->account->name . '',
                                    'type' => strtolower(trans_choice('general.transactions', 1))
                                ]);
                            @endphp
                            
                        
                     
                @endforeach
            @else
                
                    {{ trans('general.no_records') }}
                
            @endif