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

Bank Reconciliation

@php $balance = 0; @endphp
@include('flash::message')
{{ Form::open(['route' => 'banking.reconcile', 'data-toggle' => 'validator']) }}
.UGX
.UGX
{{ Form::close() }}


@if(!empty($request->all())) {{ Form::open(['route' => 'banking.finish_reconciling', 'data-toggle' => 'validator', 'id'=>'finish_reconciliation_form']) }} @if(isset($display))

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

@endif

Ending Bank Statement Balance:

{{ ugandan_shillings($request->ending_balance_input) }}
-

Opening Stre@mline Bank Balance:

{{ is_null($request->opening_balance) ? 0 : $request->opening_balance }} {{ is_null($request->opening_balance) ? 0 : ugandan_shillings($request->opening_balance) }}

Difference:

{{ ugandan_shillings((int)$request->ending_balance_input - (int)$request->opening_balance) }}


@php $sum_balance = 0; $sum_credit = 0; $sum_debit = 0; @endphp
@php $counter = 1; @endphp @if(count($banking_records) > 0) @foreach($banking_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 @php $counter++; @endphp @endforeach @endif
# Transaction Date : Record Date : Staff In-Charge : Type Account Memo Debit Credit Balance Action
{{ $counter }}. {{ streamline_date($record->trans_date) }} {{ streamline_date($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(0) }} {{ ugandan_shillings($record->credit) }} {{ ugandan_shillings(0) }} {{ ugandan_shillings($record->account_balance) }} @if($record->debit != 0) @elseif($record->credit != 0) @elseif($record->debit == 0 && $record->credit == 0) @endif

{{ Form::label('memo', 'Reconciliation Memo / Comment (Optional)', ['style' => 'font-size: 18px; font-weight: 400'])}} {{ Form::textarea('memo','',['class' => 'form-control'])}}

{{ Form::close() }} @else

Please Be Sure To Fill In All The Necessary Fields And Then Submit.

@endif
@include('banking::banking.reconcile.modals.finish_with_discrepancy') @include('banking::banking.reconcile.modals.finish_reconciliation') @include('banking::banking.reconcile.modals.perform_adjustment') @endsection @push('scripts') @endpush