@include('includes.data_table_header') {!! Form::open(['route' => $base_route.'.bulk-action', 'id' => 'bulk_action_form']) !!}
@if (isset($data['transaction']) && $data['transaction']->count() > 0) @php($i=1) @foreach($data['transaction'] as $transaction) @php($i++) @endforeach {{----}} @else @endif
S.N. Date Ledger/Head Dr Amount Cr Amount Description Action
{{ $i }} {{ \Carbon\Carbon::parse($transaction->date)->format('Y-m-d')}} {{ ViewHelper::getTransactionHeadById($transaction->tr_head_id) }} {{ $transaction->dr_amount }} {{ $transaction->cr_amount }} {{ $transaction->description }}
Total {{ $income = $data['transaction']->sum('dr_amount') }} {{ $expenses = $data['transaction']->sum('cr_amount') }}
Profit & Loss {{ $income - $expenses }}
No {{ $panel }} data found. Please Filter {{ $panel }} to show.
{!! Form::close() !!}