@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('banking.bank_register_report') }}

@include('flash::message')
{{ Form::open(['method'=>'post','route' => 'banking.register']) }}
{{ Form::submit('Submit', ['class'=>'btn btn-success btn-rounded btn-block pull-right']) }}
{{ Form::close() }}
@if(isset($display))

{!! isset($display) ? $display : '' !!}

@endif

@php $sum_balance = 0; $sum_credit = 0; $sum_debit = 0; @endphp
{{-- @if(Auth::user()->can('banking-reverse')) @endif --}} @if(count($records) > 0) @foreach($records as $record) @php $sum_credit += $record->credit; $sum_debit += $record->debit; @endphp @php $banks = explode(',',$record->bank); $other_accounts = explode(',',$record->other_accounts); @endphp @if($record->debit != 0) @else @endif @if($record->credit != 0) @else @endif @if($loop->last) @php $sum_balance = $record->account_balance; @endphp @endif {{-- @if(Auth::user()->can('banking-reverse')) @endif --}} @endforeach @endif @if(count($records) > 0) {{-- @if(Auth::user()->can('banking-reverse')) @endif --}} @endif
Transaction ID {{ __('banking.transaction_date') }} {{ __('banking.record_date') }} {{ __('banking.staff_in_charge') }} {{ __('banking.type') }} {{ __('banking.account') }} {{ __('banking.memo') }} {{ __('banking.decrease') }} {{ __('banking.increase') }} {{ __('banking.balance') }}{{ __('banking.action') }}
{{ $record->trans_id }} {{ streamline_date($record->trans_date) }} {{ streamline_date_time_short($record->created_at) }} {{ get_full_name($record->created_by, 'id', 'first_name', 'last_name', 'users') }} {{ $record->trans_type }} @for($x = 0; $x < count($other_accounts); $x++) {{ get_name($other_accounts[$x], 'id', 'name', 'chart_of_accounts') }}
@endfor
{{ $record->memo }}{{ ugandan_shillings($record->debit) }} - {{ ugandan_shillings($record->credit) }} - {{ ugandan_shillings($record->account_balance) }} Reverse
{{ __('banking.current_running_balance') }} {{ ugandan_shillings($sum_balance) }}
@endsection @push('scripts') @endpush