ميزان المراجعة

@if (!empty($rows))
@foreach ($rows as $row) @endforeach
الكود اسم الحساب مدين دائن
{{ $row['code'] }} {{ $row['name'] }} {{ $row['debit'] > 0 ? number_format($row['debit'], 2) : '-' }} {{ $row['credit'] > 0 ? number_format($row['credit'], 2) : '-' }}
الإجمالي {{ number_format(collect($rows)->sum('debit'), 2) }} ج.م {{ number_format(collect($rows)->sum('credit'), 2) }} ج.م
@endif