@extends('layouts.default') @section('title', trans('general.title.edit', ['type' => trans_choice('general.reconciliations', 1)])) @section('new_button') view_list{{ trans_choice('general.reconciliations', 1) . ' List'}} add{{ trans_choice('general.reconciliations', 1) }} @endsection @section('content')

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

{!! Form::model($reconcile, [ 'method' => 'PATCH', 'url' => ['banking/reconcile', $reconcile->id], 'role' => 'form', 'id' => 'form-reconciliations', 'class' => 'form-loading-button' ]) !!} {{ Form::hidden('account_id', $account->id) }} {{ Form::hidden('currency_code', $currency->code, ['id' => 'currency_code']) }} {{ Form::hidden('opening_balance', $opening_balance, ['id' => 'opening_balance']) }} {{ Form::hidden('closing_balance', $reconcile->closing_balance, ['id' => 'closing_balance']) }} {{ Form::hidden('started_at', $reconcile->started_at) }} {{ Form::hidden('ended_at', $reconcile->ended_at) }} {{ Form::hidden('reconcile', $reconcile->reconcile, ['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($reconcile->closing_balance, $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-primary button-submit', 'data-loading-text' => trans('general.loading'), 'disabled' => 'disabled']) !!}  {{ trans('general.cancel') }}
@else {{ trans('general.no_records') }} @endif
{!! Form::close() !!}
@endsection @push('scripts') @endpush