Created
January 3, 2023 05:04
-
-
Save defrindr/e0ff627b95bdeb18e9db502531971b51 to your computer and use it in GitHub Desktop.
ubah file /resources/views/layouts/app.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | |
<meta name="description" content="" /> | |
<meta name="author" content="" /> | |
<title>BARBATOS</title> | |
<!-- Favicon--> | |
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" /> | |
<!-- Bootstrap icons--> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" /> | |
<!-- Core theme CSS (includes Bootstrap)--> | |
<link href="{{ asset('front/css/styles.css') }}" rel="stylesheet" /> | |
<style> | |
a { | |
text-decoration: none | |
} | |
</style> | |
</head> | |
<body> | |
<!-- Navigation--> | |
<nav class="navbar navbar-expand-lg navbar-light bg-light"> | |
<div class="container px-4 px-lg-5"> | |
<a class="navbar-brand" href="/">BARBATOS</a> | |
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" | |
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" | |
aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button> | |
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | |
<ul class="navbar-nav me-auto mb-2 mb-lg-0 ms-lg-4"> | |
<li class="nav-item"><a class="nav-link active" aria-current="page" href="/">Home</a></li> | |
<li class="nav-item dropdown"> | |
<a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" | |
data-bs-toggle="dropdown" aria-expanded="false">Categories</a> | |
<ul class="dropdown-menu" aria-labelledby="navbarDropdown"> | |
<li><a class="dropdown-item" href="{{ route('view-all') }}">All Products</a></li> | |
@foreach ($categories as $cat) | |
<li><a class="dropdown-item" | |
href="{{ route('category', $cat->name) }}">{{ $cat->name }}</a></li> | |
@endforeach | |
</ul> | |
</li> | |
</ul> | |
<form class="d-flex"> | |
<a class="btn btn-outline-dark" href="{{ route('user-cart') }}"> | |
<i class="bi-cart-fill me-1"></i> | |
Cart | |
</a> | |
</form> | |
</div> | |
</div> | |
</nav> | |
<!-- Header--> | |
<header class="bg-dark py-5"> | |
<div class="container px-4 px-lg-5 my-5"> | |
<div class="text-center text-white"> | |
<h1 class="display-4 fw-bolder">BARBATOS.OLSHOP</h1> | |
<p class="lead fw-normal text-white-50 mb-5 pb-5">Shopping From Home</p> | |
<form action="{{ route('search') }}" method="POST"> | |
@csrf | |
<div class="input-group mb-3"> | |
<input type="text" class="form-control" placeholder="Search Product" name="search"> | |
<button class="btn btn-outline-secondary" type="submit" id="button-addon2"> | |
<i class="bi-search"></i> | |
Search</button> | |
</div> | |
</div> | |
</div> | |
</header> | |
<!-- Section--> | |
<section class="py-5"> | |
<div class="container px-4 px-lg-5 mt-5"> | |
@yield('content') | |
</div> | |
</section> | |
<!-- Footer--> | |
<footer class="py-5 bg-dark"> | |
<div class="container"> | |
<p class="m-0 text-center text-white">Copyright © BARBATOS 2022</p> | |
</div> | |
</footer> | |
<!-- Bootstrap core JS--> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> | |
<!-- Core theme JS--> | |
<script src="{{ asset('front/js/scripts.js') }}"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment