@@ -8,27 +8,27 @@ |
||
8 | 8 | |
9 | 9 | class AssetsController extends Controller |
10 | 10 | { |
11 | - /** |
|
12 | - * AssetsController constructor. |
|
13 | - */ |
|
14 | - public function __construct() |
|
15 | - { |
|
16 | - $this->middleware('auth'); |
|
17 | - $this->middleware('lang'); |
|
18 | - } |
|
11 | + /** |
|
12 | + * AssetsController constructor. |
|
13 | + */ |
|
14 | + public function __construct() |
|
15 | + { |
|
16 | + $this->middleware('auth'); |
|
17 | + $this->middleware('lang'); |
|
18 | + } |
|
19 | 19 | |
20 | - public function index() |
|
21 | - { |
|
20 | + public function index() |
|
21 | + { |
|
22 | 22 | return view('assets.index'); |
23 | - } |
|
23 | + } |
|
24 | 24 | |
25 | - public function edit() |
|
26 | - { |
|
25 | + public function edit() |
|
26 | + { |
|
27 | 27 | return view('assets.edit'); |
28 | - } |
|
28 | + } |
|
29 | 29 | |
30 | - public function remove() |
|
31 | - { |
|
30 | + public function remove() |
|
31 | + { |
|
32 | 32 | |
33 | - } |
|
33 | + } |
|
34 | 34 | } |
@@ -8,29 +8,29 @@ |
||
8 | 8 | |
9 | 9 | class SegmentsController extends Controller |
10 | 10 | { |
11 | - public function __construct() |
|
12 | - { |
|
13 | - $this->middleware('auth'); |
|
14 | - $this->middleware('lang'); |
|
15 | - } |
|
16 | - |
|
17 | - public function index() |
|
18 | - { |
|
11 | + public function __construct() |
|
12 | + { |
|
13 | + $this->middleware('auth'); |
|
14 | + $this->middleware('lang'); |
|
15 | + } |
|
16 | + |
|
17 | + public function index() |
|
18 | + { |
|
19 | 19 | return view('segments.index'); |
20 | - } |
|
20 | + } |
|
21 | 21 | |
22 | - public function store() |
|
23 | - { |
|
22 | + public function store() |
|
23 | + { |
|
24 | 24 | return view('segments.register'); |
25 | - } |
|
25 | + } |
|
26 | 26 | |
27 | - public function edit() |
|
28 | - { |
|
27 | + public function edit() |
|
28 | + { |
|
29 | 29 | return view('segments.edit'); |
30 | - } |
|
30 | + } |
|
31 | 31 | |
32 | - public function update() |
|
33 | - { |
|
32 | + public function update() |
|
33 | + { |
|
34 | 34 | |
35 | - } |
|
35 | + } |
|
36 | 36 | } |
@@ -39,10 +39,10 @@ |
||
39 | 39 | */ |
40 | 40 | public function signup() |
41 | 41 | { |
42 | - $data["segments"] = Segments::all(); |
|
43 | - $data['category'] = ProductsCategories::with('products')->paginate(10)->sortBy("name")->all(); |
|
42 | + $data["segments"] = Segments::all(); |
|
43 | + $data['category'] = ProductsCategories::with('products')->paginate(10)->sortBy("name")->all(); |
|
44 | 44 | |
45 | - return view('auth.register', $data); |
|
45 | + return view('auth.register', $data); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function index() |
29 | 29 | { |
30 | - $data["department"] = Departments::all(); |
|
31 | - $data["agents"] = User::all(); |
|
30 | + $data[ "department" ] = Departments::all(); |
|
31 | + $data[ "agents" ] = User::all(); |
|
32 | 32 | return view('welcome', $data); |
33 | 33 | } |
34 | 34 | |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function signup() |
41 | 41 | { |
42 | - $data["segments"] = Segments::all(); |
|
43 | - $data['category'] = ProductsCategories::with('products')->paginate(10)->sortBy("name")->all(); |
|
42 | + $data[ "segments" ] = Segments::all(); |
|
43 | + $data[ 'category' ] = ProductsCategories::with('products')->paginate(10)->sortBy("name")->all(); |
|
44 | 44 | |
45 | 45 | return view('auth.register', $data); |
46 | 46 | } |