mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 14:16:57 -04:00
33 lines
1.5 KiB
PHP
33 lines
1.5 KiB
PHP
@if (permissionCheck('blog_module'))
|
|
@php
|
|
$blog = false;
|
|
|
|
if(request()->is('blog/*'))
|
|
{
|
|
$blog = true;
|
|
}
|
|
@endphp
|
|
<li class="{{ $blog ?'mm-active' : '' }} sortable_li" data-position="{{ menuManagerCheck(1,4)->position }}" data-status="{{ menuManagerCheck(1,4)->status }}">
|
|
<a href="javascript:;" class="has-arrow" aria-expanded="{{ $blog ? 'true' : 'false' }}">
|
|
<div class="nav_icon_small">
|
|
<span class="fas fa-users"></span>
|
|
</div>
|
|
<div class="nav_title">
|
|
<span>{{ __('blog.blog') }}</span>
|
|
</div>
|
|
</a>
|
|
<ul id="blog_ul">
|
|
@if (permissionCheck('blog.posts.index') && menuManagerCheck(2,4,'blog.posts.index')->status == 1)
|
|
<li data-position="{{ menuManagerCheck(2,4,'blog.posts.index')->position }}">
|
|
<a href="{{ route('blog.posts.index') }}" class="@if(request()->is('blog/posts/*') || request()->is('blog/posts')) active @endif">{{ __('blog.blog') }} {{__('blog.posts')}}</a>
|
|
</li>
|
|
@endif
|
|
@if (permissionCheck('blog.categories.index') && menuManagerCheck(2,4,'blog.categories.index')->status == 1)
|
|
<li data-position="{{ menuManagerCheck(2,4,'blog.categories.index')->position }}">
|
|
<a href="{{ route('blog.categories.index') }}" class="{{request()->is('blog/categories') ? 'active' : ''}}">{{ __('blog.blog_category') }}</a>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</li>
|
|
@endif
|