<?php $__env->startSection('content'); ?>
  <title><?php echo e(trans('admin.Students')); ?></title>
  <style>
      .box{
          position: relative;
    padding:20px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom:25px;
      }
      .box h1{
          position: absolute;
    background: white;
    top: -25px;
    padding: 5px;
      }
  </style>
    <main id="js-page-content" role="main" class="page-content">
                    <ol class="breadcrumb page-breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0);"><?php echo e(trans('admin.TrainingCenters')); ?></a></li>
                        <li class="breadcrumb-item active"><?php echo e(trans('admin.Students')); ?></li>
                        <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
                                class="js-get-date"></span></li>
                    </ol>
        
<form action="<?php echo e(url('AddStudents')); ?>" method="post" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>

          <?php echo view('honeypot::honeypotFormFields'); ?>
                    <div class="row">
                        <div class="col-xl-12">
                            <div  class="panel">
                                <div class="panel-container show">
                                    <div class="panel-content">
                                        <div class="panel-container show">
                                             <span id="ex"> <?php echo $__env->make('admin.layouts.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>
                                            <div class="panel-content">
                                                <ul class="nav nav-tabs" role="tablist">
                                                    <li class="nav-item">
           <a class="nav-link active" data-toggle="tab" href="#tab_borders_icons-1" role="tab"><i class="fal fa-home mr-1"></i>   <?php echo e(trans('admin.Main_Data')); ?></a>
                                                    </li>
                                                 
                                                                           
                                                           
                                                    
                                                </ul>

                                                <div class="tab-content border border-top-0 p-3">
                              <div class="tab-pane fade show active" id="tab_borders_icons-1" role="tabpanel">
                                                        <div class="form-row">
                                                        <div class="form-group col-md-2">
                                        <label class="form-label" for="simpleinput">  <?php echo e(trans('admin.Code')); ?></label>
                                   <input type="text"  value="<?php echo e($Code); ?>" disabled class="form-control">
                                   <input type="hidden" name="Code" value="<?php echo e($Code); ?>">
                                                        </div>
                                                 
                                          
                                                            
                                                        <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Arabic_Name')); ?> </label><span class="strick">*</span>
                     <input type="text" name="Arabic_Name" value="<?php echo e(old('Arabic_Name')); ?>" class="form-control" required>
                                                        </div>    
                                                            
                                                            <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.English_Name')); ?> </label><span class="strick">*</span>
                     <input type="text" name="English_Name" value="<?php echo e(old('English_Name')); ?>" class="form-control" >
                                                        </div>
                                                            
                                                                                        
                                                                                     <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Phone1')); ?> </label>
                        <input type="tel"  name="Phone1" value="<?php echo e(old('Phone1')); ?>" class="form-control" >    
                                                        </div>  
                                                            
                       
                                                            
                                                                                     <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Phone2')); ?> </label>
                        <input type="tel"  name="Phone2" value="<?php echo e(old('Phone2')); ?>" class="form-control" >    
                                                        </div>  
                                                            
                                                                                 
                                                                                     <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Dad_Phone')); ?> </label>
                        <input type="tel"  name="Dad_Phone" value="<?php echo e(old('Dad_Phone')); ?>" class="form-control" >    
                                                        </div>                                                                         
                                                                                     <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Mom_Phone')); ?> </label>
                        <input type="tel"  name="Mom_Phone" value="<?php echo e(old('Mom_Phone')); ?>" class="form-control" >    
                                                        </div>  
                                                                            
 
                                                            
                                                                      <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Age')); ?> </label>
                        <input type="number"  name="Age" value="<?php echo e(old('Age')); ?>" class="form-control" >    
                                                        </div>  
                                                            
        
                                                            
                                                            
                                              <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Whatsapp')); ?> </label>
                        <input type="text"  name="Whatsapp" value="<?php echo e(old('Whatsapp')); ?>" class="form-control" >    
                                                        </div>     
                                                            
                                                            
                                                                     <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Email')); ?> </label>
                        <input type="text"  name="Email" value="<?php echo e(old('Email')); ?>" class="form-control" >    
                                                        </div>     
                                                            
                                                            
                                                                                 <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Profession')); ?> </label>
                        <input type="text"  name="Profession" value="<?php echo e(old('Profession')); ?>" class="form-control" >    
                                                        </div>     
                                                            
                                                            
                                     <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Ntional_ID')); ?> </label>
                        <input type="text"  name="Ntional_ID" value="<?php echo e(old('Ntional_ID')); ?>" class="form-control" >    
                                                        </div>                                                                 
                                                                                                        
                                                                   
                          
                                                           <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.Case')); ?></label>
                                                            
                                                                   <select class="select2 form-control w-100" onchange="ChangeCase()" id="Case"  name="Case" required >
                                          <option value=""><?php echo e(trans('admin.Case')); ?></option>
                                          <option value="0" selected><?php echo e(trans('admin.No')); ?></option>
                                          <option value="1"><?php echo e(trans('admin.Yes')); ?></option>
                             
                                       </select>
                                                            </div>
                                                            
                                                            
                                                                   <div class="form-group col-md-2" id="Special" style="display: none">
                        <label class="form-label" for="">  <?php echo e(trans('admin.Special_Case')); ?></label>
                                                            
                                                                   <select class="select2 form-control w-100"  name="Special_Case" >
                                          <option value=""><?php echo e(trans('admin.Special_Case')); ?></option>
                                          <?php $__currentLoopData = $SpecialCases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $case): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                          <option value="<?php echo e($case->id); ?>"  >
                                     
                                <?php echo e(app()->getLocale() == 'ar' ?$case->Arabic_Name :$case->English_Name); ?>                        
                                          </option>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>      
                                       </select>
                                                            </div>                         
                                                            
                                                            
                                                                                                                                             
                                    <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.StudentGroup')); ?></label>
                                                            
                                                                   <select class="select2 form-control w-100"  name="Group"  >
                                          <option value=""><?php echo e(trans('admin.StudentGroup')); ?></option>
                                          <?php $__currentLoopData = $StudentGroup; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gro): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                          <option value="<?php echo e($gro->id); ?>"  >
                                     
                                <?php echo e(app()->getLocale() == 'ar' ?$gro->Arabic_Name :$gro->English_Name); ?>                        
                                          </option>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>      
                                       </select>
                                                            </div>     
                                                            
                                                            
                                    <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.Courses_Important')); ?></label>
                                                            
                                                                   <select class="select2 form-control w-100"  name="Important[]"  multiple >
                                          <option value=""><?php echo e(trans('admin.Courses_Important')); ?></option>
                                          <?php $__currentLoopData = $Courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cur): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                          <option value="<?php echo e($cur->id); ?>"  >
                                <?php echo e(app()->getLocale() == 'ar' ?$cur->Arabic_Name :$cur->English_Name); ?>                        
                                          </option>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>      
                                       </select>
                                                            </div>      
                                                            
                
                                             <div class="form-group col-md-2">
              <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Address')); ?> </label>
                        <input type="text"  name="Address" value="<?php echo e(old('Address')); ?>" class="form-control" >    
                                                        </div>   
                                                            

                                                                   <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.Nationality')); ?></label>
                                 <select class="select2 form-control w-100" name="Nationality">
                                             <option value=""><?php echo e(trans('admin.Nationality')); ?></option>
                                     
                                     <?php $__currentLoopData = $Countris; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $count): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                     <option value="<?php echo e($count->id); ?>">
             
                                          <?php echo e(app()->getLocale() == 'ar' ?$count->Arabic_Name :$count->English_Name); ?>

                                     </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                                               
                                                            </select>
                                                        </div>
                                                            
             
                                                                   <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.Governrate')); ?></label>
                                                            
                                                                   <select class="select2 form-control w-100" id="Governrate" name="Gov" >
                                          <option value=""><?php echo e(trans('admin.Governrate')); ?></option>
                                          <?php $__currentLoopData = $Governrates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gov): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                          <option value="<?php echo e($gov->id); ?>"  >
                                     
                                <?php echo e(app()->getLocale() == 'ar' ?$gov->Arabic_Name :$gov->English_Name); ?>                        
                                          </option>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>      
                                       </select>
                                                            </div>
                                                            
                                        
                                                                   <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.City')); ?></label>
         <select class="select2 form-control w-100" id="City" name="City" >
                                
                                       </select>
                                                            </div>
                                                            
                                                       <div class="form-group col-md-2">
                        <label class="form-label" for="">  <?php echo e(trans('admin.Place')); ?></label>            
         <select class="select2 form-control w-100" id="Place" name="Place" >
                                
                                       </select>
                                                            </div>                                             
                                                            

                                                    </div>
                                                  
                                                    </div>      
                  
                                    
                                                </div>
                                                 <div class="form-row">
                                                           <div class="buttons mt-3">
                           <button type="submit" class="btn btn-primary"><i class="fal fa-save"></i> 
                                                    <?php echo e(trans('admin.Save')); ?>           
                                                               </button>
                                                          </div>
                                                          </div>
                                            </div>
                                        </div>
                            </div>
                        </div>
                    </div>
                    </div>
                    </div>
                  
        </form>
                </main>



