{!! Form::label('date_time', __('models/petty_cashes.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('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('vendor_id', __('models/petty_cashes.fields.vendor_id').':') !!}
{!! Form::select('vendor_id', $vendorItems, null, ['class' => ($errors->has('vendor_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'vendor_id']) !!} @if ($errors->has('vendor_id')) {{ $errors->first('vendor_id') }} @endif

{!! 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']) !!}
{!! Form::submit(__('crud.save'), ['class' => 'btn btn-danger']) !!} @lang('crud.cancel')
@section('scripts') @parent {{-- Add Vendor model --}} @endsection