Commit e52382c0 authored by Nicolas Widart's avatar Nicolas Widart

Adding basic settings view

parent c066161f
......@@ -10,7 +10,7 @@ class SidebarViewComposer
$view->items->put('setting', [
'weight' => 5,
'request' => "*/$view->prefix/setting",
'route' => 'dashboard.index',
'route' => 'dashboard.settings',
'icon-class' => 'fa fa-cog',
'title' => 'Settings',
]);
......
<?php namespace Modules\Setting\Http\Controllers;
use Illuminate\Routing\Controller;
class SettingController extends Controller {
use Illuminate\Support\Facades\View;
use Modules\Core\Http\Controllers\Admin\AdminBaseController;
class SettingController extends AdminBaseController
{
public function index()
{
return View::make('setting::admin.settings');
}
}
\ No newline at end of file
<?php
Route::group(['prefix' => 'setting', 'namespace' => 'Modules\Setting\Http\Controllers'], function()
{
Route::get('/', 'SettingController@index');
});
\ No newline at end of file
Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function() {
Route::group(['prefix' => 'setting', 'namespace' => 'Modules\Setting\Http\Controllers'], function()
{
Route::get('/', ['as' => 'dashboard.settings','uses' => 'SettingController@index']);
});
});
@extends('core::layouts.master')
@section('content-header')
<h1>
Settings
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-cog"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
</ol>
@stop
@section('content')
<div class="row">
<div class="col-md-12">
<p>Settings</p>
</div>
</div>
@stop
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment