45 lines
3.9 KiB
PHP
45 lines
3.9 KiB
PHP
<section class="no-print">
|
|
<nav class="navbar navbar-default bg-white m-4">
|
|
<div class="container-fluid">
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{{action([\Modules\Essentials\Http\Controllers\ToDoController::class, 'index'])}}"><i class="fas fa-check-circle"></i> {{__('essentials::lang.essentials')}}</a>
|
|
</div>
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav">
|
|
<li @if(request()->segment(2) == 'todo') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\ToDoController::class, 'index'])}}">@lang('essentials::lang.todo')</a></li>
|
|
|
|
<li @if(request()->segment(2) == 'document' && request()->get('type') != 'memos') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\DocumentController::class, 'index'])}}">@lang('essentials::lang.document')</a></li>
|
|
|
|
<li @if(request()->segment(2) == 'document' && request()->get('type') == 'memos') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\DocumentController::class, 'index']) .'?type=memos'}}">@lang('essentials::lang.memos')</a></li>
|
|
|
|
<li @if(request()->segment(2) == 'reminder') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\ReminderController::class, 'index'])}}">@lang('essentials::lang.reminders')</a></li>
|
|
@if (auth()->user()->can('essentials.view_message') || auth()->user()->can('essentials.create_message'))
|
|
<li @if(request()->segment(2) == 'messages') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\EssentialsMessageController::class, 'index'])}}">@lang('essentials::lang.messages')</a></li>
|
|
@endif
|
|
@if (Module::has('Communication') && Module::isEnabled('Communication') && auth()->user()->can('communication.access'))
|
|
<li @if(request()->segment(1) == 'communication' && request()->segment(2) == 'chat') class="active" @endif>
|
|
<a href="{{action([\Modules\Communication\Http\Controllers\ChatController::class, 'index'])}}">@lang('communication::lang.chat')</a>
|
|
</li>
|
|
<li @if(request()->segment(1) == 'communication' && request()->segment(2) == 'meetings') class="active" @endif>
|
|
<a href="{{action([\Modules\Communication\Http\Controllers\MeetingController::class, 'index'])}}">@lang('communication::lang.meetings')</a>
|
|
</li>
|
|
@endif
|
|
<li @if(request()->segment(2) == 'knowledge-base') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\KnowledgeBaseController::class, 'index'])}}">@lang('essentials::lang.knowledge_base')</a></li>
|
|
@if (auth()->user()->can('edit_essentials_settings'))
|
|
<li @if(request()->segment(2) == 'hrm' && request()->segment(2) == 'settings') class="active" @endif><a href="{{action([\Modules\Essentials\Http\Controllers\EssentialsSettingsController::class, 'edit'])}}">@lang('business.settings')</a></li>
|
|
@endif
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
</div><!-- /.container-fluid -->
|
|
</nav>
|
|
</section> |