Professional Documents
Culture Documents
UNIVERSITY
Quest for Knowledge…
Department of
Management Information Systems (MIS)
Faculty of Business Studies
Khwaja Yunus Ali University
Submission by
Supervised by
Mohammed Nasiruzzaman
Assistant Professor & Head
Department of MIS
LETTER OF SUBMISSION
To
The Head
Department of MIS
Khwaja Yunus Ali University
Dear Sir,
With due respect and inform you that I have conducted my internship report on “Online
Shopping Management Systems” under the supervision of Mohammed Nasiruzzaman, Assistant
Professor & Head, Department of MIS, Khwaja Yunus Ali University. In course of completion
of the project, an internship report has been prepared under the supervision and guidance of my
supervisor.
In these circumstances, I would like to submit my Internship Report to your kind consideration
and necessities actions thereafter.
Thanking you
Obediently yours,
I hereby declare that this is the result of my own investigations, except where otherwise stated. I
also declare that is has not been previously or concurrently submitted as a whole for any other
degrees at KYAU or other institutions.
APPROVAL PAGE
I certify that I have supervised and read this study and that in my opinion, it conforms to
acceptable standards of scholarly presentation and is fully adequate in scope and quality, as Final
Year Project as partial fulfillment for a degree of Bachelor in Management Information Systems.
................................................
Md. Nasiruzzaman
Supervisor
................................................
[Examiner1 Name]
Examiner 1
................................................
[Examiner2 Name]
Examiner 2
ACKNOWLEDGEMENT
All thanks to Almighty ALLAH, the creator and the owner of this universe, the most merciful,
beneficent and the most gracious, who provided me guidance, strength and abilities to complete
the report.
First, I would like to thank Mohammad Nasiruzzaman, my project supervisor, for guiding me
through each and every step of the process with knowledge, suggestions and endless support.
This project would not have been possible without his continuous support. Thank you for your
advice, guidance and assistance.
Finally, I would like to thank my beloved parents, sister, guardians and husband for their never-
ending support, motivation and believe on me.
KEYWORDS
Term Definition
SQL server Structure query language for the database purposes. Used to define
procedures to store and retrieve data.
User A lay person who needs the system to do his task efficiently and
effectively. An account holder or a bank’s website visitor.
Computerized systems Computers, which will be used as clients to access the server database
according to its right.
Administrator A person that will be responsible for the addition and deletion of the staff
members from the general database of the system..
Software Requirements A document that completely describes all of the functions of a proposed
Specification system and the constraints under which it must operate. For example, this
document.
TABLE OF CONTENTS
Table of Contents
LETTER OF SUBMISSION.............................................................................................................................. 2
DECLARATION............................................................................................................................................... 3
APPROVAL PAGE........................................................................................................................................... 4
ACKNOWLEDGEMENT................................................................................................................................. 5
KEYWORDS..................................................................................................................................................... 6
TABLE OF CONTENTS................................................................................................................................... 7
ABSTRACT....................................................................................................................................................... 9
1.1 MOTIVATION.......................................................................................................................................................10
1.2 CONTRIBUTION SUMMARY...............................................................................................................................10
1.3 REPORT OUTLINE.............................................................................................................................................11
7.1 IMPLEMENTATLON....................................................................................................................................43
7.2 MAINTENANCE..........................................................................................................................................43
7.3 PROTOTYPE DEMOSTRATION.....................................................................................................................44
The primary goal of this e-commerce site is to sell goods and services online. with building up a
web-based business/Online Shopping Management System for online item deal. It will provide
the user with a category of different products available for purchase in the store. In order to
facilitate online purchase a shopping cart will provided to the user. The system is implemented
using a 3-tier approach, with a backend relational database (such as MySQL), a middle tier of
Object-Oriented PHP, and a web browser as the front-end client. This is a task with the goal to
build up an essential site where a client is given a shopping cart application and furthermore to
think about the advances used to grow such an application. This system involves its own
database to be maintained. The information or details about the products are stored in the
database. The server process is for dealing with the customers detail and the items that are
shipped to different locations based on the addresses provided by the customers. The application
design contains two modules one is for the customers who wish to buy the product and another is
for the store owners who maintains and updates the information regarding to the product and
about the customers. The end user to use this site are the common people for whom this
application is to be hosted on the web and the admin maintains the database.
CHAPTER 01: INTRODUCTION
1.1 MOTIVATION
The primary goal behind this venture is to build up a web-arranged application which can give a
web-based shopping highlight to the clients. As it were, this undertaking planned for making a
virtual shop condition for clients, in some helpful structure, which will be accessible to them
through web.
In spite of the fact that the impression of creating web-based shopping sites are not new in the
electronic market and has been developed not long after the World Wide Web (www). It is wise
to state that the way toward shopping on the web is getting common. The goal of this task is to
build up a universally useful online business store where any item, (for example, books, CDs,
PCs, cell phones, electronic things, and home machines) can be purchased from the solace of
home through web. Clients can peruse the assortment and decision results of intrigue. Client can
login into online business site, when he signed in then consequently one shopping cart will be
made once client select a thing forget it will add to that truck. In the event that client thinks the
chose thing isn't valuable for him, at that point he can erase that thing from the truck. More data
will be expected to finish the exchange if client need to purchase thing.
As a result, the client will be approached to fill or select a charging address, a delivery address, a
transportation alternative, and select installment choice. This framework has been planned
remembering all perspectives, for example, stacking the information and multifaceted nature and
keeping up the security of client certifications.
In current system client must go to shop and request items. It is hard to distinguish the necessary
item. Additionally, there are costs for venturing out from house to shop. It requires bunches of
time and time implies a great deal to everybody. Presently individuals attempting to make
shopping framework progressively simpler by utilizing web-based shopping framework. Already
numerous works have been done on internet shopping framework yet those are less easy to use
since UI isn't easy to use. All are centered some extraordinary kinds of client that is the reason
the interface isn't easy to use for all. Here my framework guarantees that everybody can utilize
this framework all the more effectively, we centered everybody, and interface is easier to use for
all. Here we concentrated on this issue and make an easy to use interface for all, here is no
compelling reason to exceptional information for purchasing anything. Client can purchase item
without any problem.
1. Chapter 02 contains existing system, proposed system and its benefit also discus on SDLC
and Methodology which is used in this project and that is waterfall model.
2. Chapter 03 discus about all types of requirements of this system also use case diagram and
all the tools which is used in this project.
3. Chapter 04 contains total analysis and diagrams also discus on project risk, project
schedule and all the function's description.
8. Chapter 09 concludes the report also discuss about future opportunities from this project
and experience.
CHAPTER 02: PROPOSED SYSTEM AND METHODOLOGY
The current scenario for shopping is to visit the shops and market physically and then from the
available product list one needs to pick the item he or she wants and then payment for the same
item mostly in cash method is done, as not all the society is well educated and conscious to use
net banking or card methods or wallets etc. This system isn't a lot of easy to understand as one
needs to go to the market truly and afterward chooses things just from the accessible rundown.
So, for the most part it is hard to get the item according to our craving. Portrayal about the items
are less accessible and are for the most part verbal as it were. For this kind of shopping one needs
to have plentiful measure of spare time. Likewise, not so much great markets exist all over the
place, so often great markets become far off without a doubt individual. This current procedure
of purchasing products has a few burdens. It requires loads of time to travel to the specific shop
to purchase the products. It is having bunches of manual work. Since everybody is driving
occupied life now a days, time implies a great deal to everybody. Additionally, there are costs for
traveling from house to shop. It is less easy to understand. In current situation client must go to
shop and request items. It is hard to recognize the necessary item. Increasingly over the shop
from where we would like to purchase something may not be open every minute of every
day/365. Subsequently, we need to modify our time with the businessperson's time or merchant's
time. In current system client need to go shop to see the depiction of the item.
The proposed system helps in building a site to purchase, sell items or merchandise web-based
utilizing web association. Not at all like conventional trade that is completed genuinely with
effort of an individual to proceed to get items, my project will make it simpler for human to
lessen physical work what's more, to spare time. The fundamental idea of the application is to
permit the client to shop for all intents and purposes utilizing the Internet and permit clients to
purchase the things of their desire from the store. In this proposed system clients need not to go
to the shops for buying the items [6].
Client can arrange the item he/she wishes to purchase using this system. The shop proprietor can
be the administrator of the system. Retailer can representative authorities specially to deal with
this, who will help proprietor in dealing with the clients and item arranges. The system
additionally underwrites a home delivery system for conveying the bought items. Empowers
buyers to shop or do different exchanges 24 hours every day, throughout the entire year from
practically any area. It very well may be gotten to over the web. Buying of merchandise on the
web, client can pick various items dependent on classifications, online installments, conveyance
administrations and subsequently covering the burdens of the current framework furthermore,
making the purchasing simpler and helping the consumer to arrive at more extensive market. It
gives purchaser with more decisions. Client can buy items on the web.
A good online business webpage satisfies the accompanying elements [4, 5]:
Knowing when a product was added or not added in the shopping card.
Retuning to various parts of the site after adding a product to the shopping card.
Basic route from landing page to data and request joins for explicit items.
Admin has the authority to add new particulars to the items list whenever needed.
Permission to the admin to view information about each customer who checkouts the
items list.
Permits the admin to alter the price of each item, whenever required or felt like.
2.1.3 Benefit of Proposed System
The main advantage of this system over traditional commerce is the user can browse online
shops, compare prices and order merchandise sitting at home on their PC [4]. Secure registration
and profile management facilities for customers. Shopping cart features include authorizations
web-based shopping clients to "place" product in the cart. It decreases the expense of making,
handling, circulating, putting away and recovering paper-based data. Rapidly, expand the
marketplace to national and universal markets. Upon "checkout' the product ascertains as
aggregate for the request including postage, pressing and expenses, if relevant. Lessens the time
between the cost of capital and the receipt of items and administrations.
It is a theoretical model used in project management that describes the stages involved in an
information system development project from a preliminary feasibility study through
maintenance of the completed application. Various SDLC methodologies have been developed to
guide the processes involved including the waterfall model (the original SDLC method) [2, 3].
Some methods work better for specific types of projects, but in the final analysis, the most
important factor for the success of a project may be how closely particular plan was followed
[l,2].
A Software Development Life Cycle is essentially a series of steps, or phases, that provide a
model for the development and lifecycle management of an application or piece of software. The
Software Development Life Cycle is a process that ensures good software is built. Each phase in
the life cycle has its own process and deliverables that feed into the next phase. Phases are given
bellow:
SDLC Models are: -
Water Fall Model
Agile Model
The Prototyping model / Evolutionary development
The Incremental model
Spiral Model
Without using of a specific life cycle model, the development of a software creation
would not be in a systematic and disciplined way.
When a software product is being developed by a team there must be a clear
understanding among team members about what to do and when to do [1, 21].
Not following misunderstanding and project failure.
2.3 METHODOLOGY
The Waterfall model is the earliest SDLC approach that was used for software development.
The waterfall Model illustrates the software development process in a linear sequential flow.
This means that any phase in the development process begins only if the previous phase is
complete.
The waterfall model is that documentation is produced at each phase and that it fits with
other engineering process models.
Disciplined approach
Careful checking by the Software Quality Assurance Group toward the finish of each
stage. (Or
testing in each phase.)
Documentation accessible toward the finish of each stage
Linear model.
Easy to understand and implement [1]
Identifies deliverables and milestones
The product is said to have life cycle made out of a few stages. At the feasibility stage, it is
fascinating that a few distinct arrangements will be tightened that fulfill the key specialized
prerequisites however which speak to various degree of ambition and cost. Possibility is the
assurance of whether a task quality doing. An attainability study is completed select a best
system that mate execution necessities. The information gathered during essential examination
inspects system practicalities that is probability that the system will be gainful to the association.
Four tests for attainability study are as per the following: -
Specialized Feasibility: This is concerned about indicating hardware and programming
that will effectively fulfill the utilization significantly, however may incorporate
The practicality to deliver yield in a given time since framework is sufficiently quick
to deal with various clients.
End user features that facilitate the enjoyment of Internet shopping include the following
[8]:
Users should be able to use the ecommerce application from any Web browser
supporting HTML 3.2 (or later) and cookies.
Visitors new to the site should be able to register by themselves. Users will be
differentiated by unique user identifiers.
Users should be able to view a complete list of specified items available through the
site.
Site visitors ought to have the option to search through the database utilizing
applicable keywords to recognize items of interest.
Users should be able to select items of interest and add them to their shopping carts
for future purchase.
Visitors should be able to modify the quantities of items in and/or delete items from
their shopping carts before checkout.
Users should be able to view the status of items they have ordered.
Administrators who manage the site have specific requirements of their own [8].
Site managers should be able to view all transactions for the day.
So, this is the overall process of making the Online Shopping system worked, and
user can get the policy without any headache of agent and sometime don not need to
provide commission to them.
3.3.1 Functional Requirement
The System must provide following functionalities [8]
24 X 7 availability.
Better module design to get better performance at ultimate time.
Flexible service-based architecture will be highly desirable for future extension.
Security
Reliability
Portability
Maintainability
Extensibility
Reusability
Compatibility
Resource utilization
3.4 USE CASE DIAGRAM
Following figure 03 show the use of functionality of User and the Admin of this system.
Admin can
access all the part of this system but user can only access some of the feature which are onJy
free for them.
Backend Access
Frontend Access
Registration
Admin
Checkout
Order Products
Cancel Products
Process Orders
ADD Products
Update Products
Delete Products
Figure 03: Use Case Diagram of Online Shopping Management System (OSMS)
3.5 USED PLATFORM/TOOLS
Front-End: Web pages using HTML, CSS and JavaScript. Programming Language:
PHP
Back-End: MYSQL
PHP−¿PHP is a technology that lets you mix regular, static HTML with dynamically
generated HTML [14]. Many Web pages that are built by CGI programs are mostly
static, with the dynamic part limited to a few small locations. But most CGI variations,
including servlets, make you generate the entire page via your program, even though
most of it is always the same. PHP is a widely used, general-purpose scripting language
that was originally designed for web development, to produce dynamic web pages. It
can be embedded into HTML and generally runs on a web server, which needs to be
configured to process PHP code and create web page content from it. It can be deployed
on most web servers and on almost every operating system and platform free of charge.
PHP is installed on over 20 million websites and 1 million web servers.
Below figure 04 shows the login activity of admin panel means how to login the admin
panel of this system [ I6, 17]. First admin will input username and password if information
is valid than admin will see the admin panel if info is invalid than it will stop access to
admin panel.
Invalid
Valid
Following figure 05 shows how admin can add a product in product list [17, 18]. First
admin will login by inputting username and password if it is valid than admin can add
product in list otherwise not If admin add product without any error than system will
show successful message if not than system will show error message.
Invalid
Valid
No
Add Product to List Error Message
Yes
Success Message
Following figure 06 shows the order process activity of this system [16, 18].
Wish List
Skip
Like
Yes
Order Product
No Authentication
Registration Login
Yes
Checkout
Following figure 07 shows the total process of checkout or payment and shipping activity of this
system [l8]. It starts from confirm checkout phase. If customer want to buy than must have to
choose payment option and must have to input their card detail also the have to give their
shipping or billing address. After that order will be go on progress mode than admin will confirm
the order and send it to the customer and deliver the order to the customer. If customer select
cash on delivery mode than before receive product customer must have to pay the bill. Then will
be completed.
4.2 RISK ENGINEERING
There are several kinds of risks that should be considered in any software project. The
following categories of risks had considered in this software project:
These risks can hamper the project plan. If these risks become real, it is likely that the
project schedule will slip and that costs will increase. Project risks identify possible
budgetary, plan, work force, asset, client and necessity issues and their effect on the
software project.
These risks threaten the quality and timeliness of the software to be produced. If a
technical risk turns into a truth, execution may become difficult or impossible. Technical
risks detect potential design, implementation, interface, verification and maintenance
problems.
These risks threaten the feasibility of the software to be built. The business risks can be-
Market risks: Building a system that no one really wants
Strategic risks: Building a system that no longer fits into the overall business
strategy for the company Building a system whose business needs have been
changed.
Management risks: Losing the support of senior management due to a change in
focus or a change in people
Budget risks: Losing budgetary or personnel commitment
Before analyzing and managing the risks, it was necessary to identify the potential 1isks in
this project.
4.2.2 Risk Identification
Risk Identification is a step by step process to specify risks to the project plan. By
identifying known and predictable risks, it is possible to avoid or mitigate the identified
risks.
The identified risks of different categories of this software project are given below:
Risk projection attempts can happen in two ways - Likelihood or Probability. That the risk
is real and the consequences of the problems associated with the risk. The risk projection
is also known as risk estimation.
Four risk projection activities have been performed to measure the risks in this project [12].
They are:
Establish a scale that reflects the perceived likelihood of a risk define the
consequences of the risks
Estimate the impact of the risk on the project and the product
Note the overall accuracy of the risk projection
Following Table 01 shows the risk projection
No internet connection 1
Technology
The database used in the system cannot process as
many transactions per second as expected. 2
Customer Information F2
Product Information F3
Checkout Information F4
Cart Information F8
Order Information F9
Function description describes the functions in details. It concerns on three factors: what is
the possible input, possible output for a particular function and which table of the database
uses by that function.
Login Information Fl
Customer Information F2
Product information F3
Checkout Information F4
Input: Insert customerusername and password Output: Activate tbl_order table and
display in a page.
Output: Activate tbl_admin and tbl_category table and display admin panel with
category list
User table of the database: Database: db_shop; Table: tbl_admin and tbl_category
Output: Activate Lbl_admin and tbJ_ br and table and display admin panel with brand list
User table of the database: Database: db_shop; Table: tbl_admin and tbl_brand
Cart Information F8
Output: Activate tbl_cart and tbl_ad.min table and display home page from there click cart
page.
User table of the database: Database: db_shop; Table: tbl_cart and tbl_admin
Order Information F9
Output: Activate tbl_admin and tbl_order table and display admin panel with order list
User table oftbe database: Database: db_shop; Table: tbl_ad.min and tbl_brand
Output: Activate tbl_cart and tbl_admin table and display homepage from there click
compare page.
User table of the database: Database: db_shop; Table: tbl_cart and tbl_admin
A data model is a conceptual representation of the data structures that are required by a
database. The first step in designing a database is to develop an Entity Relation Diagram
(ERD) [19, 20]. The ERO serves as a blue print from which a relational database maybe
deduced. Figure below shows the ERO for the project.
Now we will discuss the whole ER-diagram to make better understanding. Here we have
different Entities such as Order, Customer, Product, Payment, Cart, Brand let looks one by
one which is as follow. It shows all the relationship of this system database. Entity has 3
types relationship 1st one is one to one, 2nd one is one to many and 3 rd one is many to many
which are stand for 1:1, 1: N, N:M [19, 20].
Figure 09: Entity Relationship
Diagram
5.1.2 Process Model
A Process Model tells us about how the data is processed and how the data flows from one
table to another to gather the required information. This model consists of the Functional
Decomposition Diagram and Data Flow Diagram.
SDLC is a process used by the software industry to design, develop and test high quality
software. The SDLC aims to produce a high-quality software that meets or exceeds customer
expectations, reaches completion within times and cost estimates.
Revised Requirement
User Requirement Specification
Initial Requirement
Requirement Determination Investigation Feasibility Analysis
Decision to Design Information System
Feasibility Study
Test Plan
Functional Specification
Logical System Design
Physical Requirement
Configuration
System
Schedule
Budget
i. Registration Module
This is one of the main tasks of the developer to design a graphical user interface that user
attracts to and can use easily; in one word it should be user friendly. So, for this we should
have better understanding of customers likes and dislikes and the features that are in trend
and mesmerize the public easily, initially we need to locate the targeting people that what
kind of application do they need. After getting all this information we should start to design
the application. After checking all the information than design this project interface.
CHAPTER 06: TESTING
Software testing is used in association with verification and validation. In this stage, both
individual components and the integrated whole are methodically verified to ensure that
they are error-free and fully meet the requirements outlined in the first step.
6.1.1 Verification
Have we built the software, right? (i.e. Does it match the specification?) Yes, we built the right
software. It matches all specification.
Verification is the process of evaluating a system or component to determine whether the
products of a given development phase satisfy the conditions imposed at the start of that
phase.
6.1.2 Validation
Have we built the right software? (i.e. Is this what the customer wants?)
Validation is the process of evaluating a system or component during or at the end of the
development process to determine whether it satisfies specified requirements. Validation has
been done of this project.
After examine and change the software engineering process itself to reduce the number of
faults that end up in the delivered software: the so-called defect rate. It has also been checked
by the specialist.
6.3 TEST PLAN
All the features of the website are tested by running each function available in the
website.
The results of the tests conducted on the website are analyzed properly.
Only after getting satisfactory results of testing the website can be uploaded on the
network. (i.e. internet.)
7.1 IMPLEMENTATLON
Though this project was only for education purpose, implement it properly by the help of
some of friends and users. The implementation phase involves installing approved
applications into production environments. Primary tasks were include announcing the
implementation schedule, training end users, and installing the project. Additionally, my
mends input and verify data, configure and test system and security parameters, and
conduct post-implementation reviews. After installing the project, Input pre-existing data
manually and electronically to the new system. Verifying the accuracy of the input data and
security configurations was a critical part of the implementation process.
Organizations often run a new system in parallel with an old system until they verify the
accuracy and reliability of the new system. Employees should document any programming,
procedural, or configuration changes made during the verification process.
7.2 MAINTENANCE
Payment Page-
Order Confirmation Page -
Dashboard -
Add Slider-
Category List -
Product List -
CHAPTER 08: FUTURE PLAN, CONCLUSION
8.2 EXPERIENCES
During the making/developing of this project explored new ideas and functionality behind
the working of a notepad. This project is the output of our planning, schedule, programming
skill and the hard work, and this report reflects our steps taken at various levels of
programming skill, planning and schedule. Learnt a lot during this project and liked the
improvement in my testing skills and deep concept related to these kinds of projects.
8.3 CONCLUSIONS
Finally, successfully develop and implement the site ‘Online Shopping Management
System’. With the help of various kinds of links and tools, includes all the features which
was basic requirement for an ecommerce web site. Provide an ecommerce site which is live
and running on the web. Finally got success in our attempt to take care of the needs of both
the customers as well as the administrator which was our main objectives.
CHAPTER 09: INDEX
Route -
Route::get("/","HomeController@index")->name("home");
Route::get("/how-to-order","HomeController@how2order")->name("h2o");
Route::get("/privacy-policy","HomeController@privacy")->name("privacy");
Route::get("/product-find","HomeController@findAllPro")->name("show");
Route::get("/cart", "HomeController@cart")->name("cart");
Route::get("/product-details/{id}", "HomeController@show")->name("pDetails");
Route::post("/add-to-cart", "HomeController@add2cart")->name("add2Cart");
Route::post("/add-2-cart", "HomeController@addTocart")->name("addToCart");
Route::get("/show-cart", "HomeController@show_cart")->name("showCart");
Route::get("/delete-to-cart/{id}", "HomeController@delete_cart")->name("delCart");
Route::post("/update-to-cart", "HomeController@update_cart")->name("upCart");
Route::get("/filter-product/{id}", "HomeController@filter_product")->name("filter");
Route::get("/product-filter/{id}", "HomeController@filter")->name("fil");
// Checkout Controller
Route::get("/login-check", "CheckOutController@login_check")->name("logCk");
Route::get("/checkout", "CheckOutController@index")->name("checkout");
Route::post("/customer-registration", "CheckOutController@customer_registration")-
>name("custReg");
Route::post("/customer-login", "CheckOutController@customer_login")->name("custLogin");
Route::get("/logout", "CheckOutController@log_out")->name("logout");
Route::post("/save-shipping-details", "CheckOutController@save_shipping")-
>name("saveShip");
Route::post("/place-order", "CheckOutController@order")->name("order");
Route::get("/my-order", "CheckOutController@myOrder")->name("myOrder");
Route::get("/confirm-order", "CheckOutController@confirm")->name("confirm");
Route::get("/test", "CheckOutController@test")->name("test");
// Auth Controllers
Route::get("/admin", "authController@index")->name('login');
Route::post('/admin/login-check','authController@login_check')->name('logCheck');
Route::get('/admin/logout','authController@logout')->name('logOut');
// Admin Controller
Route::get("/admin/dashboard","AdminController@index")->name("admin");
// Slider Information
Route::get("/admin/slider-create","SliderController@create")->name("slider");
Route::post("/admin/slider-add","SliderController@store")->name("addSlider");
Route::get("/admin/slider-view","SliderController@index")->name("viewSlider");
Route::get("/admin/slider-edit/{id}","SliderController@edit")->name("editSlider");
Route::get("/admin/slider-active/{id}","SliderController@active")->name("active");
Route::get("/admin/slider-inactive/{id}","SliderController@inactive")->name("inActive");
Route::post("/admin/slider-delete/{id}","SliderController@destroy")->name("delete");
Route::post("/admin/slider-update/{id}","SliderController@update")->name("updateSlider");
// Category Information
Route::get("/admin/category-create","CategoryController@create")->name("addCat");
Route::post("/admin/category-store","CategoryController@store")->name("storeCat");
Route::get("/admin/category-view","CategoryController@index")->name("viewCat");
Route::get("/admin/category-edit/{id}","CategoryController@edit")->name("editCat");
Route::get("/admin/category-active/{id}","CategoryController@active")->name("catAc");
Route::get("/admin/category-inactive/{id}","CategoryController@inactive")-
>name("catInAc");
Route::post("/admin/category-delete/{id}","CategoryController@destroy")->name("catDel");
Route::post("/admin/category-update/{id}","CategoryController@update")->name("catUp");
// Sub-Category Information
Route::get("/admin/sub-category-create","SubCategoryController@create")-
>name("addSubCat");
Route::post("/admin/sub-category-store","SubCategoryController@store")-
>name("storeSubCat");
Route::get("/admin/sub-category-view","SubCategoryController@index")-
>name("viewSubCat");
Route::get("/admin/sub-category-edit/{id}","SubCategoryController@edit")-
>name("editSubCat");
Route::get("/admin/sub-category-active/{id}","SubCategoryController@active")-
>name("subCatAc");
Route::get("/admin/sub-category-inactive/{id}","SubCategoryController@inactive")-
>name("subCatInAc");
Route::post("/admin/sub-category-delete/{id}","SubCategoryController@destroy")-
>name("subCatDel");
Route::post("/admin/sub-category-update/{id}","SubCategoryController@update")-
>name("subCatUp");
// Sub-Category Item
Route::get("/admin/sub-category-item-create","SubCategoryItemController@create")-
>name("addSubCatItem");
Route::get("/admin/sub-category-item-view","SubCategoryItemController@index")-
>name("viewSubCatItem");
Route::post("/admin/sub-category-item-store","SubCategoryItemController@store")-
>name("storeSubCatItem");
Route::post('/admin/sub-category-item-find', 'SubCategoryItemController@findSub')-
>name('findSub');
Route::get("/admin/sub-category-item-edit/{id}","SubCategoryItemController@edit")-
>name("editSubCatItem");
Route::get("/admin/sub-category-item-active/{id}","SubCategoryItemController@active")-
>name("subCatItemAc");
Route::get("/admin/sub-category-item-inactive/
{id}","SubCategoryItemController@inactive")->name("subCatItemInAc");
Route::post("/admin/sub-category-item-delete/{id}","SubCategoryItemController@destroy")-
>name("subCatItemDel");
Route::post("/admin/sub-category-item-update/{id}","SubCategoryItemController@update")-
>name("subCatItemUp");
// Product Information
Route::get("/admin/product-create","ProductController@create")->name("addPd");
Route::get("/admin/product-view","ProductController@index")->name("viewPd");
Route::post("/admin/product-store","ProductController@store")->name("storePd");
Route::post('/admin/product-search', 'ProductController@search')->name('search');
Route::post('/admin/product-find', 'ProductController@find')->name('find');
Route::get("/admin/product-edit/{id}","ProductController@edit")->name("pdEdit");
Route::get("/admin/product-view-details/{id}","ProductController@show")-
>name("pdViewDet");
Route::get("/admin/product-active/{id}","ProductController@active")->name("pdAc");
Route::get("/admin/product-inactive/{id}","ProductController@inactive")->name("pdInAc");
Route::post("/admin/product-delete/{id}","ProductController@destroy")->name("pdDel");
Route::post("/admin/product-update/{id}","ProductController@update")->name("pdUp");
// Color Information
Route::post("/admin/color-add","ColorController@store")->name("addColor");
Route::get("/admin/color-view","ColorController@index")->name("viewColor");
Route::post("/admin/color-delete/{id}","ColorController@destroy")->name("delColor");
Frontend/ Master.php -
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Online Fashion House: The Best Seller of Sharee, Three-Pies & Clothing । Designed
& Developed by EK.</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<!-- Body main wrapper start -->
<div class="wrapper fixed__footer">
<div class="body__overlay"></div>
<!-- Start Offset Wrapper -->
<div class="offset__wrapper">
<!-- Start Search Popap -->
<div class="search__area">
<div class="container" >
<div class="row" >
<div class="col-md-12" >
<div class="search__inner">
<form action="#" method="get">
<input class="search-placeholder" placeholder="Search a product ... "
type="text">
<button type="submit"></button>
</form>
<div class="search__close__btn">
<span class="search__close__btn_icon"><i class="zmdi zmdi-
close"></i></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Search Popap -->
</div>
<!-- Body main wrapper end -->
<!-- QUICKVIEW PRODUCT -->
<div id="quickview-wrapper">
<!-- Modal -->
<div class="modal fade" id="productModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal__container" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<div class="modal-product">
<!-- Start product images -->
<div class="product-images">
<div class="main-image images">
<img alt="big images" id="image" src="">
</div>
</div>
<!-- end product images -->
<div class="product-info">
<h1 id="name"></h1>
{{-- <div class="rating__and__review">
<ul class="rating">
<li><span class="ti-star"></span></li>
<li><span class="ti-star"></span></li>
<li><span class="ti-star"></span></li>
<li><span class="ti-star"></span></li>
<li><span class="ti-star"></span></li>
</ul>
<div class="review">
<a href="#">4 customer reviews</a>
</div>
</div> --}}
<div class="price-box-3">
<div class="s-price-box">
<span id="new_price" class="new-price"></span>
<span class="old-price">$45.00</span>
</div>
</div>
<div id = "details" class="quick-desc">
</div>
<div class="select__color">
<h2>Select color: </h2>
<div id="color">
{{-- <label class="color-tab" style="background-color:red"></label>
--}}
</div>
</div>
<div class="select__size">
<h2>Select size: </h2>
<div id="size">
</div>
</div>
<div class="addtocart-btn">
<a href="#">Add to cart</a>
</div>
</div><!-- .product-info -->
</div><!-- .modal-product -->
</div><!-- .modal-body -->
</div><!-- .modal-content -->
</div><!-- .modal-dialog -->
</div>
<!-- END Modal -->
</div>
<!-- END QUICKVIEW PRODUCT -->
<!-- Placed js at the end of the document so the pages load faster -->
function filter_data(){
$('.filter_data').html('<div id="loading" style="" ></div>');
// $('ul.sub_cat_id li a').click(function() {
// event.preventDefault();
var sub_cat_id = 1;
// });
$.ajax({
url: "{{route('test')}}",
type: "POST",
data: {
sub_cat_id:sub_cat_id,
"_token": "{{ csrf_token() }}",
},
success:function(data){
$('.filter_data').html(data);
}
});
}
});
</script> --}}
<script>
$(document).on('click', '.detail-link', function(){
var product_id = $(this).attr("id");
console.log(product_id);
$.ajax({
type: "GET",
url:"{{route('show')}}",
data:{
product_id:product_id,
"_token": "{{ csrf_token() }}",
},
dataType:"JSON",
success:function(response){
// console.log(response);
var array = eval(response);
// $('[id*=Name]').val(array[0].Name);
// console.log(array);
// console.log(array[0].product_id);
// $('#name').val(array[0].product_id);
const color = array[0].product_color.split(',');
var i;
for (i = 0; i < color.length; i++) {
// console.log(words[i]);
lblcolor = document.createElement("Label");
lblcolor.style.backgroundColor = color[i];
lblcolor.className = "color-tab";
document.getElementById("color").appendChild(lblcolor);
}
document.getElementById("name").innerHTML = array[0].product_name;
document.getElementById("new_price").innerHTML = '৳ '
+array[0].product_price;
document.getElementById("image").src = array[0].product_image;
},
error: function(error) {
console.log(error);
}
});
});
</script>
<script>
$(document).on('click', '.close', function(){
document.getElementById('color').innerHTML = '';
document.getElementById('size').innerHTML = '';
});
</script>
<script>
@if (Session::has('message'))
var type = "{{ Session::get('alert-type', 'info') }}"
switch(type){
case 'info':
toastr.options.timeOut = 10000;
toastr.info("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
case 'success':
toastr.options.timeOut = 10000;
toastr.success("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
case 'warning':
toastr.options.timeOut = 10000;
toastr.warning("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
case 'error':
toastr.options.timeOut = 10000;
toastr.error("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
}
@endif
</script>
</body>
</html>
Frontend/Content.php -
@section('content')
<!-- End Feature Product -->
<div class="only-banner bg__white">
<div class="container">
<div class="only-banner-img">
<a href="shop-sidebar.html"><img src="" alt=""></a>
</div>
</div>
</div>
@php
use Rakibhstu\Banglanumber\NumberToBangla;
$numto = new NumberToBangla();
@endphp
$sub_cat_item =DB::table('sub__category__items')
->select('sub__category__items.*')
->where('status', 1)
->where('sub__category__items.sub_cat_id', $sub_id)
->orderby('sub_cat_id', 'asc')
->get();
@endphp
<!-- Start Our Product Area -->
<section class="htc__product__area ptb--100 bg__white">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="product-categories-all">
<div class="product-categories-title">
<h3>{{$subCat->sub_cat_name}}</h3>
</div>
<div class="product-categories-menu">
<ul class="sub_cat_id">
@foreach ($sub_cat_item as $subCatItem)
<li><a href="{{route('filter',Hashids::encode($subCatItem-
>sub_cat_item_id))}}" id="{{$subCatItem->sub_cat_item_id}}">{{$subCatItem-
>sub_cat_item_name}}</a></li>
@endforeach
</ul>
</div>
</div>
</div>
<div class="col-md-9">
<div class="product-style-tab">
<div class="product-tab-list">
<!-- Nav tabs -->
<ul class="tab-style product-tab-list-btn" role="tablist">
<li class="active">
<a href="#home9" data-toggle="tab">
<div class="tab-menu-text">
<h4><strong>New</strong> </h4>
</div>
</a>
</li>
{{-- <li>
<a href="#home10" data-toggle="tab">
<div class="tab-menu-text">
<h4><strong>জনপ্রিয়</strong> </h4>
</div>
</a>
</li> --}}
</ul>
<div class="all-product-btn">
<a href="shop-sidebar.html"><strong>All Products</strong></a>
</div>
</div>
<div class="tab-content another-product-style jump">
<div class="tab-pane active" id="home9">
<div class="row">
<div class="product-slider-active2 filter_data">
@php
$product =DB::table('products')
->join('sub__category__items', 'products.sub_cat_item_id',
'=', 'sub__category__items.sub_cat_item_id')
->join('sub_categories', 'sub__category__items.sub_cat_id',
'=', 'sub_categories.sub_cat_id')
->select('products.*')
->where('products.status', 1)
->where('sub_categories.status', 1)
->where('sub__category__items.status', 1)
->where('sub_categories.sub_cat_id', $sub_id)
->orderby('product_id', 'desc')
->get();
@endphp
@foreach($product as $pro)
<div class="col-md-3 single__pro col-lg-3 cat--1 col-sm-3 col-xs-
12">
<div class="product">
<div class="product__inner">
<div class="pro__thumb">
<a href="{{route('pDetails', $pro->product_id)}}">
<img src="{{URL::to($pro->product_image)}}"
alt="product images">
</a>
</div>
<div class="product__hover__info">
<ul class="product__action">
<li>
<form method='POST' action="{{route('addToCart')}}">
{{ csrf_field() }}
<input type="hidden" name="product_id"
value="{{$pro->product_id}}">
<input type="hidden" name="qty" value="1">
<button type="submit" class="btn btn-defalult
btn_cart"><span class="ti-shopping-cart"></span></button>
</form>
</li>
<li><a title="Wishlist" href="wishlist.html"><span
class="ti-heart"></span></a></li>
</ul>
</div>
</div>
<div class="product__details">
<h2><a href="{{route('pDetails', $pro-
>product_id)}}">{{$pro->product_name}}</a></h2>
<ul class="product__price">
<li class="old__price"> ৳ {{$numto-
>bnNum(number_format($pro->product_price))}}</li>
<li class="new__price"> ৳ {{$numto-
>bnNum(number_format($pro->product_price - ($pro->product_price * $pro-
>product_discount /100)))}}</li>
</ul>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Our Product Area -->
@endforeach
@endsection
Frontend/Header.php -
@section('header')
<header id="header" class="htc-header header--3 bg__white">
<!-- Start Mainmenu Area -->
<div id="sticky-header-with-topbar" class="mainmenu__area sticky__header">
<div class="container">
<div class="row">
<div class="w3ls-header"><!--header-one-->
<div class="w3ls-header-left">
<p><a href="#"><i class="fa fa-phone" aria-hidden="true"></i>  01400-605419
  &   01974-474294</a></p>
