{!! Form::label('date_time', __('models/payments.fields.date_time').':') !!}
{!! Form::text('date_time', null, ['class' => ($errors->has('date_time')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'date_time']) !!} @if ($errors->has('date_time')) {{ $errors->first('date_time') }} @endif

{!! Form::radio('type', 'vendor', true, ['id' => 'type_vendor', 'class' => 'form-check-input' . ($errors->has('type') ? ' is-invalid' : '')]) !!}
{!! Form::radio('type', 'general', null, ['id' => 'type_general', 'class' => 'form-check-input' . ($errors->has('type') ? ' is-invalid' : '')]) !!}
@if($errors->has('type'))
{{ $errors->first('type') }}
@endif
{!! Form::label('vendor_id', __('models/payments.fields.vendor_id').':') !!}
{!! Form::select('vendor_id', $vendorItems, null, ['class' => ($errors->has('vendor_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'vendor_id' ,'disabled' => isset($payment) ? true : false]) !!} @if ($errors->has('vendor_id')) {{ $errors->first('vendor_id') }} @endif @if(!isset($payment) ) @endif
@include('payments.payments_partials.invoice_detail' ,[ 'invoice' => isset($payment) ? $payment : null ])
{!! Form::label('total_amount', __('models/payments.fields.total_amount').':') !!} {!! Form::text('total_amount', null, ['class' => ($errors->has('total_amount')) ? 'form-control is-invalid' : 'form-control', 'readonly' => true]) !!} @if ($errors->has('total_amount')) {{ $errors->first('total_amount') }} @endif
{!! Form::label('payment_type', __('models/payments.fields.payment_type').':') !!} {!! Form::select('payment_type', $lookupItems, null, ['class' => ($errors->has('payment_type')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'payment_type']) !!} @if ($errors->has('payment_type')) {{ $errors->first('payment_type') }} @endif
{!! Form::label('account_id', __('models/payments.fields.account_id').':') !!} {!! Form::select('account_id', $accountItems, null, ['class' => ($errors->has('account_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'account_id']) !!} @if ($errors->has('account_id')) {{ $errors->first('account_id') }} @endif
{!! Form::label('note', __('models/payments.fields.note').':') !!} {!! Form::textarea('note', null, ['class' => 'form-control']) !!}
{!! Form::submit(__('crud.save'), ['class' => 'btn btn-danger btn-flat btn-lg']) !!} @lang('crud.cancel')
@section('scripts') @parent @endsection