Completed
Push — master ( eee4fb...7643b1 )
by ARCANEDEV
11:35
created

PagesController::add()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php namespace Arcanesoft\Pages\Http\Controllers\Back;
2
3
use Arcanesoft\Pages\Bases\FoundationController as Controller;
4
use Arcanesoft\Pages\Models\Page;
5
6
/**
7
 * Class     PagesController
8
 *
9
 * @package  Arcanesoft\Pages\Http\Controllers\Back
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class PagesController extends Controller
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Properties
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * The post model.
20
     *
21
     * @var \Arcanesoft\Pages\Models\Page
22
     */
23
    private $page;
24
25
    /* ------------------------------------------------------------------------------------------------
26
     |  Constructor
27
     | ------------------------------------------------------------------------------------------------
28
     */
29
    /**
30
     * Instantiate the controller.
31
     *
32
     * @param  \Arcanesoft\Pages\Models\Page  $page
33
     */
34
    public function __construct(Page $page)
35
    {
36
        parent::__construct();
37
38
        $this->page = $page;
39
40
        $this->setCurrentPage('cms-pages');
41
        $this->addBreadcrumbRoute('Pages', 'pages::foundation.pages.index');
42
    }
43
44
    /* ------------------------------------------------------------------------------------------------
45
     |  Main Functions
46
     | ------------------------------------------------------------------------------------------------
47
     */
48
    /**
49
     * List all pages.
50
     *
51
     * @param bool $trashed
52
     *
53
     * @return \Illuminate\View\View
54
     */
55
    public function index($trashed = false)
56
    {
57
        $this->authorize('pages.pages.list');
58
59
        $pages = [];
60
        $title = 'List of pages' . ($trashed ? ' - Trashed' : '');
61
        $this->setTitle($title);
62
        $this->addBreadcrumb($title);
63
64
        return $this->view('backend.pages.list', compact('trashed', 'pages'));
65
    }
66
67
    public function add()
68
    {
69
        //
70
    }
71
72
    public function create()
73
    {
74
        //
75
    }
76
77
    public function show($id)
78
    {
79
        //
80
    }
81
82
    public function edit($id)
83
    {
84
        //
85
    }
86
87
    public function update($id)
88
    {
89
        //
90
    }
91
92
    public function delete($id)
93
    {
94
        //
95
    }
96
}
97