NenTang
Học tập · thực hành · tiến bộ mỗi ngày
58 / 83

Thiết kế web với framework Laravel Chương 11 Bài 1

Chương 11 Bài 1. Thiết kế bố cục (layouts) cho giao diện Frontend

legacy-admin-baitap-1

2 thg 2, 2025

1.021 lượt xem

2 giờ 56 phút

Chúng ta sẽ tạo giao diện frontend trang web, sử dụng theme cozastore như sau:
frontend-310x1024

Thiết kế layout dành cho frontend

Step 1: download theme

Các bạn download theme cozastore tại đây: cozastore

Step 2: giải nén, chép vào thư mục public của dự án như sau:

no-highlight
1public
2├───themes
3│ └───cozastore
4│ ├───css
5│ │ custom-styles.css -> tạo thêm file dành cho việc custom CSS
6│ │ main.css
7│ │ util.css
8│ ├───fonts
9│ ├───images
10│ ├───js
11│ └───vendor

Step 3: tạo cấu trúc layouts dành cho frontend:

  • Chúng ta sẽ phân tách layout frontend thành từng phần như sau:
    • 1 file cấu trúc master.blade.php chính
    • Phần nội dung header sẽ được tách ra thành partials/header.blade.php
    • Phần nội dung footer sẽ được tách ra thành partials/footer.blade.php
    • Phần nội dung cart sẽ được tách ra thành partials/cart.blade.php
frontend-cozastore-layout-1012x1024
  • Tạo cấu trúc folder layouts frontend như sau:
no-highlight
1views
2├───frontend
3│ │ index.blade.php
4│ │
5│ ├───layouts
6│ │ │ master.blade.php
7│ │ │
8│ │ └───partials
9│ │ cart.blade.php
10│ │ footer.blade.php
11│ │ header.blade.php
12│ │
13│ ├───pages
14│ │ about.blade.php
15│ │ contact.blade.php
16│ │ product-detail.blade.php
17│ │ product.blade.php
18│ │ shopping-cart.blade.php
19│ │
20│ └───widgets
21│ homepage-banner.blade.php
22│ homepage-slider.blade.php
23│ product-list.blade.php
  • Nội dung file resources/views/frontend/layouts/master.blade.php
