@extends('layouts.default') @section('title', trans('general.title.new', ['type' => trans_choice('general.reconciliations', 1)])) @section('new_button') view_list{{ trans_choice('general.reconciliations', 1) . ' List'}} @endsection @section('content')
{!! Form::open(['url' => 'banking/reconcile/create', 'role' => 'form', 'method' => 'GET']) !!}
{{ Form::textGroup('started_at', trans('reconciliations.start_date'), request('started_at'), ['id' => 'started_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }}
{{ Form::textGroup('ended_at', trans('reconciliations.end_date'), request('started_at'), ['id' => 'ended_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }}
{{ Form::textGroup('closing_balance', trans('reconciliations.closing_balance'), null, ['required' => 'required', 'autofocus' => 'autofocus'], '0', 'col-md-2') }}
{{ Form::selectGroup('account_id', trans_choice('general.accounts', 1), $accounts, request('account_id', setting('general.default_account')), ['required' => 'required','data-live-search'=>'true']) }}
{!! Form::button('  ' . trans('reconciliations.list_transactions'), ['type' => 'submit', 'class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

$0.00

STATEMENT CLOSING BALANCE

$0.00

CLEARED AMOUNT

$0.00

DIFFERENCE

@money($opening_balance,'USD',true)

OPENING BALANCE

$0.00

$0.00

{{ trans_choice('general.transactions', 2) }}

{!! Form::open(['url' => 'banking/reconcile', 'role' => 'form', 'class' => 'form-loading-button', 'id' => 'form-reconciliations']) !!} {{ Form::hidden('account_id', $account->id) }} {{ Form::hidden('currency_code', 'USD', ['id' => 'currency_code']) }} {{ Form::hidden('opening_balance', $opening_balance, ['id' => 'opening_balance']) }} {{ Form::hidden('closing_balance', request('closing_balance', '0'), ['id' => 'closing_balance']) }} {{ Form::hidden('started_at', request('started_at')) }} {{ Form::hidden('ended_at', request('ended_at')) }} {{ Form::hidden('reconcile', '0', ['id' => 'hidden-reconcile']) }}
@foreach($transactions as $item) @if ($item->amount_type == 'add') @else @endif @endforeach
{{ trans('general.date') }} {{ trans('general.description') }} {{ trans('general.name') }} {{ trans('general.memo') }} {{ trans_choice('general.type', 1) }} {{ trans_choice('general.deposits', 1) }} {{ trans_choice('general.withdrawals', 1) }} {{ trans('general.clear') }}
{{ Date::parse($item->transaction_date)->format($date_format) }} {{ $item->description }} {{ $item->name }} {{ $item->number }} @if (!empty($item->transaction_type)) {{ $item->transaction_type }} @else {{ trans('general.na') }}@endif@money($item->amount, $item->currency_code, true)    @money($item->amount, $item->currency_code, true)
@if ($transactions->count())
{{ trans('reconciliations.closing_balance') }}: @money(request('closing_balance', '0'), $account->currency_code, true)
{{ trans('reconciliations.cleared_amount') }}: @money('0', $account->currency_code, true)
{{ trans('general.difference') }}: @money('0', $account->currency_code, true)
@endif
@if ($transactions->count())
{!! Form::button('  ' . trans('general.save'), ['type' => 'submit', 'class' => 'btn btn-default button-submit', 'data-loading-text' => trans('general.loading')]) !!} {!! Form::button('  ' . trans('reconciliations.reconcile'), ['type' => 'button', 'id' => 'button-reconcile', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading'), 'disabled' => 'disabled']) !!}  {{ trans('general.cancel') }}
@else {{ trans('general.no_records') }} @endif
{!! Form::close() !!}
@include('includes.datepicker') @endsection