<?php $__env->startSection('content'); ?>
  <article class="content items-list-page">
                    <div class="title-search-block">
               
                        <div class="title-block">
                            <div class="row">
                                <div class="col-md-6">
                                    <h3 class="title">
                    System Logs
                  
                    <!--<a href="<?php echo e(url('admin/emp/create')); ?>" class="btn btn-primary btn-sm rounded-s">
                        <i class="fa fa-location-arrow"></i> New Appointment
                    </a> -->
                    
              
                </h3>
                                    <p class="title-description"> 
        <ul class='breadcrumb'>
        <li><a href="<?php echo e(URL('admin/dashboard')); ?>"><i class="fa fa-home"></i> Dashboard</a></li>
        <li>System Logs</li>

    </ul>
</p>
                                </div>
                            </div>
                        </div>
                        <div class="items-search">
                            <form class="form-inline" role="form" enctype="multipart/form-data" method="POST" action="<?php echo e(url('/admin/logs/search')); ?>">
                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <!--<form class="form-inline"> -->
                                <div class="input-group"> <input type="text" name="query" class="form-control boxed rounded-s" placeholder="Search by log"> <span class="input-group-btn">
                    <button class="btn btn-secondary rounded-s" type="submit">
                        <i class="fa fa-search"></i>
                    </button>
                </span> </div>
                            </form>
                        </div>
                    </div>
 <?php if(count($errors) > 0): ?>
                        <div class="alert alert-danger">
                            <strong>Whoops!</strong> There were some problems with your input.<br><br>
                            <ul>
                                <?php foreach($errors->all() as $error): ?>
                                    <li><?php echo e($error); ?></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    <?php endif; ?>

                 <?php if(Session::has('message')): ?>
                        <div class="alert alert-success">
                            <strong>  <?php echo e(Session('message')); ?> </strong>
                        </div>
                    <?php endif; ?>

<section class="section">
                        <div class="row sameheight-container">
                            <div class="col-xl-12">
                                <div class="card sameheight-item">
                                    <div class="card-block">
                         <?php if(count($logs) > 0): ?>


    <table class="table table-striped sortable">
                     <thead>
                         <tr>
                            <th>Log Time</th>
                            <th>Log</th>
                            <th>Info/Track ID</th>
                            <th>Category</th>
                        </tr>
                     </thead>
                     <tbody>
                      <?php foreach($logs as $log): ?>
                     <tr>
                           <td><?php echo e($log->log_time); ?> </td> 
                           <td><?php echo e($log->log); ?> </td> 
                           <td><?php echo e($log->info); ?> </td> 
                           <td><?php echo e($log->cat); ?> </td>                           
                        </tr>
                         <?php endforeach; ?>
                     </tbody>

                     </table>
                        <nav class="text-xs-right">
                       <?php echo str_replace('/?', '?', $logs->render()); ?>

                        </nav>
                    <?php else: ?>
                       <h3>No Data Found!</h3>
                    <?php endif; ?>
 </div>
                                    <!-- /.card-block -->
                                </div>
                                <!-- /.card -->
                            </div>
                           
                        </div>
                    </section>                    
                       
                    </div></div>
  
                   
                </article>






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

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