

<?php $__env->startSection('content'); ?>


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

</div>
<?php endif; ?>

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

</div>
<?php endif; ?>



<h2 class="mb-3"><?php echo e(awtTrans('All Notifications')); ?></h2>

<div class="card shadow mb-4">
    <div class="card-header py-3">
        <h6 class="m-0 font-weight-bold text-primary text-left">
            <button type="submit" style="display: none;" title="<?php echo e(awtTrans('delete')); ?>" class="btn btn-danger bluck-button btn-circle btn-sm">
                <i class="fas fa-trash"></i>
            </button>
            <a href="<?php echo e(route('admin.notifications.create')); ?>" title="<?php echo e(awtTrans('add')); ?>" class="btn btn-primary btn-circle btn-sm">
                <i class="fas fa-plus"></i>
            </a>
        </h6>
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-bordered table-striped" id="dataTablenotifications" width="100%" cellspacing="0">
                <thead>
                    <tr>
                        <th><?php echo e(awtTrans('Delete')); ?></th>
                        <th><?php echo e(awtTrans('Title Arabic')); ?></th>
                        <th><?php echo e(awtTrans('Title English')); ?></th>
                        <th><?php echo e(awtTrans('Description Arabic')); ?></th>
                        <th><?php echo e(awtTrans('Description English')); ?></th>
                        <th><?php echo e(awtTrans('Image')); ?></th>
                        <th><?php echo e(awtTrans('Created At')); ?> </th>
                        <th><?php echo e(awtTrans('Actions')); ?> </th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <th><?php echo e(awtTrans('Delete')); ?></th>
                        <th><?php echo e(awtTrans('Title Arabic')); ?></th>
                        <th><?php echo e(awtTrans('Title English')); ?></th>
                        <th><?php echo e(awtTrans('Description Arabic')); ?></th>
                        <th><?php echo e(awtTrans('Description English')); ?></th>
                        <th><?php echo e(awtTrans('Image')); ?></th>
                        <th><?php echo e(awtTrans('Created At')); ?> </th>
                        <th><?php echo e(awtTrans('Actions')); ?> </th>
                    </tr>
                </tfoot>
                <tbody>
                    <?php if(!empty($notifications)): ?>
                    <?php $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><input type="checkbox" name="ids[]" value="<?php echo e($notification->id); ?>" class="from-control bluck-delete"> </td>
                        <td><?php echo e($notification->title_ar); ?></td>
                        <td><?php echo e($notification->title_en); ?></td>
                        <td><?php echo e(strip_tags($notification->message_ar)); ?></td>
                        <td><?php echo e(strip_tags($notification->message_en)); ?></td>
                        <td><img height="44" src="<?php echo e($notification->image); ?>" alt=""></td>
                        <td><?php echo e($notification->created_at->diffForHumans()); ?></td>
                        <td>
                            <a href=" <?php echo e(route('admin.notifications.destroy', $notification->id)); ?>" data-id="<?php echo e($notification->id); ?>" class="btn btn-danger btn-circle btn-sm item-delete">
                                <i class="fas fa-trash"></i>
                            </a>
                        </td>
                    </tr>

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


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

<?php $__env->startSection('scripts'); ?>
<script>
    $(document).ready(function() {
        $('#dataTablenotifications').DataTable({
            order: [0, 'desc'],
            'language': {
                'url': 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json',
            },
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jaadara\Projects from 10-2022\Laravel-portfolio-website\resources\views/admin/notifications/index.blade.php ENDPATH**/ ?>