
<?php $__env->startSection('content'); ?>
    <div class="card card-body pd-10">
        <div class="az-content-breadcrumb">
            <span>Notifications</span>
        </div>
        <h2 class="az-content-title" style="display: inline">Escalation Notifications List <span>
            </span></h2>
    </div>
    <div class="clearfix"></div>
    


    
    <div class="row">
        <div class="col-md-12 col-lg-12 col-xl-12">
            <div class="card card-body pd-40">

                <div>
                    <table id="example2" class="table table-bordered" style="background-color: #fff;">
                        <thead>
                            <tr>
                                <th class="wd-5p">S.No</th>
                                <th class="wd-10p">Type</th>
                                <th class="wd-10p">Notification</th>
                                <th class="wd-10p">Status</th>
                                <th class="wd-10p">Created At</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $esc; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $esc_val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e(++$key); ?></td>
                                    <td><?php echo e(ucfirst($esc_val->type)); ?></td>
                                    <td><?php echo e($esc_val->message); ?></td>
                                    <td>
                                        <?php if($esc_val->is_read == 1): ?>
                                        <span class="badge badge-success">Read</span>
                                        <?php else: ?>
                                        <a href="<?php echo e(url('/notification_read_my_jobs' . '/' . \Crypt::encrypt($esc_val->id))); ?>" ><span class="badge badge-danger">Mark As Read</span></a>
                                        <?php endif; ?>
                                    </td>
                                    <td><?php echo e($esc_val->created_at); ?></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                        <tfoot>
                            <tr>
                                <th class="wd-5p">S.No</th>
                                <th class="wd-10p">Type</th>
                                <th class="wd-10p">Notification</th>
                                <th class="wd-10p">Status</th>
                                <th class="wd-10p">Created At</th>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
            <!-- card -->
        </div>
        <!-- col -->
    </div>
    
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
    <script>
        $(document).ready(function() {

            $('#example2 tfoot th').each(function() {
                var title = $(this).text();
                $(this).html('<input type="text" class="form-control" placeholder="' + title + '" />');
            });

            $('#example2').DataTable({



                "ordering": true,
                "dom": 'Blfrtip',
                "buttons": [
                    'excel', 'pdf', 'print'
                ],
                responsive: !0,
                columnDefs: [{
                    className: 'control'
                }],
                initComplete: function() {
                    // Apply the search
                    this.api()
                        .columns()
                        .every(function() {
                            var that = this;

                            $('input', this.footer()).on('keyup change clear', function() {
                                if (that.search() !== this.value) {
                                    that.search(this.value).draw();
                                }
                            });
                        });
                }
            });
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\Travocom\TVC_PHASE_1\resources\views//notifications/escalation_index.blade.php ENDPATH**/ ?>