#99 Make E-com in Laravel 5.6 / 5.7 | Work on Admin Panel | View Registered Users | E-commerce Logo

Published: 01 January 1970
on channel: Stack Developers
1,454
28

In Part-99 of E-com series, we will work on admin panel and will show all registered users in admin panel. First we are going to replace Matrix logo with E-commerce logo everywhere in admin panel. Make changes in admin_login.blade.php file and other files as shown in video.

Now we are going to start working on users module in admin panel by taking below steps.

1) Create Route :-
We will create GET route for viewing users in web.php file like below:-

// Admin Users Route
Route::get('/admin/view-users','UsersController@viewUsers');

2) Create viewUsers function :-
Now we will create viewUsers function in UsersController to get all users and return to users blade file in admin that we will create.

3) Create users.blade.php file :-
Now create users folder under admin folder and create users.blade.php file and add datatable for displaying users in foreach loop same like we did for orders earlier as shown in video.

And add condition to show status as active if 1 or inactive if 0 as shown in video.

4) Update admin_sidebar.blade.php :-
Update admin_sidebar.php file to show Users tab with view-users link as shown in video.

We will not add delete option as it can create issue if we delete the user who already placed the order so you can add enable/disable option only.

Thanks for watching :)


Watch video #99 Make E-com in Laravel 5.6 / 5.7 | Work on Admin Panel | View Registered Users | E-commerce Logo online without registration, duration hours minute second in high quality. This video was added by user Stack Developers 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,45 once and liked it 2 people.