<?php if(isset($policeStation)): ?>
    <?php echo Form::model($policeStation, ['url' => "police-station/$policeStation->id", 'method' => 'put', 'class' => 'form-horizontal']); ?>

<?php else: ?>
    <?php echo Form::open(['url' => 'police-station', 'method' => 'post', 'class' => 'form-horizontal']); ?>

<?php endif; ?>
<div class="form-group required <?php echo e($errors->has('division_id') ? 'has-error' : ''); ?>">
    <div class="row"> 
        <?php echo Form::label('division_id', 'Select Division Name', ['class' => 'control-label col-sm-3 col-3']); ?>

        <div class="col-9 col-sm-9">
        	<div class="col-12 col-sm-12">
    	        <?php echo Form::select('division_id', $divisionList, null, ['class' => 'form-control', 'placeholder' => 'Select Division Name']); ?>

    	        <span class="text-danger">
    	            <?php echo e($errors->first('division_id')); ?>

    	        </span>
            </div>
        </div>
    </div>
</div>

<div class="form-group required <?php echo e($errors->has('district_id') ? 'has-error' : ''); ?>">
    <div class="row"> 
        <?php echo Form::label('district_id', 'Select District Name', ['class' => 'control-label col-sm-3 col-3']); ?>

        <div class="col-9 col-sm-9">
            <div class="col-12 col-sm-12">
                <?php echo Form::select('district_id', $districtList, null, ['class' => 'form-control', 'placeholder' => 'Select District Name']); ?>

                <span class="text-danger">
                    <?php echo e($errors->first('district_id')); ?>

                </span>
            </div>
        </div>
    </div>
</div>

<div class="required form-group <?php echo e($errors->has('name') ? 'has-error' : ''); ?>">
    <div class="row"> 
        <?php echo Form::label('name', 'Police Station Name', ['class' => 'col-3 col-sm-3 control-label']); ?>

        <div class="col-9 col-sm-9">
        	<div class="col-12 col-sm-12">
    	        <?php echo Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Enter Police Station Name', 'autocomplete' => 'off']); ?>

    	        <span class="text-danger">
    			    <?php echo e($errors->first('name')); ?>

    		    </span>
    		</div>
        </div>
    </div>
</div>

<div class="form-group">
    <div class="row">
        <?php echo Form::submit('Submit', ['class' => 'btn btn-outline-primary btn-block text-white']); ?>

    </div>
</div>
<?php echo Form::close(); ?>