1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 08:02:40 +01:00
invoiceninja/resources/views/accounts/nav.blade.php
2019-01-30 22:00:26 +11:00

69 lines
3.0 KiB
PHP
Executable File

@if (!Utils::isPro() && isset($advanced) && $advanced)
<div class="alert alert-warning" style="font-size:larger;">
<center>
{!! trans('texts.pro_plan_advanced_settings', ['link'=>'<a href="javascript:showUpgradeModal()">' . trans('texts.pro_plan_remove_logo_link') . '</a>']) !!}
</center>
</div>
@endif
<script type="text/javascript">
$(function() {
if (isStorageSupported() && /\/settings\//.test(location.href)) {
localStorage.setItem('last:settings_page', location.href);
}
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var target = $(e.target).attr("href") // activated tab
if (history.pushState) {
history.pushState(null, null, target);
}
});
})
</script>
<div class="row">
<div class="col-md-3">
@foreach([
BASIC_SETTINGS => \App\Models\Account::$basicSettings,
ADVANCED_SETTINGS => \App\Models\Account::$advancedSettings,
] as $type => $settings)
<div class="panel panel-default">
<div class="panel-heading" style="color:white">
{{ trans("texts.{$type}") }}
@if ($type === ADVANCED_SETTINGS && ! Utils::isPaidPro())
<sup>{{ strtoupper(trans('texts.pro')) }}</sup>
@endif
</div>
<div class="list-group">
@foreach ($settings as $section)
@if ($section != ACCOUNT_USER_DETAILS || auth()->user()->registered)
<a href="{{ URL::to("settings/{$section}") }}" class="list-group-item {{ $selected === $section ? 'selected' : '' }}"
style="width:100%;text-align:left">{{ trans("texts.{$section}") }}</a>
@endif
@endforeach
@if ($type === ADVANCED_SETTINGS && !Utils::isNinjaProd())
<a href="{{ URL::to("settings/system_settings") }}" class="list-group-item {{ $selected === 'system_settings' ? 'selected' : '' }}"
style="width:100%;text-align:left">{{ trans("texts.system_settings") }}</a>
@endif
</div>
</div>
@endforeach
@if (Utils::isSelfHost() && Utils::hasModuleSettings())
<div class="panel panel-default">
<div class="panel-heading" style="color:white">
{{ trans('texts.custom_module_settings') }}
</div>
@foreach(Utils::getModulesWithSettings() as $module)
<div class="list-group">
<a href="{{ URL::to('settings/' . $module->getLowerName()) }}" class="list-group-item {{ $selected === $module->getName() ? 'selected' : '' }}"
style="width:100%;text-align:left">{{ $module->name }}</a>
</div>
@endforeach
</div>
@endif
</div>
<div class="col-md-9">