From 85622411c2bccdf36464b2b4f6b1f060e2597f17 Mon Sep 17 00:00:00 2001 From: UronShrestha Date: Fri, 21 Jun 2024 13:36:17 +0545 Subject: [PATCH] first commit --- README.md | 1 + .../Controllers/backend/UserController.php | 15 ++- .../views/backend/user/all-user.blade.php | 1 + .../vendor/pagination/bootstrap-4.blade.php | 46 ++++++++ .../vendor/pagination/bootstrap-5.blade.php | 88 +++++++++++++++ .../views/vendor/pagination/default.blade.php | 46 ++++++++ .../vendor/pagination/semantic-ui.blade.php | 36 ++++++ .../pagination/simple-bootstrap-4.blade.php | 27 +++++ .../pagination/simple-bootstrap-5.blade.php | 29 +++++ .../pagination/simple-default.blade.php | 19 ++++ .../pagination/simple-tailwind.blade.php | 25 +++++ .../vendor/pagination/tailwind.blade.php | 106 ++++++++++++++++++ 12 files changed, 435 insertions(+), 4 deletions(-) create mode 100644 resources/views/vendor/pagination/bootstrap-4.blade.php create mode 100644 resources/views/vendor/pagination/bootstrap-5.blade.php create mode 100644 resources/views/vendor/pagination/default.blade.php create mode 100644 resources/views/vendor/pagination/semantic-ui.blade.php create mode 100644 resources/views/vendor/pagination/simple-bootstrap-4.blade.php create mode 100644 resources/views/vendor/pagination/simple-bootstrap-5.blade.php create mode 100644 resources/views/vendor/pagination/simple-default.blade.php create mode 100644 resources/views/vendor/pagination/simple-tailwind.blade.php create mode 100644 resources/views/vendor/pagination/tailwind.blade.php diff --git a/README.md b/README.md index 1a4c26b..8a7553a 100644 --- a/README.md +++ b/README.md @@ -64,3 +64,4 @@ If you discover a security vulnerability within Laravel, please send an e-mail t ## License The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +# adminlteanddatatables diff --git a/app/Http/Controllers/backend/UserController.php b/app/Http/Controllers/backend/UserController.php index 0b429d6..719b616 100644 --- a/app/Http/Controllers/backend/UserController.php +++ b/app/Http/Controllers/backend/UserController.php @@ -19,10 +19,10 @@ use Illuminate\Support\Facades\Log; class UserController extends Controller { - public function __construct() - { - $this->middleware('auth'); - } + // public function __construct() + // { + // $this->middleware('auth'); + // } public function AllUser() { @@ -30,6 +30,13 @@ class UserController extends Controller return view('backend.user.all-user', compact('all')); } + public function index() + { + + $users = DB::table('users')->paginate(10); + return view('backend.users.index', compact('users')); + } + public function AddUser() { return view('backend.user.add-user'); diff --git a/resources/views/backend/user/all-user.blade.php b/resources/views/backend/user/all-user.blade.php index ce3b74a..80e4360 100644 --- a/resources/views/backend/user/all-user.blade.php +++ b/resources/views/backend/user/all-user.blade.php @@ -75,6 +75,7 @@ + diff --git a/resources/views/vendor/pagination/bootstrap-4.blade.php b/resources/views/vendor/pagination/bootstrap-4.blade.php new file mode 100644 index 0000000..63c6f56 --- /dev/null +++ b/resources/views/vendor/pagination/bootstrap-4.blade.php @@ -0,0 +1,46 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/bootstrap-5.blade.php b/resources/views/vendor/pagination/bootstrap-5.blade.php new file mode 100644 index 0000000..a1795a4 --- /dev/null +++ b/resources/views/vendor/pagination/bootstrap-5.blade.php @@ -0,0 +1,88 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/default.blade.php b/resources/views/vendor/pagination/default.blade.php new file mode 100644 index 0000000..0db70b5 --- /dev/null +++ b/resources/views/vendor/pagination/default.blade.php @@ -0,0 +1,46 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/semantic-ui.blade.php b/resources/views/vendor/pagination/semantic-ui.blade.php new file mode 100644 index 0000000..ef0dbb1 --- /dev/null +++ b/resources/views/vendor/pagination/semantic-ui.blade.php @@ -0,0 +1,36 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/simple-bootstrap-4.blade.php b/resources/views/vendor/pagination/simple-bootstrap-4.blade.php new file mode 100644 index 0000000..4bb4917 --- /dev/null +++ b/resources/views/vendor/pagination/simple-bootstrap-4.blade.php @@ -0,0 +1,27 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/simple-bootstrap-5.blade.php b/resources/views/vendor/pagination/simple-bootstrap-5.blade.php new file mode 100644 index 0000000..a89005e --- /dev/null +++ b/resources/views/vendor/pagination/simple-bootstrap-5.blade.php @@ -0,0 +1,29 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/simple-default.blade.php b/resources/views/vendor/pagination/simple-default.blade.php new file mode 100644 index 0000000..36bdbc1 --- /dev/null +++ b/resources/views/vendor/pagination/simple-default.blade.php @@ -0,0 +1,19 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/simple-tailwind.blade.php b/resources/views/vendor/pagination/simple-tailwind.blade.php new file mode 100644 index 0000000..ea02400 --- /dev/null +++ b/resources/views/vendor/pagination/simple-tailwind.blade.php @@ -0,0 +1,25 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/vendor/pagination/tailwind.blade.php b/resources/views/vendor/pagination/tailwind.blade.php new file mode 100644 index 0000000..aee2ad2 --- /dev/null +++ b/resources/views/vendor/pagination/tailwind.blade.php @@ -0,0 +1,106 @@ +@if ($paginator->hasPages()) + +@endif