app/Http/Controllers/Admin/Blog/CategoryController.php 1 location
|
@@ 19-26 (lines=8) @@
|
| 16 |
|
* |
| 17 |
|
* @return \Illuminate\View\View |
| 18 |
|
*/ |
| 19 |
|
public function index(): View |
| 20 |
|
{ |
| 21 |
|
$categories = Category::paginate(config('xetaravel.pagination.blog.article_per_page')); |
| 22 |
|
|
| 23 |
|
$this->breadcrumbs->addCrumb('Manage Categories', route('admin.blog.category.index')); |
| 24 |
|
|
| 25 |
|
return view('Admin::Blog.category.index', ['categories' => $categories, 'breadcrumbs' => $this->breadcrumbs]); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* Show the caterory create form. |
app/Http/Controllers/Admin/Role/PermissionController.php 1 location
|
@@ 19-26 (lines=8) @@
|
| 16 |
|
* |
| 17 |
|
* @return \Illuminate\View\View |
| 18 |
|
*/ |
| 19 |
|
public function index(): View |
| 20 |
|
{ |
| 21 |
|
$permissions = Permission::paginate(10); |
| 22 |
|
|
| 23 |
|
$breadcrumbs = $this->breadcrumbs->addCrumb('Manage Permissions', route('admin.role.permission.index')); |
| 24 |
|
|
| 25 |
|
return view('Admin::Role.permission.index', compact('permissions', 'breadcrumbs')); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* Show the permission create form. |
app/Http/Controllers/Admin/Blog/ArticleController.php 1 location
|
@@ 21-29 (lines=9) @@
|
| 18 |
|
* |
| 19 |
|
* @return \Illuminate\View\View |
| 20 |
|
*/ |
| 21 |
|
public function index(): View |
| 22 |
|
{ |
| 23 |
|
$articles = Article::with('category', 'user') |
| 24 |
|
->paginate(config('xetaravel.pagination.blog.article_per_page')); |
| 25 |
|
|
| 26 |
|
$this->breadcrumbs->addCrumb('Manage Articles', route('admin.blog.article.index')); |
| 27 |
|
|
| 28 |
|
return view('Admin::Blog.article.index', ['articles' => $articles, 'breadcrumbs' => $this->breadcrumbs]); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* Show the article create form. |
app/Http/Controllers/UserController.php 1 location
|
@@ 36-45 (lines=10) @@
|
| 33 |
|
* |
| 34 |
|
* @return \Illuminate\View\View |
| 35 |
|
*/ |
| 36 |
|
public function index(): View |
| 37 |
|
{ |
| 38 |
|
$users = User::with('Account') |
| 39 |
|
->orderBy('created_at', 'desc') |
| 40 |
|
->paginate(config('xetaravel.pagination.user.user_per_page')); |
| 41 |
|
|
| 42 |
|
$breadcrumbs = $this->breadcrumbs; |
| 43 |
|
|
| 44 |
|
return view('user.index', compact('users', 'breadcrumbs')); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* Show the user profile page. |
app/Http/Controllers/Discuss/ThreadController.php 1 location
|
@@ 46-53 (lines=8) @@
|
| 43 |
|
* |
| 44 |
|
* @return \Illuminate\View\View |
| 45 |
|
*/ |
| 46 |
|
public function showCreateForm(): View |
| 47 |
|
{ |
| 48 |
|
$categories = DiscussCategory::pluck('title', 'id'); |
| 49 |
|
|
| 50 |
|
$breadcrumbs = $this->breadcrumbs->addCrumb('Start a discussion', route('discuss.thread.create')); |
| 51 |
|
|
| 52 |
|
return view('Discuss::thread.create', compact('breadcrumbs', 'categories')); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* Handle a thread create request for the application. |