php
1<!DOCTYPE html>
2<html lang="en">
3 
4<head>
5 <title>@yield('title')</title>
6 <meta charset="UTF-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <link rel="icon" type="image/png" href="{{ asset('themes/cozastore/images/icons/favicon.png') }}" />
9 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/bootstrap/css/bootstrap.min.css') }}">
10 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/fonts/font-awesome-4.7.0/css/font-awesome.min.css') }}">
11 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/fonts/iconic/css/material-design-iconic-font.min.css') }}">
12 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/fonts/linearicons-v1.0.0/icon-font.min.css') }}">
13 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/animate/animate.css') }}">
14 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/css-hamburgers/hamburgers.min.css') }}">
15 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/animsition/css/animsition.min.css') }}">
16 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/select2/select2.min.css') }}">
17 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/daterangepicker/daterangepicker.css') }}">
18 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/slick/slick.css') }}">
19 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/MagnificPopup/magnific-popup.css') }}">
20 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/vendor/perfect-scrollbar/perfect-scrollbar.css') }}">
21 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/css/util.css') }}">
22 <link rel="stylesheet" type="text/css" href="{{ asset('themes/cozastore/css/main.css') }}">
23 
24 <!-- Các custom style của frontend -->
25 <link rel="stylesheet" href="{{ asset('themes/cozastore/css/custom-styles.css') }}">
26 
27 <!-- Các custom style dành riêng cho từng view -->
28 @yield('custom-css')
29</head>
30 
31<body class="animsition">
32 
33 <!-- Header -->
34 @include('frontend.layouts.partials.header')
35 
36 <!-- Cart -->
37 @include('frontend.layouts.partials.cart')
38 
39 <!-- Content -->
40 @yield('main-content')
41 
42 <!-- Footer -->
43 @include('frontend.layouts.partials.footer')
44 
45 <!-- Back to top -->
46 <div class="btn-back-to-top" id="myBtn">
47 <span class="symbol-btn-back-to-top">
48 <i class="zmdi zmdi-chevron-up"></i>
49 </span>
50 </div>
51 
52 <!-- Modal1 -->
53 <div class="wrap-modal1 js-modal1 p-t-60 p-b-20">
54 <div class="overlay-modal1 js-hide-modal1"></div>
55 
56 <div class="container">
57 <div class="bg0 p-t-60 p-b-30 p-lr-15-lg how-pos3-parent">
58 <button class="how-pos3 hov3 trans-04 js-hide-modal1">
59 <img src="{{ asset('themes/cozastore/images/icons/icon-close.png') }}" alt="CLOSE">
60 </button>
61 
62 <div class="row">
63 <div class="col-md-6 col-lg-7 p-b-30">
64 <div class="p-l-25 p-r-30 p-lr-0-lg">
65 <div class="wrap-slick3 flex-sb flex-w">
66 <div class="wrap-slick3-dots"></div>
67 <div class="wrap-slick3-arrows flex-sb-m flex-w"></div>
68 
69 <div class="slick3 gallery-lb">
70 <div class="item-slick3" data-thumb="{{ asset('themes/cozastore/images/product-detail-01.jpg') }}">
71 <div class="wrap-pic-w pos-relative">
72 <img src="{{ asset('themes/cozastore/images/product-detail-01.jpg') }}" alt="IMG-PRODUCT">
73 
74 <a class="flex-c-m size-108 how-pos1 bor0 fs-16 cl10 bg0 hov-btn3 trans-04" href="{{ asset('themes/cozastore/images/product-detail-01.jpg') }}">
75 <i class="fa fa-expand"></i>
76 </a>
77 </div>
78 </div>
79 
80 <div class="item-slick3" data-thumb="{{ asset('themes/cozastore/images/product-detail-02.jpg') }}">
81 <div class="wrap-pic-w pos-relative">
82 <img src="{{ asset('themes/cozastore/images/product-detail-02.jpg') }}" alt="IMG-PRODUCT">
83 
84 <a class="flex-c-m size-108 how-pos1 bor0 fs-16 cl10 bg0 hov-btn3 trans-04" href="{{ asset('themes/cozastore/images/product-detail-02.jpg') }}">
85 <i class="fa fa-expand"></i>
86 </a>
87 </div>
88 </div>
89 
90 <div class="item-slick3" data-thumb="{{ asset('themes/cozastore/images/product-detail-03.jpg') }}">
91 <div class="wrap-pic-w pos-relative">
92 <img src="{{ asset('themes/cozastore/images/product-detail-03.jpg') }}" alt="IMG-PRODUCT">
93 
94 <a class="flex-c-m size-108 how-pos1 bor0 fs-16 cl10 bg0 hov-btn3 trans-04" href="{{ asset('themes/cozastore/images/product-detail-03.jpg') }}">
95 <i class="fa fa-expand"></i>
96 </a>
97 </div>
98 </div>
99 </div>
100 </div>
101 </div>
102 </div>
103 
104 <div class="col-md-6 col-lg-5 p-b-30">
105 <div class="p-r-50 p-t-5 p-lr-0-lg">
106 <h4 class="mtext-105 cl2 js-name-detail p-b-14">
107 Lightweight Jacket
108 </h4>
109 
110 <span class="mtext-106 cl2">
111 $58.79
112 </span>
113 
114 <p class="stext-102 cl3 p-t-23">
115 Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.
116 </p>
117 
118 <!-- -->
119 <div class="p-t-33">
120 <div class="flex-w flex-r-m p-b-10">
121 <div class="size-203 flex-c-m respon6">
122 Size
123 </div>
124 
125 <div class="size-204 respon6-next">
126 <div class="rs1-select2 bor8 bg0">
127 <select class="js-select2" name="time">
128 <option>Choose an option</option>
129 <option>Size S</option>
130 <option>Size M</option>
131 <option>Size L</option>
132 <option>Size XL</option>
133 </select>
134 <div class="dropDownSelect2"></div>
135 </div>
136 </div>
137 </div>
138 
139 <div class="flex-w flex-r-m p-b-10">
140 <div class="size-203 flex-c-m respon6">
141 Color
142 </div>
143 
144 <div class="size-204 respon6-next">
145 <div class="rs1-select2 bor8 bg0">
146 <select class="js-select2" name="time">
147 <option>Choose an option</option>
148 <option>Red</option>
149 <option>Blue</option>
150 <option>White</option>
151 <option>Grey</option>
152 </select>
153 <div class="dropDownSelect2"></div>
154 </div>
155 </div>
156 </div>
157 
158 <div class="flex-w flex-r-m p-b-10">
159 <div class="size-204 flex-w flex-m respon6-next">
160 <div class="wrap-num-product flex-w m-r-20 m-tb-10">
161 <div class="btn-num-product-down cl8 hov-btn3 trans-04 flex-c-m">
162 <i class="fs-16 zmdi zmdi-minus"></i>
163 </div>
164 
165 <input class="mtext-104 cl3 txt-center num-product" type="number" name="num-product" value="1">
166 
167 <div class="btn-num-product-up cl8 hov-btn3 trans-04 flex-c-m">
168 <i class="fs-16 zmdi zmdi-plus"></i>
169 </div>
170 </div>
171 
172 <button class="flex-c-m stext-101 cl0 size-101 bg1 bor1 hov-btn1 p-lr-15 trans-04 js-addcart-detail">
173 Add to cart
174 </button>
175 </div>
176 </div>
177 </div>
178 
179 <!-- -->
180 <div class="flex-w flex-m p-l-100 p-t-40 respon7">
181 <div class="flex-m bor9 p-r-10 m-r-11">
182 <a href="#" class="fs-14 cl3 hov-cl1 trans-04 lh-10 p-lr-5 p-tb-2 js-addwish-detail tooltip100" data-tooltip="Add to Wishlist">
183 <i class="zmdi zmdi-favorite"></i>
184 </a>
185 </div>
186 
187 <a href="#" class="fs-14 cl3 hov-cl1 trans-04 lh-10 p-lr-5 p-tb-2 m-r-8 tooltip100" data-tooltip="Facebook">
188 <i class="fa fa-facebook"></i>
189 </a>
190 
191 <a href="#" class="fs-14 cl3 hov-cl1 trans-04 lh-10 p-lr-5 p-tb-2 m-r-8 tooltip100" data-tooltip="Twitter">
192 <i class="fa fa-twitter"></i>
193 </a>
194 
195 <a href="#" class="fs-14 cl3 hov-cl1 trans-04 lh-10 p-lr-5 p-tb-2 m-r-8 tooltip100" data-tooltip="Google Plus">
196 <i class="fa fa-google-plus"></i>
197 </a>
198 </div>
199 </div>
200 </div>
201 </div>
202 </div>
203 </div>
204 </div>
205 
206 <script src="{{ asset('themes/cozastore/vendor/jquery/jquery-3.2.1.min.js') }}"></script>
207 <script src="{{ asset('themes/cozastore/vendor/animsition/js/animsition.min.js') }}"></script>
208 <script src="{{ asset('themes/cozastore/vendor/bootstrap/js/popper.js') }}"></script>
209 <script src="{{ asset('themes/cozastore/vendor/bootstrap/js/bootstrap.min.js') }}"></script>
210 <script src="{{ asset('themes/cozastore/vendor/select2/select2.min.js') }}"></script>
211 <script>
212 $(".js-select2").each(function() {
213 $(this).select2({
214 minimumResultsForSearch: 20,
215 dropdownParent: $(this).next('.dropDownSelect2')
216 });
217 })
218 </script>
219 <script src="{{ asset('themes/cozastore/vendor/daterangepicker/moment.min.js') }}"></script>
220 <script src="{{ asset('themes/cozastore/vendor/daterangepicker/daterangepicker.js') }}"></script>
221 <script src="{{ asset('themes/cozastore/vendor/slick/slick.min.js') }}"></script>
222 <script src="{{ asset('themes/cozastore/js/slick-custom.js') }}"></script>
223 <script src="{{ asset('themes/cozastore/vendor/parallax100/parallax100.js') }}"></script>
224 <script>
225 $('.parallax100').parallax100();
226 </script>
227 <script src="{{ asset('themes/cozastore/vendor/MagnificPopup/jquery.magnific-popup.min.js') }}"></script>
228 <script>
229 $('.gallery-lb').each(function() { // the containers for all your galleries
230 $(this).magnificPopup({
231 delegate: 'a', // the selector for gallery item
232 type: 'image',
233 gallery: {
234 enabled: true
235 },
236 mainClass: 'mfp-fade'
237 });
238 });
239 </script>
240 <script src="{{ asset('themes/cozastore/vendor/isotope/isotope.pkgd.min.js') }}"></script>
241 <script src="{{ asset('themes/cozastore/vendor/sweetalert/sweetalert.min.js') }}"></script>
242 <script>
243 $('.js-addwish-b2').on('click', function(e) {
244 e.preventDefault();
245 });
246 
247 $('.js-addwish-b2').each(function() {
248 var nameProduct = $(this).parent().parent().find('.js-name-b2').html();
249 $(this).on('click', function() {
250 swal(nameProduct, "is added to wishlist !", "success");
251 
252 $(this).addClass('js-addedwish-b2');
253 $(this).off('click');
254 });
255 });
256 
257 $('.js-addwish-detail').each(function() {
258 var nameProduct = $(this).parent().parent().parent().find('.js-name-detail').html();
259 
260 $(this).on('click', function() {
261 swal(nameProduct, "is added to wishlist !", "success");
262 
263 $(this).addClass('js-addedwish-detail');
264 $(this).off('click');
265 });
266 });
267 
268 /*---------------------------------------------*/
269 
270 $('.js-addcart-detail').each(function() {
271 var nameProduct = $(this).parent().parent().parent().parent().find('.js-name-detail').html();
272 $(this).on('click', function() {
273 swal(nameProduct, "is added to cart !", "success");
274 });
275 });
276 </script>
277 <script src="{{ asset('themes/cozastore/vendor/perfect-scrollbar/perfect-scrollbar.min.js') }}"></script>
278 <script>
279 $('.js-pscroll').each(function() {
280 $(this).css('position', 'relative');
281 $(this).css('overflow', 'hidden');
282 var ps = new PerfectScrollbar(this, {
283 wheelSpeed: 1,
284 scrollingThreshold: 1000,
285 wheelPropagation: false,
286 });
287 
288 $(window).on('resize', function() {
289 ps.update();
290 })
291 });
292 </script>
293 <script src="{{ asset('themes/cozastore/js/main.js') }}"></script>
294 
295 <!-- Các custom script dành riêng cho từng view -->
296 @yield('custom-scripts')
297</body>
298 
299</html>
  • Nội dung file resources/views/frontend/layouts/partials/header.blade.php
