-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72edcf8
commit 02e9e67
Showing
7 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@section('header') | ||
<h1>SEO <small>Settings</small></h1> | ||
@endsection | ||
|
||
@section('content') | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
<div class="box"> | ||
<div class="box-header with-border"> | ||
<h2 class="box-title">URL Redirector</h2> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<table class="table table-condensed table-hover no-margin"> | ||
<tr> | ||
<th>Enabled :</th> | ||
<td class="text-right"> | ||
<span class="label label-{{ $redirector['enabled'] ? 'success' : 'default' }}"> | ||
{{ $redirector['enabled'] ? 'Yes' : 'No' }} | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Driver :</th> | ||
<td class="text-right"> | ||
<span class="label label-primary">{{ $redirector['default'] }}</span> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection | ||
|
||
@section('modals') | ||
@endsection | ||
|
||
@section('scripts') | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php namespace Arcanesoft\Seo\Http\Controllers\Admin; | ||
|
||
use Arcanedev\LaravelSeo\Seo; | ||
|
||
/** | ||
* Class SettingsController | ||
* | ||
* @package Arcanesoft\Seo\Http\Controllers\Admin | ||
* @author ARCANEDEV <arcanedev.maroc@gmail.com> | ||
* | ||
* @todo: Add authorization checks | ||
*/ | ||
class SettingsController extends Controller | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Constructor | ||
| ----------------------------------------------------------------- | ||
*/ | ||
/** | ||
* SettingsController constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
|
||
$this->setCurrentPage('seo-settings'); | ||
$this->addBreadcrumbRoute('Settings', 'admin::seo.settings.index'); | ||
} | ||
|
||
public function index() | ||
{ | ||
$this->setTitle($title = 'Settings'); | ||
$this->addBreadcrumb($title); | ||
|
||
$redirector = Seo::getConfig('redirector'); | ||
|
||
return $this->view('admin.settings', compact('redirector')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php namespace Arcanesoft\Seo\Http\Routes\Admin; | ||
|
||
use Arcanedev\Support\Routing\RouteRegistrar; | ||
|
||
/** | ||
* Class SettingsRoutes | ||
* | ||
* @package Arcanesoft\Seo\Http\Routes\Admin | ||
* @author ARCANEDEV <arcanedev.maroc@gmail.com> | ||
*/ | ||
class SettingsRoutes extends RouteRegistrar | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Main Methods | ||
| ----------------------------------------------------------------- | ||
*/ | ||
/** | ||
* Define the routes for the application. | ||
*/ | ||
public function map() | ||
{ | ||
$this->prefix('settings')->name('settings.')->group(function () { | ||
$this->get('/', 'SettingsController@index') | ||
->name('index'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters