%PDF- %PDF-
Direktori : /home/silvzytp/ccd-ind-code/resources/views/layouts/include/ |
Current File : //home/silvzytp/ccd-ind-code/resources/views/layouts/include/header.blade.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 h4 mb-0 align-self-center logo-bar text-left"> <div class="horizontal-logo text-left"> <img src="{{ asset('uploads/images/logo.png') }}" /> </div> </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"> <a href="#" class="dark-mode d-inline-block"> <i class="fas fa-moon text-dark"></i> </a> </li> --}} <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:800555555" class="btn btn-sm btn-primary text-light"><strong>HOTLINE:</strong> 800 555 555</a> </li> @permission('app.callings.reject') <li class="d-inline-block align-self-center"> <a href="{{ route(routeName().'.callings.reject') }}" class="btn btn-sm btn-danger text-light">Recycle Data Pool</a> </li> @endpermission @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"> @forelse (Auth::user()->unreadNotifications as $notification) @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 - {{ $notification->data['serial_no'] }}</p> {{ date('d-m-Y H:i', strtotime($notification->data['send_date'])) }} </div> </div> </a> </li> @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">{{ $notification->data['message'] }} - {{ $notification->data['assign_count'] }}</p> {{ date('d-m-Y H:i', strtotime($notification->data['send_date'])) }} </div> </div> </a> </li> @endif @empty <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> @endforelse <li> <a class="dropdown-item text-center py-2" href="{{ route('app.notification.read-all') }}"> Read All Message</a> </li> </ul> </li> @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="{{ file_exists(Auth::user()->avatar) ? asset(Auth::user()->avatar) : asset('uploads/images/user.png') }}" alt="{{ Auth::user()->name }}" class="d-flex img-fluid rounded-circle" width="29"> </div> </a> <div class="dropdown-menu border dropdown-menu-right p-0"> @super_admin('super-admin') <a class="dropdown-item px-2 align-self-center d-flex" href="{{ 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="{{ route('super.password.index') }}"><span class="icon-lock mr-2 h6 mb-0"></span>Password Change</a> <div class="dropdown-divider"></div> @else @permission('app.profile.index') <a class="dropdown-item px-2 align-self-center d-flex" href="{{ route('app.profile.index') }}"><span class="icon-user mr-2 h6 mb-0"></span> Profile</a> @endpermission @permission('app.password.index') <a class="dropdown-item px-2 align-self-center d-flex" href="{{ route('app.password.index') }}"><span class="icon-lock mr-2 h6 mb-0"></span>Password Change</a> @endpermission @endsuper_admin <a href="{{ 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-->