php
1<header class="header-v4">
2 <!-- Header desktop -->
3 <div class="container-menu-desktop">
4 <!-- Topbar -->
5 <div class="top-bar">
6 <div class="content-topbar flex-sb-m h-full container">
7 <div class="left-top-bar">
8 Free shipping for standard order over $100
9 </div>
10 
11 <div class="right-top-bar flex-w h-full">
12 <a href="#" class="flex-c-m trans-04 p-lr-25">
13 Help & FAQs
14 </a>
15 
16 <a href="#" class="flex-c-m trans-04 p-lr-25">
17 My Account
18 </a>
19 
20 <a href="#" class="flex-c-m trans-04 p-lr-25">
21 EN
22 </a>
23 
24 <a href="#" class="flex-c-m trans-04 p-lr-25">
25 USD
26 </a>
27 </div>
28 </div>
29 </div>
30 
31 <div class="wrap-menu-desktop">
32 <nav class="limiter-menu-desktop container">
33 
34 <!-- Logo desktop -->
35 <a href="" class="logo">
36 <img src="{{ asset('themes/cozastore/images/icons/logo-01.png') }}" alt="IMG-LOGO">
37 </a>
38 
39 <!-- Menu desktop -->
40 <div class="menu-desktop">
41 <ul class="main-menu">
42 <li class="{{ Request::is('') ? 'active-menu' : '' }}">
43 <a href="">Home</a>
44 </li>
45 
46 <li>
47 <a href="product.html">Shop</a>
48 </li>
49 
50 <li class="label1" data-label1="hot">
51 <a href="shoping-cart.html">Features</a>
52 </li>
53 
54 <li>
55 <a href="blog.html">Blog</a>
56 </li>
57 
58 <li class="{{ Request::is('gioi-thieu') ? 'active-menu' : '' }}">
59 <a href="">About</a>
60 </li>
61 
62 <li class="{{ Request::is('lien-he') ? 'active-menu' : '' }}">
63 <a href="">Contact</a>
64 </li>
65 </ul>
66 </div>
67 
68 <!-- Icon header -->
69 <div class="wrap-icon-header flex-w flex-r-m">
70 <div class="icon-header-item cl2 hov-cl1 trans-04 p-l-22 p-r-11 js-show-modal-search">
71 <i class="zmdi zmdi-search"></i>
72 </div>
73 
74 <div class="icon-header-item cl2 hov-cl1 trans-04 p-l-22 p-r-11 icon-header-noti js-show-cart" data-notify="2">
75 <i class="zmdi zmdi-shopping-cart"></i>
76 </div>
77 
78 <a href="#" class="dis-block icon-header-item cl2 hov-cl1 trans-04 p-l-22 p-r-11 icon-header-noti" data-notify="0">
79 <i class="zmdi zmdi-favorite-outline"></i>
80 </a>
81 </div>
82 </nav>
83 </div>
84 </div>
85 
86 <!-- Header Mobile -->
87 <div class="wrap-header-mobile">
88 <!-- Logo moblie -->
89 <div class="logo-mobile">
90 <a href="index.html"><img src="{{ asset('themes/cozastore/images/icons/logo-01.png') }}" alt="IMG-LOGO"></a>
91 </div>
92 
93 <!-- Icon header -->
94 <div class="wrap-icon-header flex-w flex-r-m m-r-15">
95 <div class="icon-header-item cl2 hov-cl1 trans-04 p-r-11 js-show-modal-search">
96 <i class="zmdi zmdi-search"></i>
97 </div>
98 
99 <div class="icon-header-item cl2 hov-cl1 trans-04 p-r-11 p-l-10 icon-header-noti js-show-cart" data-notify="2">
100 <i class="zmdi zmdi-shopping-cart"></i>
101 </div>
102 
103 <a href="#" class="dis-block icon-header-item cl2 hov-cl1 trans-04 p-r-11 p-l-10 icon-header-noti" data-notify="0">
104 <i class="zmdi zmdi-favorite-outline"></i>
105 </a>
106 </div>
107 
108 <!-- Button show menu -->
109 <div class="btn-show-menu-mobile hamburger hamburger--squeeze">
110 <span class="hamburger-box">
111 <span class="hamburger-inner"></span>
112 </span>
113 </div>
114 </div>
115 
116 
117 <!-- Menu Mobile -->
118 <div class="menu-mobile">
119 <ul class="topbar-mobile">
120 <li>
121 <div class="left-top-bar">
122 Free shipping for standard order over $100
123 </div>
124 </li>
125 
126 <li>
127 <div class="right-top-bar flex-w h-full">
128 <a href="#" class="flex-c-m p-lr-10 trans-04">
129 Help & FAQs
130 </a>
131 
132 <a href="#" class="flex-c-m p-lr-10 trans-04">
133 My Account
134 </a>
135 
136 <a href="#" class="flex-c-m p-lr-10 trans-04">
137 EN
138 </a>
139 
140 <a href="#" class="flex-c-m p-lr-10 trans-04">
141 USD
142 </a>
143 </div>
144 </li>
145 </ul>
146 
147 <ul class="main-menu-m">
148 <li>
149 <a href="index.html">Home</a>
150 <ul class="sub-menu-m">
151 <li><a href="index.html">Homepage 1</a></li>
152 <li><a href="home-02.html">Homepage 2</a></li>
153 <li><a href="home-03.html">Homepage 3</a></li>
154 </ul>
155 <span class="arrow-main-menu-m">
156 <i class="fa fa-angle-right" aria-hidden="true"></i>
157 </span>
158 </li>
159 
160 <li>
161 <a href="#">Shop</a>
162 </li>
163 
164 <li>
165 <a href="#" class="label1 rs1" data-label1="hot">Features</a>
166 </li>
167 
168 <li>
169 <a href="#">Blog</a>
170 </li>
171 
172 <li>
173 <a href="#">About</a>
174 </li>
175 
176 <li>
177 <a href="#">Contact</a>
178 </li>
179 </ul>
180 </div>
181 
182 <!-- Modal Search -->
183 <div class="modal-search-header flex-c-m trans-04 js-hide-modal-search">
184 <div class="container-search-header">
185 <button class="flex-c-m btn-hide-modal-search trans-04 js-hide-modal-search">
186 <img src="{{ asset('themes/cozastore/images/icons/icon-close2.png') }}" alt="CLOSE">
187 </button>
188 
189 <form class="wrap-search-header flex-w p-l-15">
190 <button class="flex-c-m trans-04">
191 <i class="zmdi zmdi-search"></i>
192 </button>
193 <input class="plh3" type="text" name="search" placeholder="Search...">
194 </form>
195 </div>
196 </div>
197</header>
  • Nội dung file resources/views/frontend/layouts/partials/footer.blade.php
