HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/hrms-production/storage/framework/views/af1168f5165065e22e320a030f2f193f6d9750bc.php
<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>All City</h1>
                </div>
                <div class="col-sm-6 text-right">
                    <button type="button" class="btn btn-sm btn-outline-info mx-1" data-toggle="modal"
                        data-target="#AddCity">Add New</button>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            
            <div class="row">
                <div class="col-12">
                    <form action="" method="post" id="">
                        <?php echo csrf_field(); ?>
                        <div class="card">
                            <div class="card-header">
                                List of Cities
                            </div>
                            <!-- /.card-header -->
                            <div class="card-body">
                                <table id="emplaoyeeTable" class="table table-bordered table-striped table-sm">
                                    <thead>
                                        <tr>
                                            <th>S.No.</th>
                                            <th>City Name</th>
                                            <th>District Name</th>
                                            <th>State Name</th>
                                            
                                            <th>Status</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $AllCity; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($loop->iteration); ?></td>
                                            <td><?php echo e($city->city_name); ?></td>
                                            <td><?php echo e($city->district); ?></td>
                                            <td><?php echo e($city->state); ?></td>
                                            
                                            <td>
                                                <?php if($city->status == '1'): ?>
                                                <span class="btn btn-success btn-flat bg-success btn-xs"
                                                    data-toggle="tooltip" data-placement="top"
                                                    title="Click to De-activate" data-id="<?php echo e($city->id); ?>"
                                                    onclick="deactivateCityStatus('<?php echo e($city->id); ?>')">Active</span>
                                                <?php else: ?>
                                                <span class="btn btn-danger btn-flat bg-danger btn-xs"
                                                    data-toggle="tooltip" data-placement="top"
                                                    title="Click to De-activate" data-id="<?php echo e($city->id); ?>"
                                                    onclick="activateCityStatus('<?php echo e($city->id); ?>')">In-Active</span>
                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <button class="btn btn-xs btn-info" data-toggle="tooltip"
                                                    data-placement="top" title="Edit" id="<?php echo e($city->id); ?>"><i
                                                        class="fas fa-edit"></i></button>
                                                <button class="btn btn-xs btn-danger" data-toggle="tooltip"
                                                    data-placement="top" title="Delete" id="<?php echo e($city->id); ?>"><i
                                                        class="fas fa-trash"></i></button>
                                            </td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.card-body -->
                        </div>
                        <!-- /.card -->
                    </form>
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->

        </div>
        <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
</div>



<script>
    $(function() {
            $("#emplaoyeeTable").DataTable({
                "responsive": true,
                "lengthChange": true,
                "autoWidth": false,
                "lengthMenu": [10, 20, 50, 100, 250, 500],
                //"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
            }).buttons().container().appendTo('#userTable_wrapper .col-md-6:eq(0)');
        });
</script>
<!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.include.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/hrms/resources/views/admin/all-city.blade.php ENDPATH**/ ?>