NenTang.vn
Thiết kế Lập trình Web BackendThiết kế web với framework Laravel
Thiết kế bố cục (layouts) cho giao diện Frontend
Chương 11 · Bài 1
Dự án thực tế mẫu - Trang web bán hàng trực tuyến - Thiết kế Frontend sử dụng AngularJS
Thời lượng: 176 phútĐọc khoảng: 9 phút
Danh mục hình và bảng
Từ viết tắt
Nội dung bài học không khai báo từ viết tắt bằng thẻ abbr.
Nội dung bài học
Chúng ta sẽ tạo giao diện frontend trang web, sử dụng theme frontend-310x1024
Thiết kế layout dành cho
Step 2: giải nén, chép vào thư mục
Step 3: tạo cấu trúc layouts dành cho
frontend-cozastore-layout-1012x1024
cozastore như sau:
Thiết kế layout dành cho frontend
Step 1: download theme
Các bạn download themecozastore 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
1public2├───themes3│ └───cozastore4│ ├───css5│ │ custom-styles.css -> tạo thêm file dành cho việc custom CSS6│ │ main.css7│ │ util.css8│ ├───fonts9│ ├───images10│ ├───js11│ └───vendorStep 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.phpchính - Phần nội dung
headersẽ được tách ra thànhpartials/header.blade.php - Phần nội dung
footersẽ được tách ra thànhpartials/footer.blade.php - Phần nội dung
cartsẽ được tách ra thànhpartials/cart.blade.php
- 1 file cấu trúc
- Tạo cấu trúc folder layouts
frontendnhư sau:
no-highlight
1views2├───frontend3│ │ index.blade.php4│ │5│ ├───layouts6│ │ │ master.blade.php7│ │ │8│ │ └───partials9│ │ cart.blade.php10│ │ footer.blade.php11│ │ header.blade.php12│ │13│ ├───pages14│ │ about.blade.php15│ │ contact.blade.php16│ │ product-detail.blade.php17│ │ product.blade.php18│ │ shopping-cart.blade.php19│ │20│ └───widgets21│ homepage-banner.blade.php22│ homepage-slider.blade.php23│ 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 Jacket108 </h4>109 110 <span class="mtext-106 cl2">111 $58.79112 </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 Size123 </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 Color142 </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 cart174 </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 galleries230 $(this).magnificPopup({231 delegate: 'a', // the selector for gallery item232 type: 'image',233 gallery: {234 enabled: true235 },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 $1009 </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 & FAQs14 </a>15 16 <a href="#" class="flex-c-m trans-04 p-lr-25">17 My Account18 </a>19 20 <a href="#" class="flex-c-m trans-04 p-lr-25">21 EN22 </a>23 24 <a href="#" class="flex-c-m trans-04 p-lr-25">25 USD26 </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 $100123 </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 & FAQs130 </a>131 132 <a href="#" class="flex-c-m p-lr-10 trans-04">133 My Account134 </a>135 136 <a href="#" class="flex-c-m p-lr-10 trans-04">137 EN138 </a>139 140 <a href="#" class="flex-c-m p-lr-10 trans-04">141 USD142 </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 Categories7 </h4>8 9 <ul>10 <li class="p-b-10">11 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">12 Women13 </a>14 </li>15 16 <li class="p-b-10">17 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">18 Men19 </a>20 </li>21 22 <li class="p-b-10">23 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">24 Shoes25 </a>26 </li>27 28 <li class="p-b-10">29 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">30 Watches31 </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 Help39 </h4>40 41 <ul>42 <li class="p-b-10">43 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">44 Track Order45 </a>46 </li>47 48 <li class="p-b-10">49 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">50 Returns51 </a>52 </li>53 54 <li class="p-b-10">55 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">56 Shipping57 </a>58 </li>59 60 <li class="p-b-10">61 <a href="#" class="stext-107 cl7 hov-cl1 trans-04">62 FAQs63 </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 TOUCH71 </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 687975 </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 Newsletter95 </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 Subscribe106 </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 ©<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 Cart8 </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 Pleat25 </a>26 27 <span class="header-cart-item-info">28 1 x $19.0029 </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.0037 </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 Cart42 </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 Out46 </a>47 </div>48 </div>49 </div>50 </div>51</div>