php
1<footer class="bg3 p-t-75 p-b-32">
2 <div class="container">
3 <div class="row">
4 <div class="col-sm-6 col-lg-3 p-b-50">
5 <h4 class="stext-301 cl0 p-b-30">
6 Categories
7 </h4>
8 
9 <ul>
10 <li class="p-b-10">
11 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
12 Women
13 </a>
14 </li>
15 
16 <li class="p-b-10">
17 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
18 Men
19 </a>
20 </li>
21 
22 <li class="p-b-10">
23 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
24 Shoes
25 </a>
26 </li>
27 
28 <li class="p-b-10">
29 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
30 Watches
31 </a>
32 </li>
33 </ul>
34 </div>
35 
36 <div class="col-sm-6 col-lg-3 p-b-50">
37 <h4 class="stext-301 cl0 p-b-30">
38 Help
39 </h4>
40 
41 <ul>
42 <li class="p-b-10">
43 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
44 Track Order
45 </a>
46 </li>
47 
48 <li class="p-b-10">
49 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
50 Returns
51 </a>
52 </li>
53 
54 <li class="p-b-10">
55 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
56 Shipping
57 </a>
58 </li>
59 
60 <li class="p-b-10">
61 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">
62 FAQs
63 </a>
64 </li>
65 </ul>
66 </div>
67 
68 <div class="col-sm-6 col-lg-3 p-b-50">
69 <h4 class="stext-301 cl0 p-b-30">
70 GET IN TOUCH
71 </h4>
72 
73 <p class="stext-107 cl7 size-201">
74 Any questions? Let us know in store at 8th floor, 379 Hudson St, New York, NY 10018 or call us on (+1) 96 716 6879
75 </p>
76 
77 <div class="p-t-27">
78 <a href="#" class="fs-18 cl7 hov-cl1 trans-04 m-r-16">
79 <i class="fa fa-facebook"></i>
80 </a>
81 
82 <a href="#" class="fs-18 cl7 hov-cl1 trans-04 m-r-16">
83 <i class="fa fa-instagram"></i>
84 </a>
85 
86 <a href="#" class="fs-18 cl7 hov-cl1 trans-04 m-r-16">
87 <i class="fa fa-pinterest-p"></i>
88 </a>
89 </div>
90 </div>
91 
92 <div class="col-sm-6 col-lg-3 p-b-50">
93 <h4 class="stext-301 cl0 p-b-30">
94 Newsletter
95 </h4>
96 
97 <form>
98 <div class="wrap-input1 w-full p-b-4">
99 <input class="input1 bg-none plh1 stext-107 cl7" type="text" name="email" placeholder="[email protected]">
100 <div class="focus-input1 trans-04"></div>
101 </div>
102 
103 <div class="p-t-18">
104 <button class="flex-c-m stext-101 cl0 size-103 bg1 bor1 hov-btn2 p-lr-15 trans-04">
105 Subscribe
106 </button>
107 </div>
108 </form>
109 </div>
110 </div>
111 
112 <div class="p-t-40">
113 <div class="flex-c-m flex-w p-b-18">
114 <a href="#" class="m-all-1">
115 <img src="{{ asset('themes/cozastore/images/icons/icon-pay-01.png') }}" alt="ICON-PAY">
116 </a>
117 
118 <a href="#" class="m-all-1">
119 <img src="{{ asset('themes/cozastore/images/icons/icon-pay-02.png') }}" alt="ICON-PAY">
120 </a>
121 
122 <a href="#" class="m-all-1">
123 <img src="{{ asset('themes/cozastore/images/icons/icon-pay-03.png') }}" alt="ICON-PAY">
124 </a>
125 
126 <a href="#" class="m-all-1">
127 <img src="{{ asset('themes/cozastore/images/icons/icon-pay-04.png') }}" alt="ICON-PAY">
128 </a>
129 
130 <a href="#" class="m-all-1">
131 <img src="{{ asset('themes/cozastore/images/icons/icon-pay-05.png') }}" alt="ICON-PAY">
132 </a>
133 </div>
134 
135 <p class="stext-107 cl6 txt-center">
136 <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
137 Copyright &copy;<script>
138 document.write(new Date().getFullYear());
139 </script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>
140 <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
141 
142 </p>
143 </div>
144 </div>
145</footer>
  • Nội dung file resources/views/frontend/layouts/partials/cart.blade.php
