Completed
Push — master ( 71c1d9...f78dbb )
by ARCANEDEV
03:55
created

SettingsController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 9
ccs 0
cts 8
cp 0
crap 2
rs 9.6666
c 0
b 0
f 0
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\Admin;
2
3
use Arcanesoft\Core\Traits\Notifyable;
4
5
/**
6
 * Class     SettingsController
7
 *
8
 * @package  Arcanesoft\Foundation\Http\Controllers\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class SettingsController extends Controller
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Traits
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    use Notifyable;
18
19
    /* ------------------------------------------------------------------------------------------------
20
     |  Constructor
21
     | ------------------------------------------------------------------------------------------------
22
     */
23
    /**
24
     * SettingsController constructor.
25
     */
26
    public function __construct()
27
    {
28
        parent::__construct();
29
30
        $this->setCurrentPage('foundation-settings');
31
        $this->addBreadcrumbRoute('Settings', 'admin::foundation.settings.index');
32
    }
33
34
    /* ------------------------------------------------------------------------------------------------
35
     |  Main Functions
36
     | ------------------------------------------------------------------------------------------------
37
     */
38
    public function index()
39
    {
40
        $title = 'Generals';
41
        $this->setTitle("Settings - {$title}");
42
        $this->addBreadcrumb($title);
43
        $this->setCurrentPage('foundation-settings-generals');
44
45
        return $this->view('admin.settings.index');
46
    }
47
}
48