IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/7c88bfe8d94b75d4200b4f7ec5ee55debefbca25.php

<?php $__env->startSection('content'); ?>
<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong><?php if(isset($school)): ?>Edit <?php else: ?>  Add <?php endif; ?></strong> School</h2>
            </div>
            <div class="body">
                <?php if(isset($school)): ?>
                <?php echo Form::model($school, ['method' => 'PATCH', 'action' => ['SchoolRegController@update', $school->idSchool],'files'=>true, 'class' => 'form-horizontal']); ?>

                <?php else: ?>
                <?php echo Form::open(['url' => 'admin/schregister', 'class' => 'form-horizontal','files'=>true]); ?>

                <?php endif; ?>
                <fieldset>
                    <legend style="color: #6572b8;font-weight: bold;">Account Information</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('userName',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('userName')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('userName')); ?></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('userEmail',null,['class' => 'form-control','maxlength'=>'100']); ?>

                                <?php if($errors->has('userEmail')): ?>
                                <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('userMobile',null,['class' => 'form-control','maxlength'=>'15']); ?>

                                <?php if($errors->has('userMobile')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('userMobile')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">City</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('userCity',null,['class' => 'form-control','maxlength'=>'100']); ?>

                                <?php if($errors->has('userCity')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('userCity')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Pincode</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('userPincode',null,['class' => 'form-control','maxlength'=>'6','minlength'=>'6']); ?>

                                <?php if($errors->has('userPincode')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('userPincode')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <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 if(isset($school)): ?>
                                <?php echo Form::text('password',$school->schuser->pwd,['class' => 'form-control']); ?>

                                <?php else: ?>
                                <?php echo Form::text('password',null,['class' => 'form-control']); ?>

                                <?php endif; ?>
                                <?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>
                <fieldset>
                    <legend style="color: #6572b8;font-weight: bold;">Center Profile</legend>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">School Name</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('schoolName',null,['class' => 'form-control','maxlength'=>'200','minlength'=>'3']); ?>

                                <?php if($errors->has('schoolName')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('schoolName')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">School Logo</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <img style="width: 100px;height: 100px; margin-top:10px;"  id="uploadPreview" name="image">
                                <?php if(isset($school)): ?>
                                <img src="<?php echo e(asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)); ?>" height="100">
                                <?php endif; ?>
                                <input type="file"  name="schoolLogo" id="image" onchange="PreviewImage();">
                                <?php if($errors->has('schoolLogo')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('schoolLogo')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Contact Person</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('contactPerson',null,['class' => 'form-control','maxlength'=>'100']); ?>

                                <?php if($errors->has('contactPerson')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('contactPerson')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">State</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php if(isset($school)): ?>
                                    <?php if($school->idCountry == 1): ?>
                                    <?php echo Form::select('idState',$states,null,['class' => 'form-control show-tick ms select2', 'id'=>'states']); ?>

                                    <?php else: ?>
                                    <?php echo Form::select('idState',statesQatar(),null,['class' => 'form-control show-tick ms select2', 'id'=>'states']); ?>

                                    <?php endif; ?>
                                <?php else: ?>
                                <?php echo Form::select('idState',$states,null,['class' => 'form-control show-tick ms select2', 'id'=>'states']); ?>

                                <?php endif; ?>
                                <?php if($errors->has('idState')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('idState')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Country</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::select('idCountry',$country,null,['class' => 'form-control show-tick ms select2','onchange'=>'updateStates(this);']); ?>

                                <?php if($errors->has('idCountry')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('idCountry')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">City</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('city',null,['class' => 'form-control','maxlength'=>'100']); ?>

                                <?php if($errors->has('city')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('city')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Street</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('street',null,['class' => 'form-control','maxlength'=>'250']); ?>

                                <?php if($errors->has('street')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('street')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Landmark</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('landmark',null,['class' => 'form-control','maxlength'=>'200']); ?>

                                <?php if($errors->has('landmark')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('landmark')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Sub Area</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('subArea',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('subArea')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('subArea')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Area</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('area',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('area')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('area')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Telephone</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('telephone',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('telephone')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('telephone')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Moblie</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('mobile',null,['class' => 'form-control']); ?>

                                <?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">Email</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('email',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('email')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('email')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Website</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('website',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('website')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('website')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                         <div class="col-sm-2 form-control-label">
                             <label for="classname" class="required">School Code</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('schoolCode',null,['class' => 'form-control']); ?>

                                <?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">Payment Start Date</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::date('pg_start',null,['class' => 'form-control']); ?>

                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Payment End Date</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::date('pg_stop',null,['class' => 'form-control']); ?>

                            </div>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend style="color: #6572b8;font-weight: bold;">SMS Integration data</legend>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">SMS API LoginID</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('smsUsername',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('smsUsername')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('smsUsername')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">SMS API Password</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('smsPassword',null,['class' => 'form-control','maxlength'=>'100']); ?>

                                <?php if($errors->has('smsPassword')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('smsPassword')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>

                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Sender ID</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('smsSenderId',null,['class' => 'form-control','maxlength'=>'6']); ?>

                                <?php if($errors->has('smsSenderId')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('smsSenderId')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">SMS Regard Text</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('sms_regard_text',null,['class' => 'form-control']); ?>

                             
                            </div>
                        </div>
                    </div>
                     <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">SEND SMS</label>
                        </div>
                        <div class="col-sm-3">
                             <input type="radio" name="smsmode" value="none" <?php if(isset($school)) if($school->smsmode == "none") echo "checked"; ?>> None
                            <br>
                            <input type="radio" name="smsmode" value="auto" <?php if(isset($school)) if($school->smsmode == "auto") echo "checked"; ?>> Auto
                            <br>
                            <input type="radio" name="smsmode" value="onclick" <?php if(isset($school)) if($school->smsmode == "onclick") echo "checked"; ?>> On Click
                        </div>
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Notification</label>
                        </div>
                        <div class="col-sm-3">
                             <input type="radio" name="notificationmode" value="none" <?php if(isset($school)) if($school->notificationmode == "none") echo "checked"; ?>> None
                            <br>
                            <input type="radio" name="notificationmode" value="auto" <?php if(isset($school)) if($school->notificationmode == "auto") echo "checked"; ?>> Auto
                            <br>
                            <input type="radio" name="notificationmode" value="onclick" <?php if(isset($school)) if($school->notificationmode == "onclick") echo "checked"; ?>> On Click
                        </div>
                     </div>
                    <div class="row  clearfix">
                        <div class="col-sm-1"></div>
                        <div class="col-sm-8">
                            <?php if(isset($school)): ?>

                            <table class="table table-bordered" id="edit">
                                <thead>
                                    <tr>
                                        <th>Template Name</th>
                                        <th>Template ID</th>
                                        <th></th>
                                    </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>
                                        <?php $mp = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','manual_present')->first(); ?>
                                        Manual Attendance Present
                                        <input type="hidden" name="templates[1][template_name]" value="manual_present"/>
                                        <?php if(!empty($mp)): ?> <input type="hidden" name="templates[1][idSmsTemplate]" value="<?php echo e($mp->idSmsTemplate); ?>"/><?php endif; ?>
                                    </td>
                                    <td>
                                        <?php if(!empty($mp)): ?>
                                        <input type="text" name="templates[1][template_id]" value="<?php echo e($mp->template_id); ?>" class="form-control">
                                        <?php else: ?>
                                        <?php echo Form::text('templates[1][template_id]',null,['class' => 'form-control']); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="templates[1][template_status]" value="Y" <?php if(isset($mp->status)) if($mp->status == "Y") echo "checked"; ?>>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php $ma = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','manual_absent')->first(); ?>
                                        <?php if(!empty($ma)): ?><input type="hidden" name="templates[2][idSmsTemplate]" value="<?php echo e($ma->idSmsTemplate); ?>"><?php endif; ?>
                                        Manual Attendance Absent
                                        <input type="hidden" name="templates[2][template_name]" value="manual_absent">
                                    </td>
                                    <td>
                                        <?php if(!empty($ma)): ?>
                                        <input type="text" name="templates[2][template_id]" value="<?php echo e($ma->template_id); ?>" class="form-control">
                                        <?php else: ?>
                                        <?php echo Form::text('templates[2][template_id]',null,['class' => 'form-control']); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="templates[2][template_status]" value="Y" <?php if(isset($ma->status)) if($ma->status == "Y") echo "checked"; ?>>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php $sr = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','school_reached')->first(); ?>
                                        <?php if(!empty($sr)): ?> <input type="hidden" name="templates[3][idSmsTemplate]" value="<?php echo e($sr->idSmsTemplate); ?>"><?php endif; ?>
                                        School Reached
                                        <input type="hidden" name="templates[3][template_name]" value="school_reached">
                                    </td>
                                    <td>
                                        <?php if(!empty($sr)): ?> 
                                        <input type="text" name="templates[3][template_id]" value="<?php echo e($sr->template_id); ?>" class="form-control">
                                        <?php else: ?>
                                        <?php echo Form::text('templates[3][template_id]',null,['class' => 'form-control']); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="templates[3][template_status]" value="Y" <?php if(isset($sr->status)) if($sr->status == "Y") echo "checked"; ?>>
                                    </td>
                                </tr>
                                <tr>
                                        <td>
                                            <?php $sl = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','school_left')->first(); ?>
                                            <?php if(!empty($sl)): ?> <input type="hidden" name="templates[4][idSmsTemplate]" value="<?php echo e($sl->idSmsTemplate); ?>"><?php endif; ?>
                                            School Left
                                            <input type="hidden" name="templates[4][template_name]" value="school_left">
                                        </td>
                                        <td>
                                            <?php if(!empty($sl)): ?> 
                                            <input type="text" name="templates[4][template_id]" value="<?php echo e($sl->template_id); ?>" class="form-control">
                                            <?php else: ?>
                                            <?php echo Form::text('templates[4][template_id]',null,['class' => 'form-control']); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <input type="checkbox" name="templates[4][template_status]" value="Y" <?php if(isset($sl->status)) if($sl->status == "Y") echo "checked"; ?>>
                                        </td>
                                </tr>
                                <tr>
                                        <td>
                                            <?php $mv = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','mobile_verify_otp')->first(); ?>
                                            <?php if(!empty($mv)): ?> <input type="hidden" name="templates[5][idSmsTemplate]" value="<?php echo e($mv->idSmsTemplate); ?>"><?php endif; ?>
                                            Mobile No. Verification
                                            <input type="hidden" name="templates[5][template_name]" value="mobile_verify_otp">
                                        </td>
                                        <td>
                                            <?php if(!empty($mv)): ?>
                                            <input type="text" name="templates[5][template_id]" value="<?php echo e($mv->template_id); ?>" class="form-control">
                                            <?php else: ?>
                                            <?php echo Form::text('templates[5][template_id]',null,['class' => 'form-control']); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <input type="checkbox" name="templates[5][template_status]" value="Y" <?php if(isset($mv->status)) if($mv->status == "Y") echo "checked"; ?>>
                                        </td>
                                </tr>
                                <tr>
                                        <td>
                                            <?php $visitor = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','visitor')->first(); ?>
                                            <?php if(!empty($visitor)): ?><input type="hidden" name="templates[6][idSmsTemplate]" value="<?php echo e($visitor->idSmsTemplate); ?>"><?php endif; ?>
                                            Visitor
                                            <input type="hidden" name="templates[6][template_name]" value="visitor">
                                        </td>
                                        <td>
                                            <?php if(!empty($visitor)): ?>
                                            <input type="text" name="templates[6][template_id]" value="<?php echo e($visitor->template_id); ?>" class="form-control">
                                            <?php else: ?>
                                            <?php echo Form::text('templates[6][template_id]',null,['class' => 'form-control']); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <input type="checkbox" name="templates[6][template_status]" value="Y" <?php if(isset($visitor->status)) if($visitor->status == "Y") echo "checked"; ?>>
                                        </td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php $fp = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','forgot_password')->first(); ?>
                                        <?php if(!empty($fp)): ?><input type="hidden" name="templates[7][idSmsTemplate]" value="<?php echo e($fp->idSmsTemplate); ?>"><?php endif; ?>
                                        Forgot Password
                                        <input type="hidden" name="templates[7][template_name]" value="forgot_password">
                                    </td>
                                    <td>
                                        <?php if(!empty($fp)): ?>
                                        <input type="text" name="templates[7][template_id]" value="<?php echo e($fp->template_id); ?>" class="form-control">
                                        <?php else: ?>
                                        <?php echo Form::text('templates[7][template_id]',null,['class' => 'form-control']); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="templates[7][template_status]" value="Y" <?php if(isset($fp->status)) if($fp->status == "Y") echo "checked"; ?>>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php $emp_att = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','emp_attendance')->first(); ?>
                                        <?php if(!empty($emp_att)): ?><input type="hidden" name="templates[8][idSmsTemplate]" value="<?php echo e($emp_att->idSmsTemplate); ?>"><?php endif; ?>
                                        Employee Attendance Reached
                                        <input type="hidden" name="templates[8][template_name]" value="emp_attendance">
                                    </td>
                                    <td>
                                        <?php if(!empty($emp_att)): ?>
                                        <input type="text" name="templates[8][template_id]" value="<?php echo e($emp_att->template_id); ?>" class="form-control">
                                        <?php else: ?>
                                        <?php echo Form::text('templates[8][template_id]',null,['class' => 'form-control']); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="templates[8][template_status]" value="Y" <?php if(isset($emp_att->status)) if($emp_att->status == "Y") echo "checked"; ?>>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php $emp_att = \App\SchoolSmsTemplate::where('idSchool','=',$school->idSchool)->where('template_name','=','emp_attendance_left')->first(); ?>
                                        <?php if(!empty($emp_att)): ?><input type="hidden" name="templates[9][idSmsTemplate]" value="<?php echo e($emp_att->idSmsTemplate); ?>"><?php endif; ?>
                                        Employee Attendance Left
                                        <input type="hidden" name="templates[9][template_name]" value="emp_attendance_left">
                                    </td>
                                    <td>
                                        <?php if(!empty($emp_att)): ?>
                                        <input type="text" name="templates[9][template_id]" value="<?php echo e($emp_att->template_id); ?>" class="form-control">
                                        <?php else: ?>
                                        <?php echo Form::text('templates[9][template_id]',null,['class' => 'form-control']); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="templates[9][template_status]" value="Y" <?php if(isset($emp_att->status)) if($emp_att->status == "Y") echo "checked"; ?>>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <?php else: ?> 
                            <table class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th>Template Name</th>
                                        <th>Template ID</th>
                                        <th></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            Manual Attendance Present
                                            <input type="hidden" name="templates[1][template_name]" value="manual_present">
                                        </td>
                                        <td><?php echo Form::text('templates[1][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[1][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Manual Attendance Absent
                                            <input type="hidden" name="templates[2][template_name]" value="manual_absent">
                                        </td>
                                        <td>
                                            <?php echo Form::text('templates[2][template_id]',null,['class' => 'form-control']); ?>

                                        </td>
                                        <td>
                                        <input type="checkbox" name="templates[2][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            School Reached
                                            <input type="hidden" name="templates[3][template_name]" value="school_reached">
                                        </td>
                                        <td><?php echo Form::text('templates[3][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[3][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            School Left
                                            <input type="hidden" name="templates[4][template_name]" value="school_left">
                                        </td>
                                        <td><?php echo Form::text('templates[4][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[4][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mobile No. Verification
                                            <input type="hidden" name="templates[5][template_name]" value="mobile_verify_otp">
                                        </td>
                                        <td><?php echo Form::text('templates[5][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[5][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Visitor
                                            <input type="hidden" name="templates[6][template_name]" value="visitor">
                                        </td>
                                        <td><?php echo Form::text('templates[6][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[6][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Forgot Password
                                            <input type="hidden" name="templates[7][template_name]" value="forgot_password">
                                        </td>
                                        <td><?php echo Form::text('templates[7][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[7][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Employee Attendance Reached
                                            <input type="hidden" name="templates[8][template_name]" value="emp_attendance">
                                        </td>
                                        <td><?php echo Form::text('templates[8][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[8][template_status]" value="Y">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Employee Attendance Left
                                            <input type="hidden" name="templates[9][template_name]" value="emp_attendance_left">
                                        </td>
                                        <td><?php echo Form::text('templates[9][template_id]',null,['class' => 'form-control']); ?></td>
                                        <td>
                                        <input type="checkbox" name="templates[9][template_status]" value="Y">
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <?php endif; ?>
                        </div>
                        <div class="col-sm-1"></div>
                    </div>
                </fieldset> 
                <fieldset>
                     <legend style="color: #6572b8;font-weight: bold;">Attendance Device ID</legend>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label required">
                            <label for="classname">Device ID(Attendance)</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('Device_ID',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('Device_ID')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('Device_ID')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend style="color: #6572b8;font-weight: bold;">GPS Integration data</legend>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Gps Link</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('gpsLink',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('gpsLink')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('gpsLink')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Gps User Id</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('userId',null,['class' => 'form-control','maxlength'=>'6']); ?>

                                <?php if($errors->has('userId')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('userId')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row  clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Gps Password</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('gpsPassword',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('gpsPassword')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('gpsPassword')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="row  clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">API Token</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <?php echo Form::text('api_token',null,['class' => 'form-control']); ?>

                                <?php if($errors->has('api_token')): ?>
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong><?php echo e($errors->first('api_token')); ?></strong>
                                </label>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend style="color: #6572b8;font-weight: bold;">Payment Link Registration</legend>
                    <div class="col-sm-3 form-control-label required">
                        <label for="classname">Registration Fee Payment Link</label>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <?php echo Form::text('regPaymentLink',null,['class' => 'form-control']); ?>

                            <?php if($errors->has('regPaymentLink')): ?>
                            <label id="minmaxlength-error" class="error" for="minmaxlength">
                                <strong><?php echo e($errors->first('regPaymentLink')); ?></strong>
                            </label>
                            <?php endif; ?>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend style="color: #6572b8;font-weight: bold;">App Fee Collection</legend>
                    <div class="col-sm-3 form-control-label">
                        <label for="classname">Amount</label>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <?php echo Form::number('appFee',null,['class' => 'form-control' , 'step'=>'any']); ?>

                            <?php if($errors->has('appFee')): ?>
                            <label id="minmaxlength-error" class="error" for="minmaxlength">
                                <strong><?php echo e($errors->first('appFee')); ?></strong>
                            </label>
                            <?php endif; ?>
                        </div>
                    </div>
                </fieldset>
                <div class="row clearfix">
                    <div class="col-sm-8 offset-sm-2">
                        <?php if(isset($school)): ?>
                        <?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>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
function updateStates(item){
    var country = item.value;
    if(country == 1){
        $('#states').empty(); 
        <?php $__currentLoopData = states(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        $('#states').append('<option value="<?php echo e($key); ?>"><?php echo e($value); ?></option>')
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    }else if(country == 2){
        $('#states').empty(); 
        <?php $__currentLoopData = statesQatar(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        $('#states').append('<option value="<?php echo e($key); ?>"><?php echo e($value); ?></option>')
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    }
    console.log(country);
}

function PreviewImage() {
    var oFReader = new FileReader();
    oFReader.readAsDataURL(document.getElementById("image").files[0]);
    oFReader.onload = function (oFREvent) {
        document.getElementById("uploadPreview").src = oFREvent.target.result;
    };
}     
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('superadmin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7