ultimatepos/Modules/IntegrationHub/Resources/views/layouts/nav.blade.php

59 lines
2.9 KiB
PHP

<section class="no-print">
@include('integrationhub::layouts.styles')
@php
$ihSeg2 = request()->segment(2);
$ihNavHome = action([\Modules\IntegrationHub\Http\Controllers\DashboardController::class, 'index']);
@endphp
<nav class="navbar navbar-default mt-nav-wrap">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#ih-navbar" aria-expanded="false">
<span class="sr-only">Toggle</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand mt-nav-brand" href="{{ $ihNavHome }}">
<i class="fas fa-plug"></i>
@lang('integrationhub::lang.module_name')
</a>
</div>
<div class="collapse navbar-collapse" id="ih-navbar">
<ul class="nav navbar-nav mt-nav-groups">
@can('integrationhub.access')
<li @if($ihSeg2 === '' || $ihSeg2 === 'dashboard') class="active" @endif>
<a href="{{ action([\Modules\IntegrationHub\Http\Controllers\DashboardController::class, 'index']) }}">
<i class="fas fa-tachometer-alt"></i> @lang('integrationhub::lang.dashboard')
</a>
</li>
@endcan
@can('integrationhub.manage_webhooks')
<li @if($ihSeg2 === 'webhooks') class="active" @endif>
<a href="{{ action([\Modules\IntegrationHub\Http\Controllers\WebhookController::class, 'index']) }}">
<i class="fas fa-broadcast-tower"></i> @lang('integrationhub::lang.webhooks')
</a>
</li>
@endcan
@can('integrationhub.manage_tokens')
<li @if($ihSeg2 === 'odata-tokens') class="active" @endif>
<a href="{{ action([\Modules\IntegrationHub\Http\Controllers\ODataController::class, 'indexTokens']) }}">
<i class="fas fa-key"></i> @lang('integrationhub::lang.odata_tokens')
</a>
</li>
@endcan
@can('integrationhub.export')
<li @if($ihSeg2 === 'exports') class="active" @endif>
<a href="{{ action([\Modules\IntegrationHub\Http\Controllers\ExportController::class, 'index']) }}">
<i class="fas fa-file-export"></i> @lang('integrationhub::lang.exports')
</a>
</li>
@endcan
</ul>
</div>
</div>
</nav>
</section>