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

29 lines
1.5 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>
2017-09-12 22:25:41 +02:00
@elseif ($option == 'reports')
<a type="button" class="btn btn-default btn-sm pull-right" title="{{ trans('texts.calendar') }}"
2018-02-25 22:03:29 +01:00
href="{{ url('/reports/calendar') }}">
2017-09-12 22:25:41 +02:00
<i class="fa fa-calendar" style="width:20px"></i>
</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) }}"
2018-02-08 11:39:58 +01:00
style="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-12-20 12:04:36 +01:00
{!! Utils::isTrial() && in_array($option, ['reports']) ? '&nbsp;<sup>' . trans('texts.pro') . '</sup>' : '' !!}
2016-12-09 10:26:21 +01:00
</a>
</li>