</div>
<div class="w3ls-header-right">
<ul>
<li class="dropdown head-dpdn">
<a href="#" class="dropdown-toggle"><i class="fa fa-comments" aria-
hidden="true"></i> Suggestion</a>
</li>
<li class="dropdown head-dpdn">
<a href="#" class="dropdown-toggle"><i class="fa fa-compass" aria-
hidden="true"></i> Track Order</a>
</li>
<li class="dropdown head-dpdn">
<a href="#" class="dropdown-toggle"><i class="fa fa-question-circle" aria-
hidden="true"></i> Help</a>
</li>
<li class="dropdown head-dpdn">
@php
$cust_id = Session::get('customer_id');
$cust_name = Session::get('customer_name');
@endphp
<?php if ($cust_id != NULL && $cust_name != NULL) { ?>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-
user" aria-hidden="true"></i> {{$cust_name}}<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{route('logout')}}"><i class="fa fa-sign-in" aria-
hidden="true"></i> Logout </a></li>
{{-- <li><a href="#"><i class="fa fa-user-plus" aria-hidden="true"></i>
রেজিস্ট্রেশন</a></li> --}}
<li><a href="{{route('myOrder')}}"><i class="fa fa-cart-arrow-down" aria-
hidden="true"></i> My Order</a></li>
</ul>
<?php }else{?>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-
user" aria-hidden="true"></i> User Name<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{route('logCk')}}"><i class="fa fa-sign-in" aria-
hidden="true"></i> Login </a></li>
<li><a href="#"><i class="fa fa-user-plus" aria-hidden="true"></i>
Registration</a></li>
<li><a href="#"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i> My
Orders</a></li>
</ul>
<?php } ?>
</li>
</ul>
</div>
<div class="clearfix"> </div>
</div>
</div>
<div class="row">
<div class="col-md-2 col-lg-2 col-sm-3 col-xs-3">
<div class="logo">
<a href="{{route('home')}}">
<img src="{{asset('frontend/images/logo/logo.png')}}" alt="logo">
</a>
</div>
</div>
Frontend/Footer.php -
@section('footer')
<!-- Start Footer Area -->
<footer class="htc__foooter__area gray-bg">
<div class="container">
<div class="row">
<div class="footer__container clearfix">
<!-- Start Single Footer Widget -->
<div class="col-md-3 col-lg-3 col-sm-6">
<div class="ft__widget">
<div class="ft__logo">
<a href="{{route('home')}}">
<img src="{{asset('frontend/images/logo/logo.png')}}" alt="footer
logo">
</a>
</div>
<div class="footer-address">
<ul>
<li>
<div class="address-icon">
<i class="zmdi zmdi-pin"></i>
</div>
<div class="address-text">
<p>Enayetpur, Chawhali, Sirajgonj</p>
</div>
</li>
<li>
<div class="address-icon">
<i class="zmdi zmdi-email"></i>
</div>
<div class="address-text">
<a href="#"> info@example.com</a>
</div>
</li>
<li>
<div class="address-icon">
<i class="zmdi zmdi-phone-in-talk"></i>
</div>
<div class="address-text">
<p>+012 345 678 102 </p>
</div>
</li>
</ul>
</div>
<ul class="social__icon">
<li><a href="#"><i class="zmdi zmdi-twitter"></i></a></li>
<li><a href="#"><i class="zmdi zmdi-instagram"></i></a></li>
<li><a href="#"><i class="zmdi zmdi-facebook"></i></a></li>
<li><a href="#"><i class="zmdi zmdi-google-plus"></i></a></li>
</ul>
</div>
</div>
<!-- End Single Footer Widget -->
<!-- Start Single Footer Widget -->
<div class="col-md-3 col-lg-2 col-sm-6 smt-30 xmt-30">
<div class="ft__widget">
<h2 class="ft__title">Product List</h2>
<ul class="footer-categories">
<li><a href="shop-sidebar.html">Men</a></li>
<li><a href="shop-sidebar.html">Women</a></li>
<li><a href="shop-sidebar.html">Accessories</a></li>
<li><a href="shop-sidebar.html">Shoes</a></li>
<li><a href="shop-sidebar.html">Dress</a></li>
<li><a href="shop-sidebar.html">Denim</a></li>
</ul>
</div>
</div>
<!-- Start Single Footer Widget -->
<div class="col-md-3 col-lg-2 col-sm-6 smt-30 xmt-30">
<div class="ft__widget">
<h2 class="ft__title">Quick Links</h2>
<ul class="footer-categories">
<li><a href="{{route('home')}}">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="{{route('h2o')}}">How to Order</a></li>
<li><a href="#">Return & Change</a></li>
<li><a href="#">Terms & Condition</a></li>
<li><a href="{{route('privacy')}}">Privacy Policy</a></li>
</ul>
</div>
</div>
<!-- Start Single Footer Widget -->
<div class="col-md-3 col-lg-3 col-lg-offset-1 col-sm-6 smt-30 xmt-30">
<div class="ft__widget">
<h2 class="ft__title">Newsletter</h2>
<div class="newsletter__form">
<p>Subscribe to our newsletter and get 10% off your first purchase
.</p>
<div class="input__box">
<div id="mc_embed_signup">
<form action="#" method="post" id="mc-embedded-subscribe-
form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll"
class="htc__news__inner">
<div class="news__input">
<input type="email" value="" name="EMAIL"
class="email" id="mce-EMAIL" placeholder="Email Address" required>
</div>
<!-- real people should not fill this in and expect good
things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-
hidden="true"><input type="text" name="b_6bbb9b6f5827bd842d9640c82_05d85f18ef"
tabindex="-1" value=""></div>
<div class="clearfix subscribe__btn"><input type="submit"
value="Send" name="subscribe" id="mc-embedded-subscribe" class="bst__btn btn--
white__color">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- End Single Footer Widget -->
</div>
</div>
<!-- Start Copyright Area -->
<div class="htc__copyright__area">
<div class="row">
<div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">
<div class="copyright__inner">
<div class="copyright">
<p>© 2020 All Right Reserved. Designed & Developed by <a>Elias
Khan (EK)</a></p>
</div>
<ul class="footer__menu">
<li><a href="index.html">Home</a></li>
<li><a href="shop.html">All Products</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- End Copyright Area -->
</div>
</footer>
<!-- End Footer Area -->
@endsection
Frontend/Sidebar.php-
@section('sidebar')
<!-- Start Feature Product -->
<section class="categories-slider-area bg__white">
<div class="container">
<div class="row">
{{-- Slider Section --}}
<div class="col-md-9 col-lg-9 col-sm-8 col-xs-12 float-left-style">
<!-- banner -->
<div class="banner">
<div id="kb" class="carousel kb_elastic animate_text kb_wrapper" data-
ride="carousel" data-interval="6000" data-pause="hover">
<!-- Wrapper-for-Slides -->
Frontend/Product_Details.php -
@extends('frontend/layout/master')
@include('frontend/layout/header')
@section('content')
<!-- Start Product Details -->
<section class="htc__product__details pt--120 pb--100 bg__white">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-6 col-sm-12 col-xs-12">
<div class="product__details__container">
<!-- Start Small images -->
<ul class="product__small__images" role="tablist">
<li role="presentation" class="pot-small-img active">
<a href="#img-tab-1" role="tab" data-toggle="tab">
<img src="{{URL::to($product->product_image)}}" alt="small-image">
</a>
</li>
{{-- <li role="presentation" class="pot-small-img">
<a href="#img-tab-2" role="tab" data-toggle="tab">
<img src="{{asset('frontend/images/product-details/small-img/2.jpg')}}"
alt="small-image">
</a>
</li> --}}
{{-- <li role="presentation" class="pot-small-img hidden-xs">
<a href="#img-tab-3" role="tab" data-toggle="tab">
<img src="{{asset('frontend/images/product-details/small-img/3.jpg')}}"
alt="small-image">
</a>
</li>
<li role="presentation" class="pot-small-img hidden-xs hidden-sm">
<a href="#img-tab-4" role="tab" data-toggle="tab">
<img src="{{asset('frontend/images/product-details/small-img/2.jpg')}}"
alt="small-image">
</a>
</li> --}}
</ul>
<!-- End Small images -->
<div class="product__big__images">
<div class="portfolio-full-image tab-content">
<div role="tabpanel" class="tab-pane fade in active product-video-position"
id="img-tab-1">
<img src="{{URL::to($product->product_image)}}" alt="full-image">
</div>
{{-- <div role="tabpanel" class="tab-pane fade product-video-position"
id="img-tab-2">
<img src="{{asset('frontend/images/product-details/big-img/12.jpg')}}"
alt="full-image">
<div class="product-video">
<a class="video-popup" href="https://www.youtube.com/watch?
v=cDDWvj_q-o8">
<i class="zmdi zmdi-videocam"></i> View Video
</a>
</div>
</div>
<div role="tabpanel" class="tab-pane fade product-video-position" id="img-
tab-3">
<img src="{{asset('frontend/images/product-details/big-img/11.jpg')}}"
alt="full-image">
<div class="product-video">
<a class="video-popup" href="https://www.youtube.com/watch?
v=cDDWvj_q-o8">
<i class="zmdi zmdi-videocam"></i> View Video
</a>
</div>
</div>
<div role="tabpanel" class="tab-pane fade product-video-position" id="img-
tab-4">
<img src="{{asset('frontend/images/product-details/big-img/12.jpg')}}"
alt="full-image">
<div class="product-video">
<a class="video-popup" href="https://www.youtube.com/watch?
v=cDDWvj_q-o8">
<i class="zmdi zmdi-videocam"></i> View Video
</a>
</div>
</div> --}}
</div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-6 col-sm-12 col-xs-12 smt-30 xmt-30">
<div class="htc__product__details__inner">
<div class="pro__detl__title">
<h2>{{$product->product_name}}</h2>
</div>
<div class="pro__details">
<p>{{$product->product_details}}</p>
</div>
<ul class="pro__dtl__prize">
<li class="old__prize">৳ {{$product->product_price}}</li>
<li>৳ {{$product->product_price - ($product->product_price * $product-
>product_discount /100)}}</li>
</ul>
<div class="pro__dtl__color">
<h2 class="title__5">Choose color-</h2>
<ul class="pro__choose__color">
@foreach (explode(',', $product->product_color) as $color)
<a href="#"><label class="color-tab" style="background-color:
{{ $color }}"></label></a>
@endforeach
</ul>
</div>
<div class="pro__dtl__size">
<h2 class="title__5">Choose size-</h2>
<ul class="pro__choose__size">
@foreach (explode(',', $product->product_size) as $size)
<a href="#">
<span style="margin: 5px" class="label label-default">{{ $size }}</span>
</a>
@endforeach
</ul>
</div>
<div class="product-action-wrap">
<div class="prodict-statas"><span>Qty-</span></div>
<div class="product-quantity">
<form id='myform' method='POST' action="{{route('add2Cart')}}">
{{ csrf_field() }}
<div class="product-quantity">
<div class="cart-plus-minus">
<input class="cart-plus-minus-box" type="text" name="qty"
value="2">
<input type="hidden" name="product_id" value="{{$product-
>product_id}}">
</div>
</div>
</div>
</div>
<ul class="pro__dtl__btn">
<button type="submit" class="btn btn-defalult btn_order">Add to Cart</button>
</form>
@php
$cust_id = Session::get('customer_id');
@endphp
<?php if ($cust_id != NULL ) { ?>
<li class="buy__now__btn"><a href="{{route('checkout')}}">Order
Now</a></li>
<?php }else{ ?>
<li class="buy__now__btn"><a href="{{route('logCk')}}">Order
Now</a></li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- End Product Details -->
<!-- Start Product tab -->
<section class="htc__product__details__tab bg__white pb--120">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">
<ul class="product__deatils__tab mb--60" role="tablist">
<li role="presentation" class="active">
<a href="#description" role="tab" data-toggle="tab">Description</a>
</li>
{{-- <li role="presentation">
<a href="#sheet" role="tab" data-toggle="tab">Data sheet</a>
</li>
<li role="presentation">
<a href="#reviews" role="tab" data-toggle="tab">Reviews</a>
</li> --}}
</ul>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="product__details__tab__content">
<!-- Start Single Content -->
<div role="tabpanel" id="description" class="product__tab__content fade in
active">
<div class="product__description__wrap">
<div class="product__desc">
<h2 class="title__6">Details</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis noexercit
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt
mollit anim id.</p>
</div>
<div class="pro__feature">
<h2 class="title__6">Features</h2>
<ul class="feature__list">
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Duis aute irure
dolor in
reprehenderit in voluptate velit esse</a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Irure dolor in
reprehenderit in
voluptate velit esse</a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Sed do eiusmod
tempor
incididunt ut labore et </a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Nisi ut aliquip
ex ea commodo
consequat.</a></li>
</ul>
</div>
</div>
</div>
<!-- End Single Content -->
<!-- Start Single Content -->
<div role="tabpanel" id="sheet" class="product__tab__content fade">
<div class="pro__feature">
<h2 class="title__6">Data sheet</h2>
<ul class="feature__list">
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Duis aute irure
dolor in
reprehenderit in voluptate velit esse</a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Irure dolor in
reprehenderit in
voluptate velit esse</a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Irure dolor in
reprehenderit in
voluptate velit esse</a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Sed do eiusmod
tempor incididunt ut
labore et </a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Sed do eiusmod
tempor incididunt ut
labore et </a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Nisi ut aliquip ex
ea commodo
consequat.</a></li>
<li><a href="#"><i class="zmdi zmdi-play-circle"></i>Nisi ut aliquip ex
ea commodo
consequat.</a></li>
</ul>
</div>
</div>
<!-- End Single Content -->
<!-- Start Single Content -->
<div role="tabpanel" id="reviews" class="product__tab__content fade">
<div class="review__address__inner">
<!-- Start Single Review -->
<div class="pro__review">
<div class="review__thumb">
<img src="images/review/1.jpg" alt="review images">
</div>
<div class="review__details">
<div class="review__info">
<h4><a href="#">Gerald Barnes</a></h4>
<ul class="rating">
<li><i class="zmdi zmdi-star"></i></li>
<li><i class="zmdi zmdi-star"></i></li>
<li><i class="zmdi zmdi-star"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<div class="rating__send">
<a href="#"><i class="zmdi zmdi-mail-reply"></i></a>
<a href="#"><i class="zmdi zmdi-close"></i></a>
</div>
</div>
<div class="review__date">
<span>27 Jun, 2016 at 2:30pm</span>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
accumsan egestas
elese ifend. Phasellus a felis at estei to bibendum feugiat ut eget eni
Praesent
et messages in con sectetur posuere dolor non.</p>
</div>
</div>
<!-- End Single Review -->
<!-- Start Single Review -->
<div class="pro__review ans">
<div class="review__thumb">
<img src="images/review/2.jpg" alt="review images">
</div>
<div class="review__details">
<div class="review__info">
<h4><a href="#">Gerald Barnes</a></h4>
<ul class="rating">
<li><i class="zmdi zmdi-star"></i></li>
<li><i class="zmdi zmdi-star"></i></li>
<li><i class="zmdi zmdi-star"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<div class="rating__send">
<a href="#"><i class="zmdi zmdi-mail-reply"></i></a>
<a href="#"><i class="zmdi zmdi-close"></i></a>
</div>
</div>
<div class="review__date">
<span>27 Jun, 2016 at 2:30pm</span>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
accumsan egestas
elese ifend. Phasellus a felis at estei to bibendum feugiat ut eget eni
Praesent
et messages in con sectetur posuere dolor non.</p>
</div>
</div>
<!-- End Single Review -->
</div>
<!-- Start RAting Area -->
<div class="rating__wrap">
<h2 class="rating-title">Write A review</h2>
<h4 class="rating-title-2">Your Rating</h4>
<div class="rating__list">
<!-- Start Single List -->
<ul class="rating">
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<!-- End Single List -->
<!-- Start Single List -->
<ul class="rating">
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<!-- End Single List -->
<!-- Start Single List -->
<ul class="rating">
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<!-- End Single List -->
<!-- Start Single List -->
<ul class="rating">
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<!-- End Single List -->
<!-- Start Single List -->
<ul class="rating">
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
<li><i class="zmdi zmdi-star-half"></i></li>
</ul>
<!-- End Single List -->
</div>
</div>
<!-- End RAting Area -->
<div class="review__box">
<form id="review-form">
<div class="single-review-form">
<div class="review-box name">
<input type="text" placeholder="Type your name">
<input type="email" placeholder="Type your email">
</div>
</div>
<div class="single-review-form">
<div class="review-box message">
<textarea placeholder="Write your review"></textarea>
</div>
</div>
<div class="review-btn">
<a class="fv-btn" href="#">submit review</a>
</div>
</form>
</div>
</div>
<!-- End Single Content -->
</div>
</div>
</div>
</div>
</section>
<!-- End Product tab -->
@endsection
@include('frontend/layout/footer')
Frontend/Cart.php-
@extends('frontend/layout/master')
@include('frontend/layout/header')
@section('content')
<!-- cart-main-area start -->
<div class="cart-main-area ptb--120 bg__white">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="table-content table-responsive">
@php
$id = 1;
$contents = Cart::getContent();
@endphp
<table>
<thead>
<tr class="cart-table">
<th style="width: 100px" class="product-serial">#</th>
<th class="product-thumbnail">Image</th>
<th class="product-code">Code</th>
<th class="product-name">Name</th>
<th class="product-price">Price</th>
<th class="product-quantity">Qty</th>
<th class="product-subtotal">Total Price</th>
<th class="product-remove">Remove</th>
</tr>
</thead>
<tbody>
@foreach ($contents as $item)
<tr>
<td class="product-serial"><span class="sl">{{$id++}}</span></td>
<td class="product-thumbnail"><a href="#"><img src="{{$item-
>attributes->image}}" alt="product img" /></a></td>
<td class="product-code"><a href="#">{{$item->attributes-
>product_code}}</a></td>
<td class="product-name"><a href="#">{{$item->name}}</a></td>
<td class="product-price"><span class="amount">৳
{{number_format($item->price)}}</span></td>
<td class="product-quantity">
<form action={{ route('upCart') }} method="POST">
{{ csrf_field() }}
<input type="number" name="quantity" value="{{$item-
>quantity}}" />
<input type="hidden" name="product_id" value="{{$item-
>id}}">
<button type="submit" class="btn btn-success edit-cart"><i
class="fa fa-edit"></i></button>
</form>
</td>
<td class="product-subtotal"> ৳ {{number_format($item-
>getPriceSum())}}</td>
<td class="product-remove">
<a class="btn btn-danger" href="{{route('delCart',
Hashids::encode($item->id))}}"
data-toggle="modal" id="delete">
<i class="fa fa-trash"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="row">
<div class="col-md-8 col-sm-7 col-xs-12">
<div class="buttons-cart">
<a href="{{route('home')}}">Continue Shopping</a>
</div>
<div class="coupon">
<h3>Coupon</h3>
<p>Enter your coupon code if you have one.</p>
<input type="text" placeholder="Coupon code" />
<input type="submit" value="Apply Coupon" />
</div>
</div>
<div class="col-md-4 col-sm-5 col-xs-12">
<div class="cart_totals">
<h2>Price Information</h2>
<table>
<tbody>
@php
$total = 150;
@endphp
<tr class="cart-subtotal">
<th>Total Price</th>
<td>
<input type="hidden" id="amount"
value="{{Cart::getSubTotal()}}">
<span class="amount" id='lblAmount'> ৳
{{number_format(Cart::getSubTotal())}}</span>
</td>
</tr>
<tr class="shipping">
<th>Shipping Charge</th>
<td>
<ul id="shipping_method">
@php
$price = 30;
@endphp
<li>
<input type="radio" class="form-check-input"
name="optradio" checked />
<label class="shipping=method">
Free Delivery <span class="amount">
৳ ০০</span>
</label>
</li>
{{-- <li>
<input type="radio" class="form-check-input"
name="optradio" />
<label>
Home Delivery <span class="amount">৳ {{$numto-
>bnNum($price)}}</span>
</label>
</li> --}}
<li></li>
</ul>
<p><a class="shipping-calculator-button" href="#">Calculate
Shipping</a></p>
</td>
</tr>
<tr class="order-total">
<th>Total</th>
<td>
<strong><span class="amount"> ৳
{{number_format(Cart::getTotal())}}</span></strong>
</td>
</tr>
</tbody>
</table>
<div class="wc-proceed-to-checkout">
@php
$cust_id = Session::get('customer_id');
@endphp
<?php if ($cust_id != NULL ) { ?>
<a href="{{route('checkout')}}">Checkout</a>
<?php }else{ ?>
<a href="{{route('logCk')}}">Checkout</a>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- cart-main-area end -->
@endsection
@include('frontend/layout/footer')
Frontend/Checkout.php-
@extends('frontend/layout/master')
@include('frontend/layout/header')
@section('content')
<!-- Start Checkout Area -->
<section class="our-checkout-area ptb--120 bg__white">
<div class="container">
<div class="row">
<div class="col-md-8 col-lg-8">
<div class="ckeckout-left-sidebar">
<!-- Start Checkbox Area -->
<div class="checkout-form">
<h2 class="section-title-3">Billing details</h2>
<form action="{{route('saveShip')}}" method="POST">
{{ csrf_field() }}
<div class="checkout-form-inner">
<div class="single-checkout-box">
<input type="text" name="fname" placeholder="First Name*">
<input type="text" name="lname" placeholder="Last Name*">
</div>
<div class="single-checkout-box">
<input type="email" name="email" placeholder="Emial*">
<input type="text" name="phone" placeholder="Phone*">
</div>
<div class="single-checkout-box">
<input type="text" name="city" placeholder="City*">
<input type="text" name="zid" placeholder="Zip Code">
</div>
<div class="single-checkout-box">
<textarea name="address" placeholder="Address*"></textarea>
</div>
<div class="single-checkout-box checkbox">
<button class="btn btn-success">Submit</button>
</div>
</div>
</form>
</div>
<!-- End Checkbox Area -->
</div>
</div>
</div>
</div>
</section>
<!-- End Checkout Area -->
@endsection
@include('frontend/layout/footer')
Frontend/Payment.php-
@extends('frontend/layout/master')
@include('frontend/layout/header')
@section('content')
<!-- Start Checkout Area -->
<section class="our-checkout-area ptb--120 bg__white">
<div class="container">
<div class="row">
<div class="col-md-8 col-lg-8">
<div class="ckeckout-left-sidebar">
<!-- Start Checkbox Area -->
<div class="checkout-form">
<h2 class="section-title-3">Payment</h2>
<label for="fname">Accepted Cards</label>
<div class="icon-container">
<i class="fa fa-cc-visa" style="color:navy;"></i>
<i class="fa fa-cc-amex" style="color:blue;"></i>
<i class="fa fa-cc-mastercard" style="color:red;"></i>
<i class="fa fa-cc-discover" style="color:orange;"></i>
</div>
<form action="{{route('order')}}" method="POST">
{{ csrf_field() }}
<div class="checkout-form-inner">
<div class="single-checkout-box">
<input type="text" name="card" placeholder="Card Name*">
</div>
<div class="single-checkout-box">
<input type="text" name="number" placeholder="Card Number*">
</div>
<div class="single-checkout-box checkbox">
<button class="btn btn-success">Submit</button>
</div>
</div>
</form>
</div>
<!-- End Checkbox Area -->
</div>
</div>
</div>
</div>
</section>
<!-- End Checkout Area -->
@endsection
@include('frontend/layout/footer')
Frontend/Login.php-
@extends('frontend/layout/master')
@include('frontend/layout/header')
@section('content')
<div class="class container">
<div class="row">
{{-- <div class="col-md-2"></div> --}}
<div class="col-md-12">
<div class="panel">
<div class="panel-body">
<!-- Start Login Register Area -->
<div class="htc__login__register bg__white ptb--130" style="background: rgba(0, 0, 0,
0) url(images/bg/5.jpg) no-repeat scroll center center / cover ;">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<ul class="login__register__menu" role="tablist">
<li role="presentation" class="login active"><a href="#login" role="tab"
data-toggle="tab">Login</a></li>
<li role="presentation" class="register"><a href="#register" role="tab" data-
toggle="tab">Registration</a></li>
</ul>
</div>
</div>
<!-- Start Login Register Content -->
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="htc__login__register__wrap">
<!-- Start Single Content -->
<div id="login" role="tabpanel" class="single__tabs__panel tab-pane fade in
active">
<form class="login" action="{{route('custLogin')}}" method="POST">
{{ csrf_field() }}
<input type="email" name="email" placeholder="E-mail *">
<input type="password" name="password" placeholder="Password *">
<div class="htc__login__btn mt--30">
<button type="submit" class="btn btn-success
btn_login">Login</button>
</div>
</form><br>
<div class="tabs__checkbox">
<span class="forget"><a href="#">Forgot your password?</a></span>
</div>
<div class="htc__social__connect">
<h2>Or, Login-</h2>
<ul class="htc__soaial__list">
<li><a class="bg--twitter" href="#"><i class="zmdi zmdi-
twitter"></i></a></li>
Frontend/Order_list.php-
@extends('frontend/layout/master')
@include('frontend/layout/header')
@section('content')
<div class="cart-main-area ptb--120 bg__white">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<h2>My Orders</h2>
<div class="table-content table-responsive">
<table>
<thead>
<tr class="cart-table">
<th style="width: 100px" class="product-serial">#</th>
<th class="product-thumbnail">Image</th>
<th class="product-code">Code</th>
<th class="product-name">Name</th>
<th class="product-price">Price</th>
<th class="product-quantity">Qty</th>
<th class="product-subtotal">Date</th>
</tr>
</thead>
<tbody>
<?php
$id = 1;
?>
@foreach ($result as $item)
<tr>
<td class="product-serial">{{$id++}}</td>
<td class="product-thumbnail"><img src="{{$item-
>product_image}}" alt="product img" /></td>
<td class="product-serial">{{$item->product_code}}</td>
<td class="product-serial">{{$item->product_name}}</td>
<td class="product-serial">{{$item->qty}}</td>
<td class="product-serial">{{$item->product_price}}</td>
<td class="product-serial">{{$item->updated_at}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- cart-main-area end -->
@endsection
@include('frontend/layout/footer')
Backend/Master.php-
<!doctype html>
<html lang="en">
<head>
<title>Dashboard |Reza Mart:: Online Shopping.</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=0">
<!-- VENDOR CSS -->
<link rel="stylesheet"
href="{{asset('backend/vendor/bootstrap/css/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/vendor/font-awesome/css/font-
awesome.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/vendor/linearicons/style.css')}}">
<link rel="stylesheet" href="{{asset('backend/vendor/chartist/css/chartist-
custom.css')}}">
<!-- MAIN CSS -->
<link rel="stylesheet" href="{{asset('backend/css/main.css')}}">
<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
<link rel="stylesheet" href="{{asset('backend/css/demo.css')}}">
{{-- Custom CSS --}}
<link rel="stylesheet" href="{{asset('backend/css/custom.css')}}">
{{-- Toastr --}}
<link rel="stylesheet" href="{{asset('backend/css/toastr.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/css/responsive_datatable.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/css/datatable.min.css')}}">
<!-- GOOGLE FONTS -->
<link href="https://fonts.googleapis.com/css?
family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-
select/1.8.1/css/bootstrap-select.css">
<!-- ICONS -->
<link rel="apple-touch-icon" sizes="76x76" href="{{asset('backend/img/apple-
icon.png')}}">
<link rel="icon" type="image/png" sizes="96x96"
href="{{asset('backend/img/favicon.png')}}">
</head>
<body>
<!-- WRAPPER -->
<div id="wrapper">
<!-- NAVBAR -->
@yield('navbar')
<!-- END NAVBAR -->
<!-- LEFT SIDEBAR -->
@yield('sidebar')
<!-- END LEFT SIDEBAR -->
<!-- MAIN -->
<div class="main">
<!-- MAIN CONTENT -->
@yield('content')
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN -->
<div class="clearfix"></div>
@yield('footer')
</div>
<!-- END WRAPPER -->
<!-- Javascript -->
<script src="{{asset('backend/vendor/jquery/jquery.min.js')}}"></script>
<script src="{{asset('backend/vendor/bootstrap/js/bootstrap.min.js')}}"></script>
<script src="{{asset('backend/vendor/jquery-
slimscroll/jquery.slimscroll.min.js')}}"></script>
<script src="{{asset('backend/vendor/jquery.easy-pie-
chart/jquery.easypiechart.min.js')}}"></script>
<script src="{{asset('backend/vendor/chartist/js/chartist.min.js')}}"></script>
<script src="{{asset('backend/scripts/klorofil-common.js')}}"></script>
<script src="{{asset('backend/scripts/toastr.min.js')}}"></script>
<script src="{{asset('backend/scripts/jquery-3.5.1.js')}}"></script>
<script src="{{asset('backend/scripts/dataTables.min.js')}}"></script>
<script src="{{asset('backend/scripts/dataTables.bootstrap4.min.js')}}"></script>
<script src="{{asset('backend/scripts/responsive.bootstrap4.min.js')}}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.8.1/js/bootstrap-
select.js"></script>
<script>
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<script>
$(function() {
var data, options;
// headline charts
data = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
series: [
[23, 29, 24, 40, 25, 24, 35],
[14, 25, 18, 34, 29, 38, 44],
]
};
options = {
height: 300,
showArea: true,
showLine: false,
showPoint: false,
fullWidth: true,
axisX: {
showGrid: false
},
lineSmooth: false,
};
options = {
fullWidth: true,
lineSmooth: false,
height: "270px",
low: 0,
high: 'auto',
series: {
'series-projection': {
showArea: true,
showPoint: false,
showLine: false
},
},
axisX: {
showGrid: false,
},
axisY: {
showGrid: false,
onlyInteger: true,
offset: 0,
},
chartPadding: {
left: 20,
right: 20
}
};
// visits chart
data = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
series: [
[6384, 6342, 5437, 2764, 3958, 5068, 7654]
]
};
options = {
height: 300,
axisX: {
showGrid: false
},
};
setInterval(function() {
var randomVal;
randomVal = getRandomInt(0, 100);
sysLoad.data('easyPieChart').update(randomVal);
sysLoad.find('.percent').text(randomVal);
}, updateInterval);
});
</script>
<script>
@if (Session::has('message'))
var type = "{{ Session::get('alert-type', 'info') }}"
switch(type){
case 'info':
toastr.options.timeOut = 10000;
toastr.info("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
case 'success':
toastr.options.timeOut = 10000;
toastr.success("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
case 'warning':
toastr.options.timeOut = 10000;
toastr.warning("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
case 'error':
toastr.options.timeOut = 10000;
toastr.error("{{Session::get('message')}}");
var audio = new Audio('audio.mp3');
audio.play();
break;
}
@endif
</script>
</body>
</html>
Backend/Login.php-
<!doctype html>
<html lang="en" class="fullscreen-bg">
<head>
<title>Dashboard |Reza Mart:: Online Shopping.</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=0">
<!-- VENDOR CSS -->
<link rel="stylesheet"
href="{{asset('backend/vendor/bootstrap/css/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/vendor/font-awesome/css/font-
awesome.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/vendor/linearicons/style.css')}}">
<link rel="stylesheet" href="{{asset('backend/vendor/chartist/css/chartist-
custom.css')}}">
<!-- MAIN CSS -->
<link rel="stylesheet" href="{{asset('backend/css/main.css')}}">
<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
<link rel="stylesheet" href="{{asset('backend/css/demo.css')}}">
{{-- Custom CSS --}}
<link rel="stylesheet" href="{{asset('backend/css/custom.css')}}">
{{-- Toastr --}}
<link rel="stylesheet" href="{{asset('backend/css/toastr.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/css/responsive_datatable.min.css')}}">
<link rel="stylesheet" href="{{asset('backend/css/datatable.min.css')}}">
<!-- GOOGLE FONTS -->
<link href="https://fonts.googleapis.com/css?
family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-
select/1.8.1/css/bootstrap-select.css">
<!-- ICONS -->
<link rel="apple-touch-icon" sizes="76x76" href="{{asset('backend/img/apple-
icon.png')}}">
<link rel="icon" type="image/png" sizes="96x96"
href="{{asset('backend/img/favicon.png')}}">
</head>
<body>
<!-- WRAPPER -->
<div id="wrapper">
<div class="vertical-align-wrap">
<div class="vertical-align-middle">
<div class="col col-md-4"></div>
<div class="col col-md-4">
<div class="content">
<div class="header">
<p class="lead">Login to your
account</p>
</div>
<form class="form-auth-small"
method="POST" action="{{route('logCheck')}}">
{{ csrf_field() }}
<div class="form-group">
<label for="signin-email"
class="control-label sr-only">Email</label>
<input type="email"
class="form-control" id="signin-email" name="email" placeholder="Email" required>
</div>
<div class="form-group">
<label for="signin-
password" class="control-label sr-only">Password</label>
<input type="password"
class="form-control" id="signin-password" name="password" placeholder="Password"
required>
</div>
<div class="form-group clearfix">
<label class="fancy-
checkbox element-left">
<input
type="checkbox">
<span>Remember
me</span>
</label>
</div>
<button type="submit" class="btn
btn-primary btn-lg btn-block">LOGIN</button>
<div class="bottom">
<span class="helper-
text"><a href="#">Registration</a></span>
</div>
</form>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!-- END WRAPPER -->
</body>
</html>
Backend/Dashboard.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<div class="main-content">
<div class="container-fluid">
<!-- OVERVIEW -->
<div class="panel panel-headline">
<div class="panel-heading">
<h3 class="panel-title">Weekly Overview</h3>
<p class="panel-subtitle">Period: Oct 14, 2016 - Oct 21, 2016</p>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-3">
<div class="metric">
<span class="icon"><i class="fa fa-download"></i></span>
<p>
<span class="number">10</span>
<span class="title">Orders</span>
</p>
</div>
</div>
<div class="col-md-3">
<div class="metric">
<span class="icon"><i class="fa fa-shopping-bag"></i></span>
<p>
<span class="number">10</span>
<span class="title">Sales</span>
</p>
</div>
</div>
<div class="col-md-3">
<div class="metric">
<span class="icon"><i class="fa fa-eye"></i></span>
<p>
<span class="number">10</span>
<span class="title">Visits</span>
</p>
</div>
</div>
<div class="col-md-3">
<div class="metric">
<span class="icon"><i class="fa fa-bar-chart"></i></span>
<p>
<span class="number">35%</span>
<span class="title">Conversions</span>
</p>
</div>
</div>
</div>
<!-- END OVERVIEW -->
<div class="row">
<!-- RECENT PURCHASES -->
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title">Recent Order</h3>
<div class="right">
<button type="button" class="btn-toggle-collapse"><i class="lnr lnr-chevron-
up"></i></button>
<button type="button" class="btn-remove"><i class="lnr lnr-
cross"></i></button>
</div>
</div>
<div class="panel-body no-padding">
<table class="table table-striped">
<thead>
<tr>
<th>SL</th>
<th>Customer Name</th>
<th>Quantity</th>
<th>price</th>
<th>Status</th>
<th>Date & Time</th>
</tr>
</thead>
<tbody>
<?php
$id = 1;
?>
@foreach ($result as $item)
<tr>
<td><a href="#">{{ $id++ }}</a></td>
<td>{{$item->customer_name}}</td>
<td>{{$item->order_total}}</td>
<td></td>
@if ($item->status == 0)
<td><span class="label label-primary">Pending</span></td>
@else
<td><span class="label label-success">Delivered</span></td>
@endif
<td>{{$item->updated_at}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-md-6"><span class="panel-note"><i class="fa fa-clock-
o"></i> Last 24 hours</span></div>
<div class="col-md-6 text-right"><a href="#" class="btn btn-primary">View
All Purchases</a></div>
</div>
</div>
</div>
<!-- END RECENT PURCHASES -->
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Add_Slier.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="lnr lnr-plus-circle"></i> Add New Slider</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('addSlider')}}" enctype="multipart/form-
data">
{{ csrf_field() }}
<div class="form-group">
<label for="title">Title<span class="star">*</span></label>
<input class="form-control" name="title" placeholder="Title input" type="text"
required>
</div>
<div class="form-group">
<label for="sub-title">Sub-Title<span class="star">*</span></label>
<input class="form-control"name="sub_title" placeholder="Sub-Title input"
type="text" required>
</div>
<div class="form-group">
<label for="title-position">Title Position<span class="star">*</span></label>
<select class="form-control" name="position" required>
<option value="">Choose</option>
<option value="kb_caption_right">Right</option>
<option value="kb_caption_center">Center</option>
<option value="kb_caption_left">Left</option>
</select>
</div>
<div class="form-group">
<label for="product-code">Product Code<span class="star">*</span></label>
<input class="form-control" placeholder="Product Code input"
name="product_code" type="text" required>
</div>
<div class="form-group">
<label for="slider-image">Slider Image<span class="star">*</span></label>
<div class="custom-file">
<input type="file" class="custom-file-input" name="image" id="customFile"
required>
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-plus-square"></i>
Submit</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/View_Slider.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<div class="row">
<div class="panel panel-headline">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> Slider Information</h3>
</div>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered dt-responsive nowrap"
style="width:100%">
<thead>
<tr>
<th>SL</th>
<th>Image</th>
<th>Title</th>
<th>Sub Title</th>
<th>Title Position</th>
<th>Product Code</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach($slider as $slider)
@php
$i++;
@endphp
<tr>
<td>{{ $i }}</td>
<td><img src="{{URL::to($slider->image)}}" style="height: 100px; width:
100px"></td>
<td>{{$slider->title}}</td>
<td>{{$slider->sub_title}}</td>
@if ($slider->position = 'kb_caption_right')
<td>Right</td>
@elseif($slider->position = 'kb_caption_center')
<td>Center</td>
@else
<td>Left</td>
@endif
<td>{{$slider->product_code}}</td>
@if ($slider->status == 1)
<td><span class="label label-success">Active</span></td>
@else
<td><span class="label label-default">Active</span></td>
@endif
<td>
@if($slider->status == 1)
<a class="btn btn-default" href="{{route('inActive', $slider->slider_id)}}">
<i class="fa fa-thumbs-down"></i>
</a>
@else
<a class="btn btn-success" href="{{route('active', $slider->slider_id)}}">
<i class="fa fa-thumbs-up"></i>
</a>
@endif
<a class="btn btn-info" href="{{route('editSlider', $slider->slider_id)}}">
<i class="fa fa-edit"></i>
</a>
<a class="btn btn-danger" href="#deleteModal{{$slider->slider_id}}" data-
toggle="modal" id="delete">
<i class="fa fa-trash"></i>
</a>
<!-- Modal -->
<div class="modal fade" id="deleteModal{{$slider->slider_id}}" tabindex="-1"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h4>Do you really want to delete?</h4>
<form action="{{route('delete', $slider->slider_id)}}" method="post">
{{ csrf_field() }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-
dismiss="modal">Close</button>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</form>
</div>
</div>
</div>
{{-- End Modal --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Edit_Slider.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="fa fa-edit"></i> Edit Slider</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('updateSlider', $slider->slider_id)}}"
enctype="multipart/form-data">
{{ csrf_field() }}
<div class="form-group">
<label for="title">Title<span class="star">*</span></label>
<input class="form-control" name="title" value="{{$slider->title}}" type="text"
required>
</div>
<div class="form-group">
<label for="sub-title">Sub-Title<span class="star">*</span></label>
<input class="form-control"name="sub_title" value="{{$slider->sub_title}}"
type="text" required>
</div>
<div class="form-group">
<label for="title-position">Title Position<span class="star">*</span></label>
<select class="form-control" name="position" required>
@if ($slider->position == "kb_caption_right")
<option value="kb_caption_right" selected>Right</option>
@elseif ($slider->position == "kb_caption_center")
<option value="kb_caption_center">Center</option>
@else
<option value="kb_caption_left">Left</option>
@endif
</select>
</div>
<div class="form-group">
<label for="product-code">Product Code<span class="star">*</span></label>
<input class="form-control" value="{{$slider->product_code}}"
name="product_code" type="text" required>
</div>
<div class="form-group">
<label for="slider-image">Slider Image</label>
<div class="custom-file">
<input type="file" class="custom-file-input" name="image"
id="customFile">
</div>
</div>
<div class="form-group">
<div class="form-check">
@if ($slider->status == 1)
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1" checked>
@else
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
@endif
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-edit"></i>
Update</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Add_Category.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="lnr lnr-plus-circle"></i> Add New
Category</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('storeCat')}}" enctype="multipart/form-
data">
{{ csrf_field() }}
<div class="form-group">
<label for="title">Category Name:<span class="star">*</span></label>
<input class="form-control" name="cat_name" placeholder="Category name
input" type="text" required>
</div>
<div class="form-group">
<label for="sub-title">Category Details:</label>
<textarea class="form-control" name="cat_details" placeholder="Category
details input" rows="4"></textarea>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-plus-square"></i>
Submit</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/View_Category.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<div class="row">
<div class="panel panel-headline">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> Category Information</h3>
</div>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered dt-responsive nowrap"
style="width:100%">
<thead>
<tr>
<th>SL</th>
<th>Category Name</th>
<th>Category Details</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach($category as $cat)
@php
$i++;
@endphp
<tr>
<td>{{ $i }}</td>
<td>{{$cat->cat_name}}</td>
<td>{{$cat->cat_details}}</td>
@if ($cat->status == 1)
<td><span class="label label-success">Active</span></td>
@else
<td><span class="label label-default">Active</span></td>
@endif
<td>
@if($cat->status == 1)
<a class="btn btn-default" href="{{route('catInAc', $cat->cat_id)}}">
<i class="fa fa-thumbs-down"></i>
</a>
@else
<a class="btn btn-success" href="{{route('catAc', $cat->cat_id)}}">
<i class="fa fa-thumbs-up"></i>
</a>
@endif
<a class="btn btn-info" href="{{route('editCat', $cat->cat_id)}}">
<i class="fa fa-edit"></i>
</a>
<a class="btn btn-danger" href="#deleteModal{{$cat->cat_id}}" data-
toggle="modal" id="delete">
<i class="fa fa-trash"></i>
</a>
<!-- Modal -->
<div class="modal fade" id="deleteModal{{$cat->cat_id}}" tabindex="-1" aria-
labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h4>Do you really want to delete?</h4>
<form action="{{route('catDel', $cat->cat_id)}}" method="post">
{{ csrf_field() }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-
dismiss="modal">Close</button>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</form>
</div>
</div>
</div>
{{-- End Modal --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Edit_Category.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="fa fa-edit"></i> Edit Category</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('catUp', $cat->cat_id)}}"
enctype="multipart/form-data">
{{ csrf_field() }}
<div class="form-group">
<label for="title">Category Name:<span class="star">*</span></label>
<input class="form-control" name="cat_name" value="{{$cat->cat_name}}"
type="text" required>
</div>
<div class="form-group">
<label for="sub-title">Category Details:</label>
<textarea class="form-control" name="cat_details" rows="4">{{$cat-
>cat_details}}</textarea>
</div>
<div class="form-group">
<div class="form-check">
@if ($cat->status == 1)
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1" checked>
@else
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
@endif
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-edit"></i>
Update</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Add_Sub_Category.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="lnr lnr-plus-circle"></i> Add Sub-Category</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('storeSubCat')}}" enctype="multipart/form-
data">
{{ csrf_field() }}
<?php
$selectBoxCat = DB::table('categories')
->where('status', 1)
->get();
?>
<div class="form-group">
<label for="title-position">Category Name:<span
class="star">*</span></label>
<select class="form-control" name="cat_id" required>
<option value="">Choose</option>
@foreach($selectBoxCat as $select)
<option value="{{$select->cat_id}}">{{$select->cat_name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="title">Sub-Category Name:<span class="star">*</span></label>
<input class="form-control" name="sub_cat_name" placeholder="Category
name input" type="text" required>
</div>
<div class="form-group">
<label for="sub-title">Sub-Category Details:</label>
<textarea class="form-control" name="sub_cat_details" placeholder="Category
details input" rows="4"></textarea>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-plus-square"></i>
Submit</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/View_Sub_Category.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<div class="row">
<div class="panel panel-headline">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> Category Information</h3>
</div>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered dt-responsive nowrap"
style="width:100%">
<thead>
<tr>
<th>SL</th>
<th>Sub-Category Name</th>
<th>Sub-Category Details</th>
<th>Category Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach($subCategory as $subCat)
@php
$i++;
@endphp
<tr>
<td>{{ $i }}</td>
<td>{{$subCat->sub_cat_name}}</td>
<td>{{$subCat->sub_cat_details}}</td>
<td>{{$subCat->cat_name}}</td>
@if ($subCat->status == 1)
<td><span class="label label-success">Active</span></td>
@else
<td><span class="label label-default">Active</span></td>
@endif
<td>
@if($subCat->status == 1)
<a class="btn btn-default" href="{{route('subCatInAc', $subCat-
>sub_cat_id)}}">
<i class="fa fa-thumbs-down"></i>
</a>
@else
<a class="btn btn-success" href="{{route('subCatAc', $subCat->sub_cat_id)}}">
<i class="fa fa-thumbs-up"></i>
</a>
@endif
<a class="btn btn-info" href="{{route('editSubCat', $subCat->sub_cat_id)}}">
<i class="fa fa-edit"></i>
</a>
<a class="btn btn-danger" href="#deleteModal{{$subCat->sub_cat_id}}" data-
toggle="modal" id="delete">
<i class="fa fa-trash"></i>
</a>
<!-- Modal -->
<div class="modal fade" id="deleteModal{{$subCat->sub_cat_id}}" tabindex="-1"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h4>Do you really want to delete?</h4>
<form action="{{route('subCatDel', $subCat->sub_cat_id)}}" method="post">
{{ csrf_field() }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-
dismiss="modal">Close</button>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</form>
</div>
</div>
</div>
{{-- End Modal --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Edit_Sub_Category.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="fa fa-edit"></i> Edit Sub-Category</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('subCatUp', $subCat->sub_cat_id)}}"
enctype="multipart/form-data">
{{ csrf_field() }}
<?php
$id = $subCat->cat_id;
$selectBoxCat = DB::table('categories')
->where('status', 1)
->get();
?>
<div class="form-group">
<label for="title-position">Category Name:<span
class="star">*</span></label>
<select class="form-control" name="cat_id" required>
<option value="">Choose</option>
@foreach($selectBoxCat as $select)
@if ($select->cat_id == $id)
<option value="{{$select->cat_id}}" selected>{{$select-
>cat_name}}</option>
@endif
<option value="{{$select->cat_id}}">{{$select->cat_name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="title">Sub-Category Name:<span class="star">*</span></label>
<input class="form-control" name="sub_cat_name" value="{{$subCat-
>sub_cat_name}}" type="text" required>
</div>
<div class="form-group">
<label for="sub-title">Sub-Category Details:</label>
<textarea class="form-control" name="sub_cat_details" rows="4">{{$subCat-
>sub_cat_details}}</textarea>
</div>
<div class="form-group">
<div class="form-check">
@if ($subCat->status == 1)
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1" checked>
@else
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
@endif
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-edit"></i>
Update</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Add_Sub_Category_Item.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="lnr lnr-plus-circle"></i> Add Sub-Category
Item</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('storeSubCatItem')}}"
enctype="multipart/form-data">
{{ csrf_field() }}
<div class="form-group">
<label for="title-position">Category Name:<span
class="star">*</span></label>
<select class="form-control" id ="cat_list" name="cat_list"
onchange="myFunction(this.value);">
<option value="">Choose</option>
@foreach($category as $cat)
<option value="{{$cat->cat_id}}">{{$cat->cat_name}}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group">
<label for="title">Sub-Category Item Name:<span
class="star">*</span></label>
<input class="form-control" name="sub_cat_item_name"
placeholder="Category name input" type="text" required>
</div>
<div class="form-group">
<label for="sub-title">Sub-Category Item Details:</label>
<textarea class="form-control" name="sub_cat_item_details"
placeholder="Category details input" rows="4"></textarea>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-plus-square"></i>
Submit</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
{{-- Sub-Category Item --}}
<script type="text/javascript">
function myFunction(value)
{
var cat_id = value;
console.log(cat_id);
$.ajax({
type: 'POST',
url: '{{route("findSub")}}',
data: {
cat_id: cat_id,
"_token": "{{ csrf_token() }}",
},
datatype: 'JSON',
beforeSend: function(){
$('#sdiv').hide();
$('#simg').show();
},
success:function(data){
$('#simg').hide();
$('#sdiv').show();
var select = $('select[name=sub_category]');
select.empty();
select.append('<option value="0" >Please Select Sub Category</option>');
$.each(data,function(key, value) {
select.append('<option value=' + value.sub_cat_id + '>' +
value.sub_cat_name + '</option>');
});
}
// div.find('#sub_category').html(" ");
// div.find('#sub_category').append(op);
// $('#simg').hide();
// $('#sdiv').show();
});
}
</script>
@endsection
@include('backend/layout/footer')
Backend/View_Sub_Category_Item.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<div class="row">
<div class="panel panel-headline">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> Category Information</h3>
</div>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered dt-responsive nowrap"
style="width:100%">
<thead>
<tr>
<th>SL</th>
<th>Item Name</th>
<th>Item Details</th>
<th>Category Name</th>
<th>Sub-Category Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach($subCategoryItem as $subCatItem)
@php
$i++;
@endphp
<tr>
<td>{{ $i }}</td>
<td>{{$subCatItem->sub_cat_item_name}}</td>
<td>{{$subCatItem->sub_cat_item_details}}</td>
<td>{{$subCatItem->cat_name}}</td>
<td>{{$subCatItem->sub_cat_name}}</td>
@if ($subCatItem->status == 1)
<td><span class="label label-success">Active</span></td>
@else
<td><span class="label label-default">Active</span></td>
@endif
<td>
@if($subCatItem->status == 1)
<a class="btn btn-default" href="{{route('subCatItemInAc', $subCatItem-
>sub_cat_item_id)}}">
<i class="fa fa-thumbs-down"></i>
</a>
@else
<a class="btn btn-success" href="{{route('subCatItemAc', $subCatItem-
>sub_cat_item_id)}}">
<i class="fa fa-thumbs-up"></i>
</a>
@endif
<a class="btn btn-info" href="{{route('editSubCatItem', $subCatItem-
>sub_cat_item_id)}}">
<i class="fa fa-edit"></i>
</a>
<a class="btn btn-danger" href="#deleteModal{{$subCatItem->sub_cat_item_id}}"
data-toggle="modal" id="delete">
<i class="fa fa-trash"></i>
</a>
<!-- Modal -->
<div class="modal fade" id="deleteModal{{$subCatItem->sub_cat_item_id}}"
tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h4>Do you really want to delete?</h4>
<form action="{{route('subCatItemDel', $subCatItem->sub_cat_item_id)}}"
method="post">
{{ csrf_field() }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-
dismiss="modal">Close</button>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</form>
</div>
</div>
</div>
{{-- End Modal --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Edit_Sub_Category_Item.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="fa fa-edit"></i> Edit Sub-Category Item</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('subCatItemUp', $subCatItem-
>sub_cat_item_id)}}" enctype="multipart/form-data">
{{ csrf_field() }}
<?php
$id = $catId->cat_id;
// echo $cid;
// print_r($subCatId);
$selectBoxCat = DB::table('categories')
->where('status', 1)
->get();
?>
<div class="form-group">
<label for="title-position">Category Name:<span
class="star">*</span></label>
<select class="form-control" name="cat_id" required>
<option value="">Choose</option>
@foreach($selectBoxCat as $select)
@if ($select->cat_id == $id)
<option value="{{$select->cat_id}}" selected>{{$select-
>cat_name}}</option>
@endif
<option value="{{$select->cat_id}}">{{$select->cat_name}}</option>
@endforeach
</select>
</div>
<?php
$sub_id = $subCatItem->sub_cat_id;
$selectBoxSubCat = DB::table('sub_categories')
->where('status', 1)
->get();
?>
<div class="form-group">
<label for="title-position">Category Name:<span
class="star">*</span></label>
<select class="form-control" name="sub_cat_id" required>
<option value="">Choose</option>
@foreach($selectBoxSubCat as $selectSub)
@if ($selectSub->sub_cat_id == $sub_id)
<option value="{{$selectSub->sub_cat_id}}" selected>{{$selectSub-
>sub_cat_name}}</option>
@endif
<option value="{{$selectSub->sub_cat_id}}">{{$selectSub-
>sub_cat_name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="title">Sub-Category Item Name:<span
class="star">*</span></label>
<input class="form-control" name="sub_cat_item_name" value="{{$subCatItem-
>sub_cat_item_name}}" type="text" required>
</div>
<div class="form-group">
<label for="sub-title">Sub-Category Item Details:</label>
<textarea class="form-control" name="sub_cat_item_details"
rows="4">{{$subCatItem->sub_cat_item_details}}</textarea>
</div>
<div class="form-group">
<div class="form-check">
@if ($subCatItem->status == 1)
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1" checked>
@else
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
@endif
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-edit"></i>
Update</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
@endsection
@include('backend/layout/footer')
Backend/Add_Product.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<!-- INPUT SIZING -->
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title"> <i class="lnr lnr-plus-circle"></i> Add New Product</h3>
</div>
<div class="panel-body">
<form method="post" action="{{route('storePd')}}" enctype="multipart/form-
data">
{{ csrf_field() }}
<div class="form-group">
<label for="title">Product Name:<span class="star">*</span></label>
<input class="form-control" name="product_name" placeholder="Product
name input" type="text">
</div>
<div class="form-group">
<label for="title-position">Category Name:<span
class="star">*</span></label>
<select class="form-control" id ="cat_list" name="cat_list"
onchange="myFunction(this.value);">
<option value="">Choose</option>
@foreach($category as $cat)
<option value="{{$cat->cat_id}}">{{$cat->cat_name}}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group">
<label for="title">Product Code:<span class="star">*</span></label>
<input class="form-control" name="product_code" placeholder="Product code
input" type="text">
</div>
<div class="form-group">
<label for="title">Product Brand:</label>
<input class="form-control" name="product_brand" placeholder="Product
brand input" type="text">
</div>
<div class="form-group">
<label for="title">Product Size:<span class="star">*</span></label><br>
<select class="selectpicker live_search" multiple data-live-search="true"
name="product_size[]">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
<option value="XXXL">XXXL</option>
</select>
</div>
<div class="form-group">
<label for="title">Product Color:</label>
<select class="selectpicker live_search" multiple data-live-search="true"
name="product_color[]">
@foreach($color as $color)
<option value="{{$color->code}}">{{$color->color_name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="title">Product Unit:</label>
<input class="form-control" name="product_unit" placeholder="Product unit
input" type="text">
</div>
<div class="form-group">
<label for="title">Product Price:<span class="star">*</span></label>
<input class="form-control" name="product_price" placeholder="Product price
input" type="number" required>
</div>
<div class="form-group">
<label for="title">Product Quantity:</label>
<input class="form-control" name="product_qty" placeholder="Product
quantity input" type="number">
</div>
<div class="form-group">
<label for="title">Product Status:</label>
<input class="form-control" name="product_status" placeholder="Product
status input" type="text">
</div>
<div class="form-group">
<label for="title">Product Discount:</label>
<input class="form-control" name="product_discount" placeholder="Product
discount input" type="number">
</div>
<div class="form-group">
<label for="sub-title">Product Details:</label>
<textarea class="form-control" name="product_details" placeholder="Product
details input" rows="4"></textarea>
</div>
<div class="form-group">
<label for="slider-image">Product Image<span class="star">*</span></label>
<div class="custom-file">
<input type="file" class="custom-file-input" name="image" id="customFile"
required>
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="status"
id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
Status
</label>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fa fa-plus-square"></i>
Submit</button>
</form>
</div>
</div>
<!-- END INPUT SIZING -->
</div>
</div>
{{-- JavaScript for Dynamic Selection box --}}
<script>
function myFunction(value)
{
var cat_id = value;
console.log(cat_id);
$.ajax({
type: 'POST',
url: '{{route("search")}}',
data: {
cat_id: cat_id,
"_token": "{{ csrf_token() }}",
},
datatype: 'JSON',
beforeSend: function(){
$('#sdiv').hide();
$('#simg').show();
},
success:function(data){
$('#simg').hide();
$('#sdiv').show();
var select = $('select[name=sub_category]');
select.empty();
select.append('<option value="0" >Please Select Sub Category</option>');
$.each(data,function(key, value) {
select.append('<option value=' + value.sub_cat_id + '>' +
value.sub_cat_name + '</option>');
});
}
// div.find('#sub_category').html(" ");
// div.find('#sub_category').append(op);
// $('#simg').hide();
// $('#sdiv').show();
});
}
</script>
<script type="text/javascript">
function mySecondFun(value)
{
var sub_cat_id = value;
console.log(sub_cat_id);
$.ajax({
type: 'POST',
url: '{{route("find")}}',
data: {
sub_cat_id: sub_cat_id,
"_token": "{{ csrf_token() }}",
},
datatype: 'JSON',
beforeSend: function(){
$('#sidiv').hide();
$('#siimg').show();
},
success:function(data){
$('#siimg').hide();
$('#sidiv').show();
var select = $('select[name=sub_cat_item_id]');
select.empty();
select.append('<option value="0" >Please Select Product</option>');
$.each(data,function(key, value) {
select.append('<option value=' + value.sub_cat_item_id + '>' +
value.sub_cat_item_name + '</option>');
});
}
// div.find('#sub_category').html(" ");
// div.find('#sub_category').append(op);
// $('#simg').hide();
// $('#sdiv').show();
});
}
</script>
@endsection
@include('backend/layout/footer')
Backend/View_Product.php-
@extends('backend/layout/master')
@include('backend/layout/header')
@include('backend/layout/navbar')
@include('backend/layout/sidebar')
@section('content')
<div class="row">
<div class="panel panel-headline">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> Product Information</h3>
</div>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered dt-responsive"
style="width:100%">
<thead>
<tr>
<th>SL</th>
<th>Image</th>
<th>Product Name</th>
<th>Code</th>
<th>Price</th>
<th>Qty</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach($product as $pdt)
@php
$i++;
@endphp
<tr>
<td>{{ $i }}</td>
<td><img src="{{URL::to($pdt->product_image)}}" style="height: 100px; width:
100px"></td>
<td>{{$pdt->product_name}}</td>
<td>{{$pdt->product_code}}</td>
<td>{{$pdt->product_price}}</td>
<td>{{$pdt->product_qty}}</td>
@if ($pdt->status == 1)
<td><span class="label label-success">Active</span></td>
@else
<td><span class="label label-default">Inactive</span></td>
@endif
<td>
@if($pdt->status == 1)
<a class="btn btn-default" href="{{route('pdInAc', $pdt->product_id)}}">
<i class="fa fa-thumbs-down"></i>
</a>
@else
<a class="btn btn-success" href="{{route('pdAc', $pdt->product_id)}}">
<i class="fa fa-thumbs-up"></i>
</a>
@endif
<a class="btn btn-danger" href="{{route('pdViewDet', $pdt->product_id)}}">
<i class="fa fa-eye"></i>
</a>
<a class="btn btn-primary" href="{{route('pdEdit', $pdt->product_id)}}">
<i class="fa fa-edit"></i>
</a>
<a class="btn btn-danger" href="#deleteModal{{$pdt->product_id}}" data-
toggle="modal" id="delete">
<i class="fa fa-trash"></i>
</a>
<!-- Modal -->
<div class="modal fade" id="deleteModal{{$pdt->product_id}}" tabindex="-1"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h4>Do you really want to delete?</h4>
<form action="{{route('pdDel', $pdt->product_id)}}" method="post">
{{ csrf_field() }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-
dismiss="modal">Close</button>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</form>
</div>
</div>
</div>
{{-- End Modal --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@include('backend/layout/footer')
AdminController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class AdminController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$result = DB::table('orders')
// ->join('order_details', 'orders.order_id', '=', 'order_details.order_id')
->join('customers', 'orders.customer_id', '=', 'customers.customer_id')
->select('orders.*', 'customers.customer_name')
->get();
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
AuthController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\support\Facades\Redirect;
use Session;
use DB;
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
CategoryController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Category;
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view("backend/pages/add_category");
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$cat = new Category;
$cat->cat_name = $request->cat_name;
$cat->cat_details = $request->cat_details;
if ($request->status == 1) {
$cat->status = $request->status;
}else{
$cat->status = 0;
}
$cat->save();
$notification=array(
'message' => 'Successfully Inserted Data!',
'alert-type' => 'success'
);
return redirect()->route('addCat')->with($notification);
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewCat')->with($notification);
}
$cat = Category::find($id);
$cat->status = 0;
$cat->save();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewCat')->with($notification);
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$cat = Category::where('cat_id', $id)->get()->first();
return view('backend/pages/edit_category')->with('cat', $cat);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$cat = Category::where('cat_id', $id)->get()->first();
$cat->cat_name = $request->cat_name;
$cat->cat_details = $request->cat_details;
if ($request->status == 1) {
$cat->status = $request->status;
}else{
$cat->status = 0;
}
$cat->update();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewCat')->with($notification);
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$delete = Category::where('cat_id', $id)->delete();
$notification=array(
'message' => 'Successfully Deleted Data!',
'alert-type' => 'success'
);
return redirect()->route('viewCat')->with($notification);
}
}
CheckOutController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Customer;
use App\Order;
use App\OrderDetails;
use App\Payment;
use App\Shipping;
use Session;
use DB;
use Cart;
use Rakibhstu\Banglanumber\NumberToBangla;
class CheckOutController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$pay->payment_method = $request->card;
$pay->card_number = $request->number;
$pay->payment_status = 0;
$pay->save();
$payment_id = $pay->payment_id;
$cust_id = Session::get('customer_id');
$shipping = Shipping::all()->where('customer_id', $cust_id)->first();
$contents = Cart::getContent();
$qty = 0;
foreach ($contents as $item) {
$qty += $item->quantity;
}
// echo $qty;
$order = new Order;
$order->customer_id = Session::get('customer_id');
$order->shipping_id = $shipping->shipping_id;
$order->transaction_id = $payment_id;
$order->order_total = $qty;
$order->status = 0;
$order->save();
$con = Cart::getContent();
return redirect()->route('confirm');
return view('frontend/pages/order_confirm');
}
$ship->save();
return view('frontend/pages/payment');
$cust->customer_name = $request->name;
$cust->mobile = $request->mobile;
$cust->email = $request->email;
$cust->password = md5($request->password);
$cust->save();
Session::put('customer_id', $cust->customer_id);
Session::put('customer_name', $cust->customer_name);
return redirect()->route('checkout');
}
$email = $request->email;
$pass = md5($request->password);
}else{
$notification=array(
'message' => 'Invalid Email or Password!',
'alert-type' => 'error'
);
return redirect()->route('logCk')->with($notification);
}
$product =DB::table('products')
->where('status', 1)
->where('sub_cat_item_id', $sub_id)
->orderby('product_id', 'desc')
->get();
if($product){
foreach ($product as $pro) {
$new_price = number_format($pro->product_price - ($pro->product_price * $pro-
>product_discount /100));
$output = '
<div class="col-md-3 single__pro col-lg-3 cat--1 col-sm-3 col-xs-12">
<div class="product">
<div class="product__inner">
<div class="pro__thumb">
<a href="/product-details/'.$pro->product_id.'">
<img src="'.$pro->product_image.'" alt="product images">
</a>
</div>
<div class="product__hover__info">
<ul class="product__action">
<li><a data-toggle="modal" title="Quick View" id="'.$pro-
>product_id.'" class="quick-view modal-view detail-link" href="#productModal"><span
class="ti-plus"></span></a></li>
<li><a title="Add TO Cart" href="cart.html"><span class="ti-shopping-
cart"></span></a></li>
<li><a title="Wishlist" href="wishlist.html"><span class="ti-
heart"></span></a></li>
</ul>
</div>
</div>
<div class="product__details">
<h2><a href="/product-details/'.$pro->product_id.'">'.$pro-
>product_name.'</a></h2>
<ul class="product__price">
<li class="old__price">'.number_format($pro->product_price).'</li>
<li class="new__price">৳'.$new_price.'</li>
</ul>
</div>
</div>
</div>
';
}
}
echo $output;
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
HomeController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Slider;
use App\Product;
use App\Category;
use DB;
use Cart;
use Redirect;
use Hashids;
use App\sub_categories;
$sub_category =DB::table('sub_categories')
->join('categories', 'sub_categories.cat_id', '=', 'categories.cat_id')
->select('sub_categories.sub_cat_id','sub_categories.sub_cat_name',
'sub_categories.cat_id')
->where('sub_categories.status', 1)
->orderby('sub_cat_id', 'asc')
->get();
$product =Product::all()
->where('status', 1)
->where('product_id', $product_id)
->first();
// echo "<pre>";
// print_r($product);
// echo "</pre>";
$data['id'] = $product_id;
$data['name'] = $product->product_name;
$data['price'] = $product->product_price - ($product->product_price * $product-
>product_discount /100);
$data['quantity'] = $quantity;
$data['attributes']['image'] = $product->product_image;
$data['attributes']['product_code'] = $product->product_code;
Cart::add($data);
return redirect::to('/');
}
$data['id'] = $product_id;
$data['name'] = $product->product_name;
$data['price'] = $product->product_price - ($product->product_price * $product-
>product_discount /100);
$data['quantity'] = $quantity;
$data['attributes']['image'] = $product->product_image;
$data['attributes']['product_code'] = $product->product_code;
Cart::add($data);
return redirect::to('/show-cart');
}
$id = $request->product_id;
$quantity = $request->quantity;
$data['quantity']['relative'] = false;
$data['quantity']['value'] = $quantity;
Cart::update($id, $data);
return redirect::to('/show-cart');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
public function filter_product($id){
$id = Hashids::decode($id);
$sub_cat =DB::table('sub_categories')
->join('sub__category__items', 'sub_categories.sub_cat_id', '=',
'sub__category__items.sub_cat_id')
->select('sub_categories.sub_cat_id','sub_categories.sub_cat_name')
->where('sub_categories.status', 1)
->where('sub__category__items.sub_cat_item_id', $id)
->first();
$find_id = DB::table('sub__category__items')
->select('sub_cat_id')
->where('status',1)
->where('sub_cat_item_id', $id)
->first();
$sub_cat_item = DB::table('sub__category__items')
->select('sub__category__items.*')
->where('status',1)
->where('sub_cat_id',$find_id->sub_cat_id)
->get();
$product =DB::table('products')
->join('sub__category__items', 'products.sub_cat_item_id', '=',
'sub__category__items.sub_cat_item_id')
->join('sub_categories', 'sub__category__items.sub_cat_id', '=',
'sub_categories.sub_cat_id')
->select('products.*')
->where('products.status', 1)
->where('sub_categories.status', 1)
->where('sub__category__items.status', 1)
->where('sub__category__items.sub_cat_item_id', $id)
->orderby('product_id', 'desc')
->get();
$sub_cat_item_name = DB::table('sub__category__items')
->select('sub_cat_item_name')
->where('status',1)
->where('sub_cat_item_id', $id)
->first();
return view('frontend/pages/filter_product')
->with('sub_cat', $sub_cat)
->with('sub_cat_item', $sub_cat_item)
->with('product',$product)
->with('scin', $sub_cat_item_name);
}
$sub_cat =DB::table('sub_categories')
->join('sub__category__items', 'sub_categories.sub_cat_id', '=',
'sub__category__items.sub_cat_id')
->select('sub_categories.sub_cat_id','sub_categories.sub_cat_name')
->where('sub_categories.status', 1)
->where('sub__category__items.sub_cat_item_id', $id)
->first();
$find_id = DB::table('sub__category__items')
->select('sub_cat_id')
->where('status',1)
->where('sub_cat_item_id', $id)
->first();
$sub_cat_item = DB::table('sub__category__items')
->select('sub__category__items.*')
->where('status',1)
->where('sub_cat_id',$find_id->sub_cat_id)
->get();
$product =DB::table('products')
->join('sub__category__items', 'products.sub_cat_item_id', '=',
'sub__category__items.sub_cat_item_id')
->join('sub_categories', 'sub__category__items.sub_cat_id', '=',
'sub_categories.sub_cat_id')
->select('products.*')
->where('products.status', 1)
->where('sub_categories.status', 1)
->where('sub__category__items.status', 1)
->where('sub__category__items.sub_cat_item_id', $id)
->orderby('product_id', 'desc')
->get();
$sub_cat_item_name = DB::table('sub__category__items')
->select('sub_cat_item_name')
->where('status',1)
->where('sub_cat_item_id', $id)
->first();
return view('frontend/pages/filter_product')
->with('sub_cat', $sub_cat)
->with('sub_cat_item', $sub_cat_item)
->with('product',$product)
->with('scin', $sub_cat_item_name);
}
$id = 7;
$result = DB::table('products')
->select('product_name')
->where('product_id', $id)
->get();
$result = DB::table('products')
->select('products.*')
->where('product_id', $id)
->get();
return response()->json($result);
// echo "<pre>";
// print_r($result);
// exit;
// return view('frontend/pages/test');
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
// $id = Hashids::decode($id);
$product = Product::all()
->where('status',1)
->where('product_id', $id)
->first();
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
ProductController.php-
<?php
namespace App\Http\Controllers;
use App\Product;
use App\Color;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use DB;
use Image;
use File;
$result = DB::table('sub_categories')
->select('sub_cat_id','sub_cat_name')
->where('status', 1)
->where('cat_id', $id )
->orderby('sub_cat_id', 'asc')
->get();
sleep(0.5);
return response()->json($result);
// echo "<pre>";
// print_r($result);
// exit;
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$category = DB::table('categories')->get();
$color = Color::all();
return view('backend/pages/add_product')->with('category',$category)->with('color',
$color);
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$product->product_name = $request->product_name;
$product->product_code = $request->product_code;
$product->product_brand = $request->product_brand;
if ($request->product_size !='') {
$product->product_size = implode(' , ', $request->product_size);
}
if ($request->product_color !='') {
$product->product_color = implode(' , ', $request->product_color);
}
$product->product_details = $request->product_details;
$product->product_unit = $request->product_unit;
$product->product_price = $request->product_price;
$product->product_qty = $request->product_qty;
$product->product_status = $request->product_status;
$product->product_discount = $request->product_discount;
$product->sub_cat_item_id = $request->sub_cat_item_id;
$product->product_status = $request->status;
// $product->product_image = $request->product_image;
$image = $request->file('image');
if($image){
$image_name = Str::random(20);
$ext = strtolower($image->getClientOriginalExtension());
$image_full_name = $image_name.'.'.$ext;
$upload_path = 'frontend/images/product/';
if (!file_exists(public_path($upload_path))) {
mkdir(public_path($upload_path), 777, true);
}
$resize_image = Image::make($image->getRealPath());
$success = $resize_image->resize(600, 600)->save($upload_path.'/'.
$image_full_name);
// $upload_path = 'product_images/';
$image_url = $upload_path.$image_full_name;
// $success = $image->move($upload_path, $image_full_name);
if($success){
$product->product_image = $image_url;
}
}
$product->save();
$notification=array(
'message' => 'Successfully Inserted Data!',
'alert-type' => 'success'
);
return redirect()->route('addPd')->with($notification);
}
/**
* Display the specified resource.
*
* @param \App\Product $product
* @return \Illuminate\Http\Response
*/
public function show($id)
{
$product = Product::where('product_id',$id)->get()->first();
return view('backend/pages/view_product_details')->with('pdt', $product);
}
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewPd')->with($notification);
}
$product = Product::find($id);
$product->status = 0;
$product->save();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewPd')->with($notification);
}
/**
* Show the form for editing the specified resource.
*
* @param \App\Product $product
* @return \Illuminate\Http\Response
*/
public function edit(Product $product)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Product $product
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Product $product)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\Product $product
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$delete = Product::where('product_id', $id)->delete();
$notification=array(
'message' => 'Successfully Deleted Data!',
'alert-type' => 'success'
);
return redirect()->route('viewPd')->with($notification);
}
}
SliderController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use App\Slider;
use Image;
use File;
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('backend/pages/add_slider');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$slider = new Slider;
$slider->title = $request->title;
$slider->sub_title = $request->sub_title;
$slider->position = $request->position;
// $slider->image = $request->image;
$slider->product_code = $request->product_code;
if ($request->status == 1) {
$slider->status = $request->status;
}else{
$slider->status = 0;
}
$image = $request->file('image');
if($image){
$image_name = Str::random(20);
$ext = strtolower($image->getClientOriginalExtension());
$image_full_name = $image_name.'.'.$ext;
$upload_path = 'backend/slider/';
if (!file_exists(public_path($upload_path))) {
mkdir(public_path($upload_path), 777, true);
}
$resize_image = Image::make($image->getRealPath());
$success = $resize_image->resize(1920, 1000)->save($upload_path.'/'.
$image_full_name);
// $upload_path = 'product_images/';
$image_url = $upload_path.$image_full_name;
// $success = $image->move($upload_path, $image_full_name);
if($success){
$slider->image = $image_url;
}
}
$slider->save();
$notification=array(
'message' => 'Successfully Inserted Data!',
'alert-type' => 'success'
);
return redirect()->route('slider')->with($notification);
}
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSlider')->with($notification);
}
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSlider')->with($notification);
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$slider = Slider::where('slider_id', $id)->get()->first();
return view('backend/pages/edit_slider')->with('slider', $slider);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$slider = Slider::where('slider_id', $id)->get()->first();
if ($request->image = '') {
//$slider = new Slider;
$slider->title = $request->title;
$slider->sub_title = $request->sub_title;
$slider->position = $request->position;
// $slider->image = $request->image;
$slider->product_code = $request->product_code;
if ($request->status == 1) {
$slider->status = $request->status;
}else{
$slider->status = 0;
}
}else{
$slider->title = $request->title;
$slider->sub_title = $request->sub_title;
$slider->position = $request->position;
// $slider->image = $request->image;
$slider->product_code = $request->product_code;
if ($request->status == 1) {
$slider->status = $request->status;
}else{
$slider->status = 0;
}
$image = $request->file('image');
if($image){
File::Delete($slider->image);
$image_name = Str::random(20);
$ext = strtolower($image->getClientOriginalExtension());
$image_full_name = $image_name.'.'.$ext;
$upload_path = 'backend/slider/';
if (!file_exists(public_path($upload_path))) {
mkdir(public_path($upload_path), 777, true);
}
$resize_image = Image::make($image->getRealPath());
$success = $resize_image->resize(1920, 1000)->save($upload_path.'/'.
$image_full_name);
// $upload_path = 'product_images/';
$image_url = $upload_path.$image_full_name;
// $success = $image->move($upload_path, $image_full_name);
if($success){
$slider->image = $image_url;
}
}
}
$slider->update();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSlider')->with($notification);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$slider = Slider::where('slider_id', $id)->get()->first();
File::Delete($slider->image);
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSlider')->with($notification);
}
}
SubCategoryController.php-
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\sub_categories;
use DB;
return view('backend/pages/view_sub_category')
->with('subCategory',$subCat);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('backend/pages/add_sub_category');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$subCat = new sub_categories;
$subCat->sub_cat_name = $request->sub_cat_name;
$subCat->sub_cat_details = $request->sub_cat_details;
$subCat->cat_id = $request->cat_id;
if ($request->status == 1) {
$subCat->status = $request->status;
}else{
$subCat->status = 0;
}
$subCat->save();
$notification=array(
'message' => 'Successfully Inserted Data!',
'alert-type' => 'success'
);
return redirect()->route('addSubCat')->with($notification);
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCat')->with($notification);
}
$subCat = sub_categories::find($id);
$subCat->status = 0;
$subCat->save();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCat')->with($notification);
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$subCat = sub_categories::where('sub_cat_id', $id)->get()->first();
return view('backend/pages/edit_sub_category')->with('subCat', $subCat);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$cat = sub_categories::where('sub_cat_id', $id)->get()->first();
$cat->sub_cat_name = $request->sub_cat_name;
$cat->sub_cat_details = $request->sub_cat_details;
$cat->cat_id = $request->cat_id;
if ($request->status == 1) {
$cat->status = $request->status;
}else{
$cat->status = 0;
}
$cat->update();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCat')->with($notification);
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$delete = sub_categories::where('sub_cat_id', $id)->delete();
$notification=array(
'message' => 'Successfully Deleted Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCat')->with($notification);
}
}
SubCategoryItemController.php-
<?php
namespace App\Http\Controllers;
use App\Sub_Category_Item;
use App\sub_categories;
use Illuminate\Http\Request;
use DB;
return view('backend/pages/view_sub_category_item')->with('subCategoryItem',
$subCatItem);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$cat = DB::table('categories')->get();
return view('backend/pages/add_sub_category_item')->with('category',$cat);
}
$result = DB::table('sub_categories')
->select('sub_cat_id','sub_cat_name')
->where('status', 1)
->where('cat_id', $id )
->orderby('sub_cat_id', 'asc')
->get();
sleep(0.5);
return response()->json($result);
// echo "<pre>";
// print_r($result);
// exit;
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$subCatItem = new sub_category_item;
$subCatItem->sub_cat_item_name = $request->sub_cat_item_name;
$subCatItem->sub_cat_item_details = $request->sub_cat_item_details;
$subCatItem->sub_cat_id = $request->sub_category;
if ($request->status == 1) {
$subCatItem->status = $request->status;
}else{
$subCatItem->status = 0;
}
$subCatItem->save();
$notification=array(
'message' => 'Successfully Inserted Data!',
'alert-type' => 'success'
);
return redirect()->route('addSubCatItem')->with($notification);
}
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCatItem')->with($notification);
}
$subCatItem = sub_category_item::find($id);
$subCatItem->status = 0;
$subCatItem->save();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCatItem')->with($notification);
}
/**
* Display the specified resource.
*
* @param \App\Sub_Category_Item $sub_Category_Item
* @return \Illuminate\Http\Response
*/
public function show(Sub_Category_Item $sub_Category_Item)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param \App\Sub_Category_Item $sub_Category_Item
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$subCatItem = Sub_Category_Item::where('sub_cat_item_id', $id)->get()->first();
$catId = sub_categories::where('sub_cat_id', $subCatItem->sub_cat_id)->get()->first();
return view('backend/pages/edit_sub_category_item')->with('subCatItem', $subCatItem)-
>with('catId', $catId);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Sub_Category_Item $sub_Category_Item
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$subCatItem = Sub_Category_Item::where('sub_cat_item_id', $id)->get()->first();
$subCatItem->sub_cat_item_name = $request->sub_cat_item_name;
$subCatItem->sub_cat_item_details = $request->sub_cat_item_details;
// $subCatItem->cat_id = $request->cat_id;
$subCatItem->sub_cat_id = $request->sub_cat_id;
if ($request->status == 1) {
$subCatItem->status = $request->status;
}else{
$subCatItem->status = 0;
}
$subCatItem->update();
$notification=array(
'message' => 'Successfully Updated Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCatItem')->with($notification);
/**
* Remove the specified resource from storage.
*
* @param \App\Sub_Category_Item $sub_Category_Item
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$delete = sub_category_item::where('sub_cat_item_id', $id)->delete();
$notification=array(
'message' => 'Successfully Deleted Data!',
'alert-type' => 'success'
);
return redirect()->route('viewSubCatItem')->with($notification);
}
}
CHAPTER 10: REFERENCE
I. Chapter 4: Data and Databases – Information Systems for Business and Beyond; Dave
Bourgeois and David T. Bourgeois.
II. Goldblatt, Joe. Twenty-First Century Global Ecommerce Business (The Wiley Ecommerce
Business) ISBN 0-471-39687-7
III. "PHP: Basic syntax". The PHP Group. Retrieved 2008-02-22.
IV. "About". Bootstrap. Retrieved February 23, 2019.
V. "PHP: Basic syntax". The Stack Overflow. Retrieved 2008-02-22.
VI. Liu Meilq Li Xiaoping, "Under the envirotrment of B2B logistics service quality and
relationship quality" , An Empirical Studlt of Commercial Economic Reseqrch,pp.
4142,2015.
VII. Y. Bakos, "The Emerging Landscape for Retail E-Commerce", Journat of Economic
Perspectives, vol. 15, no. l, 2001, pp. 69-80.
VIII. Laudon, Kenneth C.; Guercio Traver, Carol (2014). E-commerce. business. technology.
society. 10th edition. Pearson. ISBN 978-013-302444-9.
IX. Chaudhury, Abijit; Kuilboer, Jean-Pierre (2002). e-Business and e-Commerce
Infrastructure. McGraw-Hill. ISBN 978-0-07-247875-4.
X. Kessler, M (22 December 2003), "More shoppers proceed to checkout online", USA today,
retrieved 13 January 2004.
XI. Miller, Roger (2002). The Legal and E-Commerce Environment Today (hardcover ed.).
Thomson Learning. ISBN 978-0-324-06188-8. 741 pp.
XII. “Ebay History” www.cs.brandeis.edu. Retrieved 2020-02-17.