<?php $__env->stopSection(); ?>


<?php $__env->startPush('js'); ?>

    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/datagrid/datatables/datatables.bundle.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/summernote/summernote.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/select2/select2.bundle.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/dropzone/dropzone.css')); ?>">

    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.bundle.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.export.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/summernote/summernote.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/select2/select2.bundle.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/dropzone/dropzone.js')); ?>"></script>


    <script>
        /* demo scripts for change table color */
        /* change background */


        $(document).ready(function () {

            $('#dt-basic-example thead tr').clone(true).appendTo('#dt-basic-example thead');
            $('#dt-basic-example thead tr:eq(1) th').each(function (i) {
                var title = $(this).text();
                $(this).html('<input type="text" class="form-control form-control-sm" placeholder="Search ' + title + '" />');

                $('input', this).on('keyup change', function () {
                    if (table.column(i).search() !== this.value) {
                        table
                            .column(i)
                            .search(this.value)
                            .draw();
                    }
                });
            });

            var table = $('#dt-basic-example').dataTable(
                {
                    responsive: true,
                    orderCellsTop: true,
                    fixedHeader: true,
                    lengthChange: false,

                    dom: "<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'B>>" +
                        "<'row'<'col-sm-12'tr>>" +
                        "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
                    buttons: [
                        {
                            extend: 'colvis',
                            text: 'Column Visibility',
                            titleAttr: 'Col visibility',
                            className: 'btn-outline-default'
                        },
                        {
                            extend: 'pdfHtml5',
                            text: 'PDF',
                            titleAttr: 'Generate PDF',
                            className: 'btn-outline-danger btn-sm mr-1'
                        },
                        {
                            extend: 'excelHtml5',
                            text: 'Excel',
                            titleAttr: 'Generate Excel',
                            className: 'btn-outline-success btn-sm mr-1'
                        },
                        {
                            extend: 'csvHtml5',
                            text: 'CSV',
                            titleAttr: 'Generate CSV',
                            className: 'btn-outline-primary btn-sm mr-1'
                        },
                        {
                            extend: 'copyHtml5',
                            text: 'Copy',
                            titleAttr: 'Copy to clipboard',
                            className: 'btn-outline-primary btn-sm mr-1'
                        },
                        {
                            extend: 'print',
                            text: 'Print',
                            titleAttr: 'Print Table',
                            className: 'btn-outline-primary btn-sm'
                        }
                    ],
                });

            $('.js-thead-colors a').on('click', function () {
                var theadColor = $(this).attr("data-bg");
                console.log(theadColor);
                $('#dt-basic-example thead').removeClassPrefix('bg-').addClass(theadColor);
            });

            $('.js-tbody-colors a').on('click', function () {
                var theadColor = $(this).attr("data-bg");
                console.log(theadColor);
                $('#dt-basic-example').removeClassPrefix('bg-').addClass(theadColor);
            });

        });

    </script>

     <script>
        $(document).ready(function()
        {
            $(function()
            {
                $('.select2').select2();

                $(".select2-placeholder-multiple").select2(
                {
                    placeholder: "Select State"
                });
                $(".js-hide-search").select2(
                {
                    minimumResultsForSearch: 1 / 0
                });
                $(".js-max-length").select2(
                {
                    maximumSelectionLength: 2,
                    placeholder: "Select maximum 2 items"
                });
                $(".select2-placeholder").select2(
                {
                    placeholder: "Select a state",
                    allowClear: true
                });

                $(".js-select2-icons").select2(
                {
                    minimumResultsForSearch: 1 / 0,
                    templateResult: icon,
                    templateSelection: icon,
                    escapeMarkup: function(elm)
                    {
                        return elm
                    }
                });

                function icon(elm)
                {
                    elm.element;
                    return elm.id ? "<i class='" + $(elm.element).data("icon") + " mr-2'></i>" + elm.text : elm.text
                }

                $(".js-data-example-ajax").select2(
                {
                    ajax:
                    {
                        url: "https://api.github.com/search/repositories",
                        dataType: 'json',
                        delay: 250,
                        data: function(params)
                        {
                            return {
                                q: params.term, // search term
                                page: params.page
                            };
                        },
                        processResults: function(data, params)
                        {
                            // parse the results into the format expected by Select2
                            // since we are using custom formatting functions we do not need to
                            // alter the remote JSON data, except to indicate that infinite
                            // scrolling can be used
                            params.page = params.page || 1;

                            return {
                                results: data.items,
                                pagination:
                                {
                                    more: (params.page * 30) < data.total_count
                                }
                            };
                        },
                        cache: true
                    },
                    placeholder: 'Search for a repository',
                    escapeMarkup: function(markup)
                    {
                        return markup;
                    }, // let our custom formatter work
                    minimumInputLength: 1,
                    templateResult: formatRepo,
                    templateSelection: formatRepoSelection
                });

                function formatRepo(repo)
                {
                    if (repo.loading)
                    {
                        return repo.text;
                    }

                    var markup = "<div class='select2-result-repository clearfix d-flex'>" +
                        "<div class='select2-result-repository__avatar mr-2'><img src='" + repo.owner.avatar_url + "' class='width-2 height-2 mt-1 rounded' /></div>" +
                        "<div class='select2-result-repository__meta'>" +
                        "<div class='select2-result-repository__title fs-lg fw-500'>" + repo.full_name + "</div>";

                    if (repo.description)
                    {
                        markup += "<div class='select2-result-repository__description fs-xs opacity-80 mb-1'>" + repo.description + "</div>";
                    }

                    markup += "<div class='select2-result-repository__statistics d-flex fs-sm'>" +
                        "<div class='select2-result-repository__forks mr-2'><i class='fal fa-lightbulb'></i> " + repo.forks_count + " Forks</div>" +
                        "<div class='select2-result-repository__stargazers mr-2'><i class='fal fa-star'></i> " + repo.stargazers_count + " Stars</div>" +
                        "<div class='select2-result-repository__watchers mr-2'><i class='fal fa-eye'></i> " + repo.watchers_count + " Watchers</div>" +
                        "</div>" +
                        "</div></div>";

                    return markup;
                }

                function formatRepoSelection(repo)
                {
                    return repo.full_name || repo.text;
                }
            });
        });

    </script>

