<h6 class="dropdown-header">
    <?php echo e(__('All Notification')); ?>

    <?php if(App\Models\UserNotification::where('register_id',0)->where('user_id',Auth::user()->id)->count() != 0): ?>
        <a href="javascript:;" data-href="<?php echo e(route('instructor.delete.clear')); ?>" class="text-white float-right" id="clear-notf"><?php echo e(__('Clear')); ?></a>
    <?php endif; ?>
  </h6>

  <?php if(App\Models\UserNotification::where('register_id',0)->where('user_id',Auth::user()->id)->count()==0): ?>
    <a class="dropdown-item text-center small text-gray-500" href="#"><?php echo e(__('Empty Notifications!')); ?></a>
  <?php else: ?> 
      <?php $__currentLoopData = App\Models\UserNotification::where('register_id',0)->where('user_id',Auth::user()->id)->orderBy('id','desc')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $noty): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

          <a class="dropdown-item d-flex align-items-center" href="<?php echo e(route('instructor.purchase.details',$noty->order_number)); ?>">
            <div class="mr-3">
              <div class="icon-circle bg-info">
                <i class="fas fa-dollar-sign"></i>
              </div>
            </div>
            <div>
              <div class="small text-gray-500"><?php echo e(Carbon\Carbon::parse($noty->created_at)->diffForHumans()); ?></div>
              <span class="font-weight-bold"><?php echo e(__('A Course Ordered')); ?></span>
            </div>
          </a>

      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  <?php endif; ?><?php /**PATH /home/royaldem/public_html/project/resources/views/load/instructor-notification.blade.php ENDPATH**/ ?>