<script>
        $(document).ready(function() {
           $("#account_group").select2({width:'100%', escapeMarkup: function (m) { return m; }});
        });
   
    </script>   
       
       <style type="text/css">
       .select2-container--default .select2-results__option {
           font-weight: bold;
           color: #333;
       }
       </style>

<!-- Name Field -->
<div class="form-row">
        <div class="form-group col-sm-4">
                {!! BootForm::text('Name', 'name')->placeholder('Name')   !!}
        </div>
    <div class="form-group col-sm-8">
        {!! BootForm::select('Account Group', 'group_id')->options($groupList)->attribute('id', 'account_group');   !!}	
    </div>
</div>

<div class="form-row">
        <div class="form-group col-sm-4">
                {!! BootForm::text('GstNO', 'gstNo')->placeholder('GSTNo')   !!}
        </div>
        <div class="form-group col-sm-4">
                {!! BootForm::text('Phone', 'phone')->placeholder('Phone')   !!}
        </div>
        <div class="form-group col-sm-4">
                {!! BootForm::text('Email', 'email')->placeholder('Email')   !!}
        </div>
</div>
<div class="form-row">
        <div class="form-group col-sm-6">
                {!! BootForm::select('Bank or Cash Account ', 'type')->options(['1' => 'Yes', '0' => 'No'])->attribute('id', 'type')->formText('Note : Select if the ledger account is a bank or a cash account.');   !!}	
        </div>
        <div class="form-group col-sm-6">
                {!! BootForm::select('Reconciliation', 'reconciliation')->options(['1' => 'Yes', '0' => 'No'])->attribute('id', 'Reconciliation')->formText('Note : If selected the ledger account can be reconciled from Reports Reconciliation.');   !!}	
        </div>
</div>

<div class="form-row">
        
        <div class="form-group col-sm-1">
                {!! BootForm::select('Bank or Cash Account ', 'balance_type')->options(['Cr' => 'Cr', 'Dr' => 'Dr'])->hideLabel()->attribute('id', 'type')   !!}	
        </div>
        <div class="form-group col-sm-6">
                {!! BootForm::text('Balance', 'balance')->placeholder('Balance')->hideLabel()   !!}
        </div>
</div>



<!-- Submit Field -->
<div class="form-group col-sm-12">
    {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
    <a href="{!! route('accounts.index') !!}" class="btn btn-default">Cancel</a>
</div>