php
1<div class="wrap-header-cart js-panel-cart">
2 <div class="s-full js-hide-cart"></div>
3 
4 <div class="header-cart flex-col-l p-l-65 p-r-25">
5 <div class="header-cart-title flex-w flex-sb-m p-b-8">
6 <span class="mtext-103 cl2">
7 Your Cart
8 </span>
9 
10 <div class="fs-35 lh-10 cl2 p-lr-5 pointer hov-cl1 trans-04 js-hide-cart">
11 <i class="zmdi zmdi-close"></i>
12 </div>
13 </div>
14 
15 <div class="header-cart-content flex-w js-pscroll">
16 <ul class="header-cart-wrapitem w-full">
17 <li class="header-cart-item flex-w flex-t m-b-12">
18 <div class="header-cart-item-img">
19 <img src="{{ asset('themes/cozastore/images/item-cart-01.jpg') }}" alt="IMG">
20 </div>
21 
22 <div class="header-cart-item-txt p-t-8">
23 <a href="#" class="header-cart-item-name m-b-18 hov-cl1 trans-04">
24 White Shirt Pleat
25 </a>
26 
27 <span class="header-cart-item-info">
28 1 x $19.00
29 </span>
30 </div>
31 </li>
32 </ul>
33 
34 <div class="w-full">
35 <div class="header-cart-total w-full p-tb-40">
36 Total: $75.00
37 </div>
38 
39 <div class="header-cart-buttons flex-w w-full">
40 <a href="#" class="flex-c-m stext-101 cl0 size-107 bg3 bor2 hov-btn3 p-lr-15 trans-04 m-r-8 m-b-10">
41 View Cart
42 </a>
43 
44 <a href="#" class="flex-c-m stext-101 cl0 size-107 bg3 bor2 hov-btn3 p-lr-15 trans-04 m-b-10">
45 Check Out
46 </a>
47 </div>
48 </div>
49 </div>
50 </div>
51</div>
   
Thiết kế bố cục (layouts) cho giao diện Frontend · NenTang