<script>
    function ChangeCase(){
        
        var Case=$('#Case').val();
        
        if(parseFloat(Case) == 1){
           
           document.getElementById('Special').style.display='block';
           }else{
           
      document.getElementById('Special').style.display='none';      
           }
        
        
    }
    


    
</script>    
    
<!-- Filter Governrate and City !-->
<script>
   $(document).ready(function() {
   
       $('#Governrate').on('change', function(){
           var countryId = $(this).val();
       
           if(countryId) {
               $.ajax({
                   url: 'GovernrateFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#City').empty();
   
                       $.each(data, function(key, value){
   
             $('#City').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
                      var CIITY = $('#City').val();  
                         $.ajax({
                   url: 'CityFilter/'+CIITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Place').empty();
   
                       $.each(data, function(key, value){
   
             $('#Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
                       
                       
                       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
       });
   
   });
    
   $(document).ready(function() {
   
   
           var countryId = $('#Governrate').val();
           if(countryId) {
               $.ajax({
                   url: 'GovernrateFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#City').empty();
   
                       $.each(data, function(key, value){
   
             $('#City').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
                     var CIITY = $('#City').val();  
                         $.ajax({
                   url: 'CityFilter/'+CIITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Place').empty();
   
                       $.each(data, function(key, value){
   
             $('#Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
                              
                       
                       
                       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
   
   });  
    
    
 $('#City').on('change', function(){
      var CIITY = $('#City').val();  
                         $.ajax({
                   url: 'CityFilter/'+CIITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Place').empty();
   
                       $.each(data, function(key, value){
   
             $('#Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
                       
     
 });
    
    
    
       $(document).ready(function() {
   
       $('.Governrate').on('change', function(){
           var countryId = $(this).val();
       
           if(countryId) {
               $.ajax({
                   url: 'GovernrateFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('.City').empty();
   
                       $.each(data, function(key, value){
   
             $('.City').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
                      var CIITY = $('.City').val();  
                         $.ajax({
                   url: 'CityFilter/'+CIITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('.Place').empty();
   
                       $.each(data, function(key, value){
   
             $('.Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
                       
                       
                       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
       });
   
   });
    
   $(document).ready(function() {
   
   
           var countryId = $('.Governrate').val();
           if(countryId) {
               $.ajax({
                   url: 'GovernrateFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('.City').empty();
   
                       $.each(data, function(key, value){
   
             $('.City').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
                     var CIITY = $('.City').val();  
                         $.ajax({
                   url: 'CityFilter/'+CIITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('.Place').empty();
   
                       $.each(data, function(key, value){
   
             $('.Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
                              
                       
                       
                       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
   
   });  
    
    
 $('.City').on('change', function(){
      var CIITY = $('.City').val();  
                         $.ajax({
                   url: 'CityFilter/'+CIITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('.Place').empty();
   
                       $.each(data, function(key, value){
   
             $('.Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                       
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
                       
     
 });
    

</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/laravel/ERP/resources/views/admin/Centers/Students.blade.php ENDPATH**/ ?>