Merge branch 'settings' into dev
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
@yield('head_meta')
|
||||
<title>@yield('pageName', @trans('admin/common.admin')) | {{$vendorName}}</title>
|
||||
<title>@yield('pageName', @trans('admin/common.admin')) | {{$pageName}}</title>
|
||||
<link rel="stylesheet" href="{{asset('../resources/assets/css/foundation.min.css')}}" />
|
||||
<link rel="stylesheet" href="{{asset('../resources/assets/css/font-awesome.min.css')}}" />
|
||||
<link rel="stylesheet" href="{{asset('../resources/assets/css/admin.css')}}" />
|
||||
@@ -48,7 +48,7 @@
|
||||
</div>
|
||||
|
||||
<footer class="row text-center">
|
||||
© {{$vendorName}} {{date('Y')}}
|
||||
© {{$pageName}} {{date('Y')}}
|
||||
</footer>
|
||||
</div>
|
||||
<script src="{{asset('../resources/assets/js/vendor/jquery.min.js')}}"></script>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@lang('admin/loginForm.login') | {{$vendorName}}</title>
|
||||
<title>@lang('admin/loginForm.login') | {{$pageName}}</title>
|
||||
<link rel="stylesheet" href="{{asset('../resources/assets/css/foundation.css')}}" />
|
||||
<link rel="stylesheet" href="{{asset('../resources/assets/css/admin.css')}}" />
|
||||
</head>
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/settings.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/settings.overview')</h2>
|
||||
</div>
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<ul class="tabs" data-tabs id="static-page-controls">
|
||||
@foreach($formSections as $id => $section)
|
||||
<li class="tabs-title @if($section->getId() == reset($formSections)->getId()) is-active @endif">
|
||||
<a href="#{{$id}}" @if($section->getId() == reset($formSections)->getId()) aria-selected="true" @endif>
|
||||
{{trans($section->getName())}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<form action="{{route('settings.save')}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<div class="tabs-content" data-tabs-content="static-page-controls">
|
||||
@foreach($formSections as $id => $section)
|
||||
<div class="tabs-panel @if($id == reset($formSections)->getId()) is-active @endif" id="{{$section->getId()}}">
|
||||
@include($section->getView())
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<button type="submit" class="button success">@lang('admin/settings.save')</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,17 @@
|
||||
<label>
|
||||
@lang('admin/settings.pageName')
|
||||
|
||||
<input type="text" name="pageName" value="{{old('pageName', $settings->pageName)}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.author')
|
||||
|
||||
<input type="text" name="author" value="{{old('author', $settings->author)}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.googleAnalyticsCode')
|
||||
|
||||
<input type="text" name="googleAnalyticsCode" value="{{old('googleAnalyticsCode', $settings->googleAnalyticsCode)}}" />
|
||||
</label>
|
||||
@@ -0,0 +1,11 @@
|
||||
<label>
|
||||
@lang('admin/settings.metaKeywords')
|
||||
|
||||
<input type="text" name="metaKeywords" value="{{old('metaKeywords', $settings->metaKeywords)}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.metaDescription')
|
||||
|
||||
<textarea name="metaDescription" rows="3">{{old('metaDescription', $settings->metaDescription)}}</textarea>
|
||||
</label>
|
||||
Reference in New Issue
Block a user