@foreach ($items as $key => $item) @endforeach
@lang('SL') @lang('Serial Number') @lang('Date') @lang('Pariculars') @lang('Debit') @lang('Credit') @lang('Actions')
@lang('Account') @lang('Amount') @lang('Account') @lang('Amount')
{{ ($items->currentpage() - 1) * $items->perpage() + $key + 1 }} {{ $item->serial_no }} {{ dateFormateWithMonthName($item->date) }} {{ $item->type }} @foreach ($item->debits as $debit) {{ $debit->account->name }}-{{ $debit->account ? $debit->account->account_code : '' }} @endforeach {{ numberFormatwithBracket($item->debit) }} @foreach ($item->credits as $credit) {{ $credit->account ? $credit->account->name : '' }}-{{ $credit->account ? $credit->account->account_code : '' }} @endforeach {{ numberFormatwithBracket($item->credit) }}
Total {{ numberFormatwithBracket(calculateSubtotal($items, 'debit')) }} {{ numberFormatwithBracket(calculateSubtotal($items, 'credit')) }}
Grand Total {{ numberFormatwithBracket($total_debit) }} {{ numberFormatwithBracket($total_credit) }}
@if ($items instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $items->links('layouts.paginate') }} @endif