IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
</div>
<div class="body">
<?php if(isset($user)): ?>
<?php echo Form::model($user, ['method' => 'PATCH', 'action' => ['SchoolAdminController@update', $user->idSchool], 'class' => 'form-horizontal']); ?>
<?php else: ?>
<?php echo Form::open(['url' => 'admin/addschadmin', 'class' => 'form-horizontal','files'=>true]); ?>
<?php endif; ?>
<fieldset>
<legend style="color: #6572b8;font-weight: bold;">ADD School Admin</legend>
<div class="row clearfix">
<div class="col-sm-2 form-control-label required">
<label for="classname">Name</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('name',null,['class' => 'form-control']); ?>
<?php if($errors->has('name')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('name')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
<div class="col-sm-2 form-control-label required">
<label for="classname">Email</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('email',null,['class' => 'form-control','maxlength'=>'100']); ?>
<?php if($errors->has('email')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('userEmail')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-2 form-control-label required">
<label for="classname">Mobile</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('mobile',null,['class' => 'form-control','maxlength'=>'10']); ?>
<?php if($errors->has('mobile')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('mobile')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
<div class="col-sm-2 form-control-label required">
<label for="classname">School Code</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('schoolCode',null,['class' => 'form-control','maxlength'=>'10']); ?>
<?php if($errors->has('schoolCode')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('schoolCode')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-2 form-control-label required">
<label for="classname">Password</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('password',null,['class' => 'form-control']); ?>
<?php if($errors->has('password')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('password')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
</fieldset>
<div class="row clearfix">
<div class="col-sm-8 offset-sm-2">
<?php if(isset($user)): ?>
<?php echo Form::submit('UPDATE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>
<?php else: ?>
<?php echo Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>
<?php endif; ?>
<?php echo Form::close(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>List Of Schools Admin</strong></h2>
</div>
<div class="body table-responsive">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>S. No.</th>
<th>Name</th>
<th>Email</th>
<th>Mobile</th>
<th>School Code</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th scope="row"><?php echo e($i); ?></th>
<td><?php echo e($var->name); ?></td>
<td><?php echo e($var->email); ?></td>
<td><?php echo e($var->mobile); ?></td>
<td><?php echo e($var->schoolCode); ?></td>
<td></td>
</tr>
<?php $i++; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('superadmin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -