2015-10-14 16:15:39 +02:00
|
|
|
@if (!Utils::isPro() && isset($advanced) && $advanced)
|
2017-03-07 11:10:00 +01:00
|
|
|
<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>
|
2015-10-14 16:15:39 +02:00
|
|
|
@endif
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2017-03-07 11:10:00 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
2017-03-16 15:03:17 +01:00
|
|
|
if (isStorageSupported() && /\/settings\//.test(location.href)) {
|
2017-03-07 11:10:00 +01:00
|
|
|
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>
|
|
|
|
|
2015-10-14 16:15:39 +02:00
|
|
|
<div class="row">
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2015-10-14 16:15:39 +02:00
|
|
|
<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}") }}
|
2016-10-31 11:59:48 +01:00
|
|
|
@if ($type === ADVANCED_SETTINGS && ! Utils::isPaidPro())
|
2015-10-14 16:15:39 +02:00
|
|
|
<sup>{{ strtoupper(trans('texts.pro')) }}</sup>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
|
|
@foreach ($settings as $section)
|
2016-05-15 22:16:08 +02:00
|
|
|
<a href="{{ URL::to("settings/{$section}") }}" class="list-group-item {{ $selected === $section ? 'selected' : '' }}"
|
2016-03-01 08:36:37 +01:00
|
|
|
style="width:100%;text-align:left">{{ trans("texts.{$section}") }}</a>
|
2015-10-14 16:15:39 +02:00
|
|
|
@endforeach
|
2015-11-04 14:57:59 +01:00
|
|
|
@if ($type === ADVANCED_SETTINGS && !Utils::isNinjaProd())
|
2016-05-15 22:16:08 +02:00
|
|
|
<a href="{{ URL::to("settings/system_settings") }}" class="list-group-item {{ $selected === 'system_settings' ? 'selected' : '' }}"
|
2015-11-04 14:57:59 +01:00
|
|
|
style="width:100%;text-align:left">{{ trans("texts.system_settings") }}</a>
|
|
|
|
@endif
|
2015-10-14 16:15:39 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2016-05-15 22:16:08 +02:00
|
|
|
<div class="col-md-9">
|