%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/crm-dub-code/storage/framework/views/
Upload File :
Create Path :
Current File : //home/silvzytp/crm-dub-code/storage/framework/views/fc3d8a72fabcb6ccfbd47353fe480d43f648160e.php

<!-- START: Header-->
<div id="header-fix" class="header fixed-top">
    <div class="site-width">
        <nav class="navbar navbar-expand-lg  p-0">
            <div class="navbar-header  h-100 h4 mb-0 align-self-center logo-bar text-left">
                <a href="<?php echo e(url('/')); ?>" class="horizontal-logo text-left">
                    <img src="<?php echo e(asset(config('settings.logo'))); ?>" alt="<?php echo e(config('settings.site_title')); ?>">
                </a>
            </div>

            <div class="navbar-header h4 mb-0 text-center h-100 collapse-menu-bar">
                <a href="javascript:" class="sidebarCollapse" id="collapse"><i class="icon-menu"></i></a>
            </div>

            <div class="navbar-right ml-auto h-100">
                <ul class="ml-auto p-0 m-0 list-unstyled d-flex top-icon h-100">
                    
                    <li class="d-inline-block align-self-center">
                        <button type="button" class="btn btn-sm btn-info support-btn text-light">Support</button>
                    </li>
                    <li class="d-inline-block align-self-center">
                        <a href="tel:<?php echo e(config('settings.hotline')); ?>" class="btn btn-sm btn-primary text-light"><strong>HOTLINE</strong></a>
                    </li>

                    <?php if(Auth::user()->role->slug == 'agent'): ?>
                        <li class="dropdown align-self-center d-inline-block">
                            <a href="#" class="nav-link" data-toggle="dropdown" aria-expanded="false">
                                <i class="icon-bell h4"></i>
                                <span class="badge badge-default"> <span class="ring">
                                    </span><span class="ring-point">
                                    </span></span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right border py-0" style="max-height: 300px;  overflow-y: scroll;">
                                <?php $__empty_1 = true; $__currentLoopData = Auth::user()->unreadNotifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <?php if(isset($notification->data['type']) && $notification->data['type'] == 'reminder'): ?>
                                        <li>
                                            <a class="dropdown-item px-2 py-2 border border-top-0 border-left-0 border-right-0" href="#">
                                                <div class="media">
                                                    <div class="media-body">
                                                        <p class="mb-0 text-success">Reminder Call - <?php echo e($notification->data['serial_no']); ?></p>
                                                        <?php echo e(date('d-m-Y H:i', strtotime($notification->data['send_date']))); ?>

                                                    </div>
                                                </div>
                                            </a>
                                        </li>
                                    <?php else: ?>
                                    
                                    <li>
                                        <a class="dropdown-item px-2 py-2 border border-top-0 border-left-0 border-right-0" href="#">
                                            <div class="media">
                                                <div class="media-body">
                                                    <p class="mb-0 text-success"><?php echo e($notification->data['message']); ?> <?php if(isset($notification->data['assign_count'])): ?> - <?php echo e($notification->data['assign_count']); ?><?php endif; ?></p>
                                                    <?php echo e(date('d-m-Y H:i', strtotime($notification->data['send_date']))); ?>

                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <li>
                                        <div class="dropdown-item px-2 py-2 border border-top-0 border-left-0 border-right-0">
                                            <div class="media">
                                                <div class="media-body text-danger">
                                                    No Notification Found!
                                                </div>
                                            </div>
                                        </div>
                                    </li>
                                <?php endif; ?>
                                <li>
                                    <a class="dropdown-item text-center py-2" href="<?php echo e(route('app.notification.read-all')); ?>"> Read All Message</a>
                                </li>
                            </ul>
                        </li>
                    <?php elseif(Auth::user()->role->slug != 'manager'): ?>
                        <li class="dropdown align-self-center d-inline-block">
                            <a href="#" class="nav-link" data-toggle="dropdown" aria-expanded="false">
                                <i class="icon-bell h4"></i>
                                <span class="badge badge-default"> <span class="ring">
                                    </span><span class="ring-point">
                                    </span></span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right border py-0" style="max-height: 300px; overflow-y: scroll;">
                                <?php $__empty_1 = true; $__currentLoopData = Auth::user()->unreadNotifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <li>
                                        <a class="dropdown-item px-2 py-2 border border-top-0 border-left-0 border-right-0" href="#">
                                            <div class="media">
                                                <div class="media-body">
                                                    <span class="d-block">Fresh Lead Updated</span>
                                                    <p class="mb-0 text-success"><?php echo e($notification->data['agent_name']); ?> - <?php echo e($notification->data['reference_id']); ?> </p>
                                                    <?php echo e(date('Y-m-d', strtotime($notification->data['send_date']))); ?>

                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <li>
                                        <div class="dropdown-item px-2 py-2 border border-top-0 border-left-0 border-right-0">
                                            <div class="media">
                                                <div class="media-body text-danger">
                                                    No Notification Found!
                                                </div>
                                            </div>
                                        </div>
                                    </li>
                                <?php endif; ?>
                                <li>
                                    <a class="dropdown-item text-center py-2" href="<?php echo e(route('super.notification.read-all')); ?>"> Read All Message</a>
                                </li>
                            </ul>
                        </li>
                    <?php endif; ?>

                    <li class="dropdown user-profile align-self-center d-inline-block">
                        <a href="#" class="nav-link py-0" data-toggle="dropdown" aria-expanded="false">
                            <div class="media">
                                <img src="<?php echo e(file_exists(Auth::user()->avatar) ? asset(Auth::user()->avatar) : asset('uploads/images/user.png')); ?>" alt="<?php echo e(Auth::user()->name); ?>" class="d-flex img-fluid rounded-circle" width="29">
                            </div>
                        </a>

                        <div class="dropdown-menu border dropdown-menu-right p-0">
                            <?php if (\Illuminate\Support\Facades\Blade::check('super_admin', 'super-admin')): ?>
                                <a class="dropdown-item px-2 align-self-center d-flex" href="<?php echo e(route('super.profile.index')); ?>"><span class="icon-user mr-2 h6 mb-0"></span> Profile</a>
                                <div class="dropdown-divider"></div>

                                <a class="dropdown-item px-2 align-self-center d-flex" href="<?php echo e(route('super.password.index')); ?>"><span class="icon-lock mr-2 h6 mb-0"></span>Password Change</a>
                                <div class="dropdown-divider"></div>
                            <?php else: ?>
                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.profile.index')): ?>
                                    <a class="dropdown-item px-2 align-self-center d-flex" href="<?php echo e(route('app.profile.index')); ?>"><span class="icon-user mr-2 h6 mb-0"></span> Profile</a>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.password.index')): ?>
                                    <a class="dropdown-item px-2 align-self-center d-flex" href="<?php echo e(route('app.password.index')); ?>"><span class="icon-lock mr-2 h6 mb-0"></span>Password Change</a>
                                <?php endif; ?>
                            <?php endif; ?>

                            <a href="<?php echo e(route('logout')); ?>" class="dropdown-item px-2 text-danger align-self-center d-flex">
                                <span class="icon-logout mr-2 h6 mb-0"></span>Sign Out</a>
                        </div>
                    </li>

                </ul>
            </div>
        </nav>
    </div>
</div>
<!-- END: Header-->
<?php /**PATH /home/silvzytp/crm-ind-code/resources/views/layouts/include/header.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0