Current File : /home/tradevaly/www/storage/framework/views/bd6da5a92d4364387ccdd1c7d71d0a76f235de68.php
<?php $__env->startPush('title','Notifications'); ?>

<?php $__env->startPush('style'); ?>

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

<?php $__env->startSection('content'); ?>
<div class="main-content">
<div class="container-fluid">
    <div class="page-content">
        <div class="container-fluid">

            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                        <h4 class="mb-sm-0 font-size-18">Notifications</h4>

                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item"><a href="javascript: void(0);">Email</a></li>
                                <li class="breadcrumb-item active">Notifications</li>
                            </ol>
                        </div>

                    </div>
                </div>
            </div>
            <!-- end page title -->

            <div class="row">
                <div class="col-md-8 mx-auto">
                    <div class="card">
                        <div class="card-header">
                            <h2>Notifications</h2>
                        </div>
                        <div class="card-body">
                                <?php $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="alert alert-primary d-flex justify-content-between" role="alert">
                                    <a href="
                                         <?php if($notification->type=="inquery"): ?>
                                        <?php
                                            $pdata = \App\Models\BuyOffer::where('id',$notification->data)->first();
                                        ?>
                                        <?php if(isset($pdata)): ?>
                                        <?php echo e(route('admin.buy_offer.view',$pdata->id)); ?>

                                        <?php endif; ?>
                                        <?php endif; ?>
                                        <?php if($notification->type=="new product"): ?>
                                        <?php
                                            $pdata = \App\Models\Product::where('id',$notification->data)->first();
                                        ?>
                                        <?php if(isset($pdata)): ?>
                                        <?php echo e(route('admin.product.pview',$pdata->slug)); ?>

                                        <?php endif; ?>
                                        <?php endif; ?>
                                        
                                        <?php if($notification->type=="order"): ?>
                                        <?php echo e(route('admin.order.view',$notification->data)); ?>

                                        <?php endif; ?>
                                        ">
                                        <?php if($notification->seen==null): ?>
                                            <strong><?php echo e($notification->user->name." ".$notification->message); ?></strong>
                                        <?php else: ?>
                                            <?php echo e($notification->user->name." ".$notification->message); ?>

                                        <?php endif; ?>
                                    </a>
                                    <a href="<?php echo e(route('admin.notification.del',$notification->id)); ?>">Delete</a>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </u>
                        </div>
                    </div>
                </div>
            </div><!-- End row -->

        </div> <!-- container-fluid -->
    </div>
</div>
</div>

<?php $__env->startPush('script'); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/notification/index.blade.php ENDPATH**/ ?>