99 lines
3.1 KiB
PHP
99 lines
3.1 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('content')
|
|
<!-- CONTENT HEADER -->
|
|
<section class="content-header">
|
|
<div class="container-fluid">
|
|
<div class="row mb-2">
|
|
<div class="col-sm-6">
|
|
<h1>{{ __('Settings') }}</h1>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<ol class="breadcrumb float-sm-right">
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
|
<li class="breadcrumb-item"><a class="text-muted"
|
|
href="{{ route('admin.settings.index') }}">{{ __('Settings') }}</a></li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- END CONTENT HEADER -->
|
|
@if(!file_exists(base_path()."/install.lock"))
|
|
<div class="callout callout-danger">
|
|
<h4>{{ __('The installer is not locked!') }}</h4>
|
|
<p>{{ __('please create a file called "install.lock" in your dashboard Root directory. Otherwise no settings will be loaded!') }}</p>
|
|
<a href="/install?step=7"><button class="btn btn-outline-danger">{{__('or click here')}}</button></a>
|
|
|
|
</div>
|
|
@endif
|
|
<!-- MAIN CONTENT -->
|
|
<section class="content">
|
|
<div class="container-fluid">
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
<div class="d-flex justify-content-between">
|
|
<h5 class="card-title"><i class="fas fa-tools mr-2"></i>{{ __('Settings') }}</h5>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-body ">
|
|
|
|
<!-- Nav pills -->
|
|
<ul class="nav nav-tabs">
|
|
|
|
@foreach ($tabListItems as $tabListItem)
|
|
{!! $tabListItem !!}
|
|
@endforeach
|
|
</ul>
|
|
|
|
<!-- Tab panes -->
|
|
<div class="tab-content">
|
|
|
|
@foreach ($tabs as $tab)
|
|
@include($tab)
|
|
@endforeach
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- END CUSTOM CONTENT -->
|
|
|
|
</section>
|
|
<!-- END CONTENT -->
|
|
|
|
<script>
|
|
// Add the following code if you want the name of the file appear on select
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
$(".custom-file-input").on("change", function() {
|
|
var fileName = $(this).val().split("\\").pop();
|
|
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
|
|
});
|
|
})
|
|
|
|
const tabPaneHash = window.location.hash;
|
|
if (tabPaneHash) {
|
|
$('.nav-tabs a[href="' + tabPaneHash + '"]').tab('show');
|
|
}
|
|
|
|
$('.nav-tabs a').click(function(e) {
|
|
$(this).tab('show');
|
|
const scrollmem = $('body').scrollTop();
|
|
window.location.hash = this.hash;
|
|
$('html,body').scrollTop(scrollmem);
|
|
});
|
|
</script>
|
|
|
|
|
|
@endsection
|