@include('agency.payments.partials.payment-list', [
'payments' => $payments,
'createUrl' => route('agency.payments.quick-create', ['customer' => $customer->id, 'direction' => 'in']),
'summary' => [
['label' => 'Toplam Satış', 'value' => number_format($financial['total_spent'], 2, ',', '.') . '₺', 'tone' => 'neutral'],
['label' => 'Tahsil Edilen', 'value' => number_format($financial['total_paid'], 2, ',', '.') . '₺', 'tone' => 'ok'],
['label' => 'Kalan Bakiye', 'value' => number_format($financial['balance'], 2, ',', '.') . '₺', 'tone' => $financial['balance'] > 0 ? 'warn' : 'ok'],
['label' => 'Kullanılabilir Limit', 'value' => $credit['allowed'] ? $credit['symbol'] . number_format($credit['available'], 2, ',', '.') : 'Borçlandırma kapalı', 'tone' => $credit['allowed'] ? ($credit['available'] > 0 ? 'ok' : 'warn') : 'neutral'],
],
'emptyText' => 'Bu müşteriden henüz tahsilat girilmedi.',
])