HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System: Linux li317-225.members.linode.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/kosmicfarms/storage/framework/views/25eada79b00424023dc6baa602de0b6e623a3fb9.php
<?php $__env->startSection('content'); ?>

<div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
            <div>
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb breadcrumb-style1 mg-b-10">
                  <li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Home</a></li>
					<li class="breadcrumb-item"><a href="#">Devices</a></li>		
                </ol>
              </nav>
              <h4 class="mg-b-0 tx-spacing--1">Devices</h4>
            </div>
            <div class="d-none d-md-block">
              <a href="<?php echo e(url('/devices/create')); ?>" class="btn btn-sm pd-x-15 btn-white btn-uppercase"><i data-feather="mail" class="wd-10 mg-r-5"></i> Add Device</a>
            </div>
          </div>

 <!-- ============================================================== -->
		<!-- 						Content Start	 						-->
		<!-- ============================================================== -->
		
<h4 id="section2" class="mg-b-10">List of Devices</h4>
<p class="mg-b-30">Devices informations.</p>
 <!-- ============================================================== -->
		<!-- 						Content Start	 						-->
		<!-- ============================================================== -->
		
           

            <div class="row">
               
                 <div class="col-md-12">
                    
                            <table id="devices" class="table table-striped dt-responsive nowrap">
                                <thead>
                                    <tr>
                                        <th>Device Key</th>
                                        <th>Name</th>
                                        <th>Description</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>

                                <tbody>
                                <?php if(isset($devices)): ?>
                                    <?php $__currentLoopData = $devices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $device): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>_
                                        <tr>
                                            <td><?php echo e($device->device_key); ?></td>
                                            <td><?php echo e($device->name); ?></td>
                                            <td><?php echo e($device->description); ?></td>
                                            <td>
                                            	<form method="post" action="<?php echo e(url('/devices/'.$device->id.'/delete')); ?>" class="form-horizontal">
                                            		<?php echo csrf_field(); ?>

                                            		<a href="<?php echo e(url('/devices/'.$device->id.'/edit')); ?>" class="btn btn-warning btn-rounded btn-xs">Edit</a>
                                            		<input type="hidden" name="delete" value="true"> 
                                            		<button type="submit" class="btn btn-danger btn-rounded btn-xs" id="danger-alert">Delete</button>
                                            	</form>
                                            
                                            </td>
                                        </tr>
                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                 <?php endif; ?>
                               </tbody>
                              </table>
                      
                </div>
            </div>
            
            

            <?php echo $__env->make('partials.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


        </section>
        <!-- ============================================================== -->
		<!-- 						Content End		 						-->
		<!-- ============================================================== -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('jscript'); ?>
	<script src="<?php echo e(asset('admin/lib/datatables.net/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('admin/lib/datatables.net-dt/js/dataTables.dataTables.min.js')); ?>"></script>
	       <script>
            $(document).ready(function () {
            	$('#devices').DataTable({
            		  language: {
            		    searchPlaceholder: 'Search...',
            		    sSearch: '',
            		    lengthMenu: '_MENU_ items/page',
            		  }
            		});
            });
			
        </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/kosmicfarms/resources/views/devices/index.blade.php ENDPATH**/ ?>