%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/crm-dub-code/resources/views/layouts/include/
Upload File :
Create Path :
Current File : /home/silvzytp/crm-dub-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  h-100 h4 mb-0 align-self-center logo-bar text-left">
                <a href="{{ url('/') }}" class="horizontal-logo text-left">
                    <img src="{{ asset(config('settings.logo')) }}" alt="{{ 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">
                        <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:{{ config('settings.hotline') }}" class="btn btn-sm btn-primary text-light"><strong>HOTLINE</strong></a>
                    </li>

                    @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;">
                                @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'] }} @isset($notification->data['assign_count']) - {{ $notification->data['assign_count'] }}@endisset</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>
                    @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;">
                                @forelse (Auth::user()->unreadNotifications  as $notification)
                                    <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">{{ $notification->data['agent_name'] }} - {{ $notification->data['reference_id'] }} </p>
                                                    {{ date('Y-m-d', strtotime($notification->data['send_date'])) }}
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                @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('super.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-->

Zerion Mini Shell 1.0