@extends('layouts.app') @section('content')
  @lang('layout.TransferAccountEdit')
{!! Form::model($transfer, ['method' => 'PATCH','class'=>'form-horizontal','id' => 'transferAccount-form', 'route' => ['transferAccounts.update',$transfer->id]]) !!}
@lang('layout.TransferandExchangeCurrency')


@lang('layout.FromAccount')
@{{ errors.first('from_account') }}
{{Form::number('fromRate',null,['class' => 'form-control', 'v-validate' =>'"required"', '@keyup'=>'editKey = true', '@click'=>'editKey = true', '@input'=>'(editKey)?settransfered():""', 'data-vv-as' => __('layout.Amount'),'v-model'=>'(!fromAccount)?null:fromAccount.rate','placeholder'=>__('layout.CurrencyRate'),':readOnly' => '(fromAccount)?(fromAccount.currency == "'.getHomeCurrency()["code"].'")?true:false:null','step'=>'0.001'])}} @{{ errors.first('fromRate') }}
@{{ errors.first('transfer_amount') }}
@{{ errors.first('date') }}
{{Form::textArea('second_description',null,['class' => 'form-control' ,'rows' =>'2'])}}
@if(getAverageRate() == "true")
@endif @if(systemConfig()[29] == 1)
@{{ errors.first('transaction_confirm') }}
@endif
@lang('layout.ToAccount')
@{{ errors.first('to_account') }}
{{Form::number('to_rate',null,['class' =>'form-control', '@keyup'=>'editKey = true', '@click'=>'editKey = true', '@input'=>'(editKey)?settransfered():""', 'placeholder'=>__('layout.CurrencyRate'),':readOnly' => '(toAccount)?(toAccount.to_currency == "'.getHomeCurrency()["code"].'")?true:false:null','v-model'=>'(!toAccount)?null:toAccount.to_rate'])}}
{{Form::textArea('description',null,['class' => 'form-control' ,'rows' =>'2'])}}
@{{ errors.first('number') }}
@if(systemConfig()[5] != 0 )
@endif @if(systemConfig()[20] == 1)
@endif
{!! Form::text('monetary_source', null, array('placeholder' => __('layout.MonetarySource'),'class' => 'form-control')) !!}
{!! Form::text('trans_type', null, array('placeholder' => __('layout.TransactionType'),'class' => 'form-control')) !!}
@if(getcommission() =="true")
{{Form::textarea('commission_description',$transfer->comm_description,['class'=>'form-control','rows'=>'1'])}}




@endif
{!! Form::close() !!}
@endsection @push('scripts') @endpush