{!! Form::label('date_time', __('models/receipts.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::label('type', __('models/payments.fields.type').':') !!} {!! Form::select('type', ['company' => 'Company'], null, ['class' => ($errors->has('type')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'type']) !!} @if ($errors->has('type')) {{ $errors->first('type') }} @endif
{{-- from account --}}
{!! Form::label('company_id', __('models/receipts.fields.company_id').':') !!}
{!! Form::select('company_id', $companyItems, null, ['class' => ($errors->has('company_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'company_id' ,'disabled' => isset($receipt) ? true : false]) !!} @if ($errors->has('company_id')) {{ $errors->first('company_id') }} @endif @if(!isset($receipt) ) @endif
@include('receipts.receipts_partials.invoice_detail' ,[ 'invoice' => isset($receipt) ? $receipt : null ])
{!! Form::label('total_amount', __('models/receipts.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/receipts.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/receipts.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/receipts.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