<?php $__env->startSection('content_header'); ?>
    <h1> Search Items</h1>
<?php $__env->stopSection(); ?>
<script src="//code.jquery.com/jquery.js"></script>
<?php $__env->startSection('content'); ?>

    <?php if($errors->any()): ?>
            <div class="alert alert-danger">
                <ul>
                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($error); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
    <?php endif; ?>

    <?php if(session('status')): ?>
            <div class="alert alert-success">
                <?php echo e(session('status')); ?>

            </div>
    <?php endif; ?>
  

   
<div class="row">
            <!--row starts-->

         <div class="col-md-12">
               <?php if($tapaldata!=""): ?>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                           <?php echo e(request()->session()->get('session_tname')); ?>s
                        </h3>
                    </div>

                  <div class="panel-body">
                        
                            <!-- CSRF Token -->
                              <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">

                                <table id="example" class="display" style="width:100%">
                                    <thead>
                                        <tr>
                                            <th>Number</th>
                                            <th>Date</th>
                                            <th>Keywords</th>
                                            <th>Subject</th>
                                            <th>Actions</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <?php $__currentLoopData = $tapaldata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tapaldetails): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <tr>
                                            <td><?php echo e($tapaldetails->tapal_no); ?></td>
                                            <td><?php echo e($tapaldetails->created_at->format("d-m-Y")); ?></td>
                                            <td><?php echo e($tapaldetails->keywords); ?></td>
                                            <td><?php echo e($tapaldetails->subject->subject); ?></td>
                                            <td><a href=tapal_view/<?php echo e($tapaldetails->id); ?> class='btn btn-xs btn-primary'><i class='glyphicon glyphicon-edit'></i>Show</a> </td>

                                           
                                        </tr>

                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                  </div>
                               
                </div>
       
        <?php endif; ?>

                <?php if($filedata!=""): ?>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                           <?php echo e(request()->session()->get('session_fname')); ?>s
                        </h3>
                    </div>

                  <div class="panel-body">
                        
                            <!-- CSRF Token -->
                              <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">

                                <table id="example1" class="display" style="width:100%">
                                    <thead>
                                        <tr>
                                            <th>Number</th>
                                            <th>Date</th>
                                            <th>Title</th>
                                            <th><?php echo e(request()->session()->get('session_fname')); ?> Group</th>
                                            <th>Actions</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <?php $__currentLoopData = $filedata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filedetails): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <tr>
                                            <td><?php echo e($filedetails->file_no); ?></td>
                                            <td><?php echo e($filedetails->created_at->format("d-m-Y")); ?></td>
                                            <td><?php echo e($filedetails->title); ?></td>
                                            <td><?php echo e($filedetails->file_groupobj->file_group); ?></td>
                                            <td><a href=file_view/<?php echo e($filedetails->id); ?> class='btn btn-xs btn-primary'><i class='glyphicon glyphicon-edit'></i>Show</a> </td>
                                           
                                        </tr>

                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
</table>
                  </div>
                               
                
        </div>
        <?php endif; ?>

 </div>
 </div>   
<script>
        $(document).ready(function() {
    $('#example').DataTable();
} );

</script>

<script>
        $(document).ready(function() {
    $('#example1').DataTable();
} );

</script>

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