FEATURE: add settings
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', @trans('admin/settings.overview'))
|
||||
|
||||
@section('content')
|
||||
<form action="{{route('settings.save')}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-bordered" role="tablist">
|
||||
@foreach($formSections as $id => $section)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link @if($section->getId() == reset($formSections)->getId()) active @endif"
|
||||
data-toggle="tab"
|
||||
href="#{{$section->getId()}}" role="tab"
|
||||
aria-controls="{{$section->getId()}}">{{trans($section->getName())}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<div class="tab-content tabs-bordered card">
|
||||
|
||||
@foreach($formSections as $section => $view)
|
||||
<div class="tab-pane @if($view == reset($formSections)) active @endif" id="{{$section}}"
|
||||
role="tabpanel">
|
||||
@include($view->getView())
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">@lang('admin/settings.save')</button>
|
||||
</form>
|
||||
@stop
|
||||
Reference in New Issue
Block a user