1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/resources/views/partials/navigation_option.blade.php

28 lines
1.3 KiB
PHP
Raw Normal View History

<li class="nav-{{ $option }} {{ Request::is("{$option}*") ? 'active' : '' }}">
2016-12-09 10:26:21 +01:00
@if ($option == 'settings')
<a type="button" class="btn btn-default btn-sm pull-right" title="{{ Utils::getReadableUrl(request()->path()) }}"
2016-12-09 10:26:21 +01:00
href="{{ Utils::getDocsUrl(request()->path()) }}" target="_blank">
<i class="fa fa-info-circle" style="width:20px"></i>
2016-12-09 10:26:21 +01:00
</a>
2016-12-09 10:51:18 +01:00
@elseif (Auth::user()->can('create', $option) || Auth::user()->can('create', substr($option, 0, -1)))
2016-12-09 10:26:21 +01:00
<a type="button" class="btn btn-primary btn-sm pull-right"
href="{{ url("/{$option}/create") }}">
<i class="fa fa-plus-circle" style="width:20px" title="{{ trans('texts.create_new') }}"></i>
</a>
@endif
<a href="{{ url($option == 'recurring' ? 'recurring_invoice' : $option) }}"
2017-01-22 22:53:01 +01:00
style="font-size:15px; padding-top:6px; padding-bottom:6px"
class="nav-link {{ Request::is("{$option}*") ? 'active' : '' }}">
2016-12-09 10:26:21 +01:00
<i class="fa fa-{{ empty($icon) ? \App\Models\EntityModel::getIcon($option) : $icon }}" style="width:46px; padding-right:10px"></i>
2016-12-09 12:17:04 +01:00
{{ ($option == 'recurring_invoices') ? trans('texts.recurring') : mtrans($option) }}
2017-03-08 07:35:10 +01:00
{!! Utils::isTrial() && in_array($option, ['quotes', 'tasks', 'expenses', 'vendors', 'reports']) ? '&nbsp;<sup>' . trans('texts.pro') . '</sup>' : '' !!}
2016-12-09 10:26:21 +01:00
</a>
</li>