{!! 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('from_account', __('models/receipts.fields.from_account').':') !!}
{!! Form::select('from_account', ['1' => "Owner's Personal A/c - Engr. Jalaa",'2' => 'Cash in RAKBANK Current A/c', '3' => 'Cash in ADCB Current A/c', '4' => "Owner's Current Period Profit"], null, ['class' => ($errors->has('from_account')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'from_account']) !!}
@if ($errors->has('from_account'))
{{ $errors->first('from_account') }}
@endif
{!! 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('payment_no', __('models/receipts.fields.payment_no').':') !!}
{!! Form::text('payment_no', null, ['class' => ($errors->has('payment_no')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('payment_no'))
{{ $errors->first('payment_no') }}
@endif
{!! Form::label('bank_name', __('models/receipts.fields.bank_name').':') !!}
{!! Form::text('bank_name', null, ['class' => ($errors->has('bank_name')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('bank_name'))
{{ $errors->first('bank_name') }}
@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']) !!}
@section('scripts')
@parent
@endsection