{!! Form::label('voucher_no', __('models/petty_cashes.fields.voucher_no').':') !!}
{!! Form::text('voucher_no', null, ['class' => ($errors->has('voucher_no')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('voucher_no'))
{{ $errors->first('voucher_no') }}
@endif
{!! Form::label('is_user_balance', 'Deduct From User Balance') !!}
{!! Form::label('account_id', __('models/petty_cashes.fields.account_id').':') !!}
{!! Form::select('account', $accountItems, null, ['class' => ($errors->has('account_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'account_id', 'readonly' => 'readonly']) !!}
@if ($errors->has('account_id'))
{{ $errors->first('account_id') }}
@endif
has('project_id')) || ( isset($pettyCash) && ($pettyCash->project_id != null) ) ? '' : 'hidden' }} id="div_project">
{!! Form::label('project_id', __('models/petty_cashes.fields.project_id').':') !!}
{!! Form::select('project_id', $projectItems, null, ['class' => ($errors->has('project_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'project_id']) !!}
@if ($errors->has('project_id'))
{{ $errors->first('project_id') }}
@endif
{!! Form::label('user_id', __('models/petty_cashes.fields.user_id').':') !!}
{!! Form::select('user_id', $userItems, null, ['class' => ($errors->has('user_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'user_id']) !!}
@if ($errors->has('user_id'))
{{ $errors->first('user_id') }}
@endif
{!! Form::label('type', __('models/petty_cashes.fields.type').':') !!}
{!! Form::select('type_id', $lookupItems, null, ['class' => ($errors->has('type')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'type']) !!}
@if ($errors->has('type'))
{{ $errors->first('type') }}
@endif
{!! Form::label('amount', __('models/petty_cashes.fields.amount').':') !!}
{!! Form::text('amount', null, ['class' => ($errors->has('amount')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('amount'))
{{ $errors->first('amount') }}
@endif
{!! Form::label('vat', __('models/petty_cashes.fields.vat').':') !!}
{!! Form::label('description', __('models/petty_cashes.fields.description').':') !!}
{!! Form::textarea('description', null, ['class' => 'form-control']) !!}
{!! Form::file('file',['class' => 'custom-file-input']) !!}
{!! Form::label('file', __('models/petty_cashes.fields.file').':' , ['class' => 'custom-file-label']) !!}
@section('scripts')
@parent
{{-- Add Vendor model --}}
@endsection