












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Semi Project Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Bui Nguyen Ngoc Han Ngo Thi Khanh Chi Phan Van Hao Nguyen Lam Tung Student ID
Class Assessor name Ngo Thi Mai Loan Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Grade
Grade: Assessor Signature: Date: Signature & Date:
b. Log out Name Logout Description Allow the actor to logout the account from the system Actor Admin/ Customer Activities Actor System Main flow: Log out successfully Main flow: Log out successfully Actor clicks on the Logout button on the profile management page Confirm logout then go to the Login page
c. Add User Name Add User Description Allow the actor to add User Actor Admin Activities Actor System Main flow: Add user Main flow: Add user Actor clicks on Add new User on the User Management page Actor fills in all information and clicks on Add button Load Add new user page Save the new user to the database and return to the User Management page
d. Update User Name Update User Description Allow the actor to edit User Actor Admin Activities Actor System Main flow: Edit user Main flow: Edit user Actor clicks on the Edit button on the role in User management page Actor updates a user and clicks on the Save button Switch to the Edit User page Confirm the update and return to the User Management Page
g. Add Product Name Add Product Description Allow the actor to add Product Actor Admin Activities Actor System Main flow: Add Product Main flow: Add Product Actor clicks on Add new Product on the Product Management page Actor fills in all information and clicks on Add button Load Add new Product page Save the new Product to the database and return to the Product Management page
h. Update product Name Update Product Description Allow the actor to edit Product Actor Admin Activities Actor System Main flow: Edit Product Main flow: Edit Product Actor clicks on the Edit button on the role in Product management page Actor updates a product and clicks on the Save button Switch to the Edit Product page Confirm the update and return to the Product Management Page
i. Delete Product Name Update Product Description Allow the actor to delete Product Actor Admin Activities Actor System Main flow: Delete Product Main flow: Delete Product Actor clicks on the Delete button on the Product in the Product management page Actor clicks on Confirm button Ask the actor to confirm the delete action. Successfully delete the Product and return to the Product Management page.
j. View Product Name View Product Description Allow the actor to view Product on the system Actor Admin Activities Actor System Main Flow: View Product Main Flow: View Product Actor clicks on Product Management from the navigation bar Load Product Information on the Product management detail page
m. Delete Type (Category) Name Update Type Description Allow the actor to delete Type (Category) Actor Admin Activities Actor System Main flow: Delete Type (Category) Main flow: Delete Type (Category) Actor clicks on the Delete button on the Category in the Category management page Actor clicks on Confirm button Ask the actor to confirm the delete action. Successfully delete the Category and return to the Category Management page
n. View Type (Category) Name View Type Description Allow the actor to view Type (Category) on the system Actor Admin Activities Actor System Main Flow: View Type (Category) Main Flow: View Type (Category) Actor clicks on Category Management from the navigation bar Load Category Information on the Category management detail page
o. Search Name Search Description Users, Guests and Admins can search for products on the site Actor Admin/User/Guest Activities Actor System Main Flow: Search product Main Flow: Search product Actor enter the name of the product you want to find and press Search Search and display products that match the product name the user searches for
II. System Designs
2.2. ERD Documentation a. Product Column Data Type Constraint productid Int(10) Primary key productname varchar(255) productdescription varchar(255) productimage varchar(255) price varchar(255) quantity varchar(255) status varchar(255) detail varchar(255) typeid int(10) Forgein key brandid int(10) Forgein key created_at timestamp updated_at timestamp
b. User Column Data Type Constraint userid int(10) Primary key username varchar(255) fullname varchar(255) email varchar(255) password varchar(255) phone varchar(255) role varchar(255) update_by varchar(255) created_at timestamp updated_at timestamp
e. Order Column Data Type Constraint orderid int(10) Primary key orderdate varchar(255) status varchar(255) delivered varchar(255) delivereddate varchar(255) address varchar(255) discount varchar(255) phone varchar(255) message varchar(255) userid int(10) Forgein key created_at timestamp updated_at timestamp
III. Wireframes Figure 4 : Home page
Figure 6 : Wireframes login
IV. Implementation
app/Models directory. Each model class corresponds to a database table, and through Eloquent, Laravel's ORM (Object-Relational Mapping) system, you can interact with the database using these models.resources/views directory. These files contain HTML, along with embedded PHP code that can output dynamic data. Laravel uses the Blade templating engine to make it easier to work with views.app/Http/Controllers directory. In this setup, the MVC pattern helps maintain a clear separation of concerns, making codebase more organized and easier to maintain. Laravel's routing system helps direct incoming requests to the appropriate controller methods, where can interact with models and prepare data for views. To summarize, MVC in Laravel follows these principles: