diff --git a/resources/views/payments/edit.blade.php b/resources/views/payments/edit.blade.php index 483ec017ef..9bdd198c82 100644 --- a/resources/views/payments/edit.blade.php +++ b/resources/views/payments/edit.blade.php @@ -162,7 +162,7 @@ } $(function() { - @if ($totalCredit) + @if (! empty($totalCredit)) $('#payment_type_id option:contains("{{ trans('texts.apply_credit') }}")').text("{{ trans('texts.apply_credit') }} | {{ $totalCredit}}"); @endif