IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-lg-5 col-md-5 col-sm-5">
<div class="card">
<div class="header">
<h2><strong>Assign Route to Bus</strong></h2>
</div>
<div class="body">
<?php echo Form::model($id, ['method' => 'PATCH', 'action' => ['School\AssignBusRouteController@update', $id], 'class' => 'form-horizontal']); ?>
<div class="row clearfix">
<div class="col-sm-4 form-control-label">
<label for="classname" class="required">Select Bus</label>
</div>
<div class="col-sm-6">
<div class="form-group">
<?php echo Form::select('idBus',$buses,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>
<?php if($errors->has('idBus')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('idBus')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-4 form-control-label">
<label for="classname" class="required">Select Route</label>
</div>
<div class="col-sm-6">
<div class="form-group">
<?php if($errors->has('route')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('route')); ?></strong>
</label>
<?php endif; ?>
<div style="border:1px solid #ccc; width:250px; height: 150px; overflow-y: scroll;">
<?php $__currentLoopData = $routes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="checkbox-inline" style="padding-left:10px;padding-top:5px;">
<?php if(in_array($key, $busroute)): ?>
<input type="checkbox" name="routes[]" value="<?php echo e($key); ?>" checked>
<?php else: ?>
<input type="checkbox" name="routes[]" value="<?php echo e($key); ?>">
<?php endif; ?>
<label><?php echo e($value); ?></label>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-8 offset-sm-2">
<?php echo Form::submit('Update',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>
<?php echo Form::close(); ?>
<a href="<?php echo e(url('/school/busroute')); ?>" class="btn btn-raised btn-danger waves-effect btn-round">Cancel</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -