|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
| 6 | + <meta name="description" content=""> |
| 7 | + <meta name="author" content=""> |
| 8 | + |
| 9 | + <title>{{ config('app.name') }}</title> |
| 10 | + |
| 11 | + <!-- Bootstrap core CSS --> |
| 12 | + <link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet"> |
| 13 | + |
| 14 | +</head> |
| 15 | + |
| 16 | +<body style="padding-top: 56px"> |
| 17 | + |
| 18 | +<!-- Navigation --> |
| 19 | +<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top"> |
| 20 | + <div class="container"> |
| 21 | + <a class="navbar-brand" href="/">{{ config('app.name') }}</a> |
| 22 | + <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" |
| 23 | + aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> |
| 24 | + <span class="navbar-toggler-icon"></span> |
| 25 | + </button> |
| 26 | + <div class="collapse navbar-collapse" id="navbarResponsive"> |
| 27 | + </div> |
| 28 | + </div> |
| 29 | +</nav> |
| 30 | + |
| 31 | +<!-- Page Content --> |
| 32 | +<div class="container"> |
| 33 | + |
| 34 | + <div class="row"> |
| 35 | + |
| 36 | + <div class="col-lg-3"> |
| 37 | + |
| 38 | + <h1 class="my-4">Shop Catalog</h1> |
| 39 | + @if(count($categories) > 0) |
| 40 | + <div class="list-group"> |
| 41 | + @foreach($categories as $category) |
| 42 | + <a href="/?category={{ $category->id }}" class="list-group-item">{{ $category->name }}</a> |
| 43 | + @endforeach |
| 44 | + </div> |
| 45 | + @endif |
| 46 | + |
| 47 | + </div> |
| 48 | + <!-- /.col-lg-3 --> |
| 49 | + |
| 50 | + <div class="col-lg-9"> |
| 51 | + |
| 52 | + <div class="row my-5"> |
| 53 | + |
| 54 | + @if(count($categories) > 0) |
| 55 | + @foreach($products as $product) |
| 56 | + <div class="col-lg-4 col-md-6 mb-4"> |
| 57 | + <div class="card h-100"> |
| 58 | + <a href="/product/{{ $product->name }}"> |
| 59 | + <img class="card-img-top" src="http://placehold.it/700x400" alt=""> |
| 60 | + </a> |
| 61 | + <div class="card-body"> |
| 62 | + <h4 class="card-title"> |
| 63 | + <a href="/product/{{ $product->name }}">{{ $product->name }}</a> |
| 64 | + </h4> |
| 65 | + <h5>${{ $product->price }}</h5> |
| 66 | + <p class="card-text"> |
| 67 | + {{ $product->description }} |
| 68 | + </p> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + @endforeach |
| 73 | + @endif |
| 74 | + |
| 75 | + |
| 76 | + </div> |
| 77 | + <!-- /.row --> |
| 78 | + |
| 79 | + </div> |
| 80 | + <!-- /.col-lg-9 --> |
| 81 | + |
| 82 | + </div> |
| 83 | + <!-- /.row --> |
| 84 | + |
| 85 | +</div> |
| 86 | +<!-- /.container --> |
| 87 | + |
| 88 | +<!-- Footer --> |
| 89 | +<footer class="py-5 bg-dark"> |
| 90 | + <div class="container"> |
| 91 | + <p class="m-0 text-center text-white">Copyright © {{ config('app.name') }} {{ date('Y') }}</p> |
| 92 | + </div> |
| 93 | + <!-- /.container --> |
| 94 | +</footer> |
| 95 | + |
| 96 | +<!-- Bootstrap core JavaScript --> |
| 97 | +<script src="{{ asset('js/jquery.min.js') }}"></script> |
| 98 | +<script src="{{ asset('js/bootstrap.bundle.min.js') }}"></script> |
| 99 | + |
| 100 | + |
| 101 | +</body> |
| 102 | + |
| 103 | +</html> |
| 104 | + |
0 commit comments