-
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
a425c16
commit c9c9307
Showing
8 changed files
with
124 additions
and
35 deletions.
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
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,15 @@ | ||
<?php | ||
// | ||
|
||
return [ | ||
'cookies' => 'Cookies', | ||
'devices' => 'Devices', | ||
'errors' => 'Errors', | ||
'geoip' => 'Geoip', | ||
'languages' => 'Languages', | ||
'paths' => 'Paths', | ||
'path-queries' => 'Path queries', | ||
'referers' => 'Referers', | ||
'users' => 'Users', | ||
'user-agents' => 'User agents', | ||
]; |
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,15 @@ | ||
<?php | ||
// | ||
|
||
return [ | ||
'cookies' => 'Cookies', | ||
'devices' => 'Appareils', | ||
'errors' => 'Erreurs', | ||
'geoip' => 'Géolocalisation des IP', | ||
'languages' => 'Langues', | ||
'paths' => 'Chemins', | ||
'path-queries' => 'Requêtes de chemin', | ||
'referers' => 'Référents', | ||
'users' => 'Utilisateurs', | ||
'user-agents' => 'Agents utilisateurs', | ||
]; |
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,35 @@ | ||
@section('header') | ||
<h1>Tracker <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">Trackers</h2> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<div class="table-responsive"> | ||
<table class="table table-condensed table-hover no-margin"> | ||
<tbody> | ||
@foreach ($trackers as $key => $status) | ||
<tr> | ||
<td> | ||
<b>{{ trans("tracker::trackers.$key") }}</b> | ||
</td> | ||
<td class="text-right"> | ||
<span class="label label-{{ $status ? 'success' : 'danger' }}"> | ||
<i class="fa fa-fw fa-{{ $status ? 'check' : 'times' }}"></i> | ||
</span> | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php namespace Arcanesoft\Tracker\Http\Controllers\Admin; | ||
|
||
use Illuminate\Support\Arr; | ||
|
||
/** | ||
* Class SettingsController | ||
* | ||
* @package Arcanesoft\Tracker\Http\Controllers\Admin | ||
* @author ARCANEDEV <arcanedev.maroc@gmail.com> | ||
*/ | ||
class SettingsController extends Controller | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Constructor | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** | ||
* SettingsController constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
|
||
$this->addBreadcrumbRoute('Settings', 'admin::tracker.settings.index'); | ||
$this->setCurrentPage('tracker-settings'); | ||
} | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Main Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
public function index() | ||
{ | ||
$this->setTitle('Settings - Tracker'); | ||
|
||
$configs = config('arcanesoft.tracker', []); | ||
|
||
return $this->view('admin.settings.index', [ | ||
'trackers' => Arr::get($configs, 'tracking', []), | ||
]); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.