Advertisement
Guest User

blade

a guest
Jul 16th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.91 KB | None | 0 0
  1.  
  2. <!doctype html>
  3. <html lang="en" class="h-100">
  4. <head>
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <meta name="description" content="">
  8.     <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
  9.     <meta name="generator" content="Jekyll v3.8.5">
  10.     <title>RMS</title>
  11.  
  12.     <link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/sticky-footer-navbar/">
  13.  
  14.     <!-- Bootstrap core CSS -->
  15.     <link href="https://getbootstrap.com/docs/4.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  16.  
  17.  
  18.     <style>
  19.         .bd-placeholder-img {
  20.             font-size: 1.125rem;
  21.             text-anchor: middle;
  22.             -webkit-user-select: none;
  23.             -moz-user-select: none;
  24.             -ms-user-select: none;
  25.             user-select: none;
  26.         }
  27.  
  28.         @media (min-width: 768px) {
  29.             .bd-placeholder-img-lg {
  30.                 font-size: 3.5rem;
  31.             }
  32.         }
  33.     </style>
  34.     <!-- Custom styles for this template -->
  35.     <link href="https://getbootstrap.com/docs/4.3/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet">
  36. </head>
  37. <body class="d-flex flex-column h-100">
  38. <header>
  39.     <!-- Fixed navbar -->
  40.     <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
  41.         <a class="navbar-brand" href="#">Fixed navbar</a>
  42.         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  43.             <span class="navbar-toggler-icon"></span>
  44.         </button>
  45.         <div class="collapse navbar-collapse" id="navbarCollapse">
  46.             <ul class="navbar-nav mr-auto">
  47.                 <li class="nav-item active">
  48.                     <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
  49.                 </li>
  50.                 <li class="nav-item">
  51.                     <a class="nav-link" href="#">Link</a>
  52.                 </li>
  53.                 <li class="nav-item">
  54.                     <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
  55.                 </li>
  56.             </ul>
  57.             <form class="form-inline mt-2 mt-md-0">
  58.                 <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
  59.                 <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  60.             </form>
  61.         </div>
  62.     </nav>
  63. </header>
  64.  
  65. <!-- Begin page content -->
  66. <br>
  67. <br>
  68. <br>
  69. <main role="main" class="flex-shrink-0">
  70.         <div class="container">
  71.             <div class="row">
  72.                 <div class="col-md-4">
  73.                     <h1>Category</h1>
  74.                     <?php
  75.                         $menus =DB::table('menus')->get();
  76.  
  77.                     ?>
  78.                     <br>
  79.                     {{--{{dd($menus)}}--}}
  80.  
  81.                     @foreach($menus as $menu)
  82.                         <ul class="list-group">
  83.                             <li class="list-group-item"><a href="{{route('food',$menu->id)}}" style="text-decoration:none;">{{$menu->name}}</a></li>
  84.                         </ul>
  85.                     @endforeach
  86.                 </div>
  87.                 <div class="col-md-4">
  88.                     <h1>Menu</h1>
  89.                     <br>
  90.                     {{--{{dd($foods)}}--}}
  91.  
  92.                     @if($foods != null)
  93.                         <ul class="list-group">
  94.  
  95.                             @foreach($foods as $food)
  96.                                 <li class="list-group-item  justify-content-between lh-condensed"><a href="{{route('food',$food->id)}}" style="text-decoration:none;">{{$food->name}} </a>
  97.                                     <span class=" text-mute float-right">${{$food->price}}</span>
  98.                                     <br>
  99.                                     <br>
  100.                                     <form action="{{route('cart.show')}}" method="post">
  101.                                         @csrf
  102.                                         <input type="hidden" name="food_id" value="{{ $food->id }}">
  103.                                         <button type="submit" class="btn btn-outline-info btn-sm float-right">Add to Cart</button>
  104.                                     </form>
  105.                                     <br>
  106.                                     @foreach($data as $x )
  107.                                         {{--{{dd($x->fooditem_id)}}--}}
  108.                                         @if($food->id == $x->fooditem_id)
  109.                                             <img height="25" width="25" src="{{URL::asset("storage/upload/$x->file")}}" alt="">
  110.                                         @endif
  111.                                     @endforeach
  112.                                 </li>
  113.                             @endforeach
  114.  
  115.                         </ul>
  116.                     @else
  117.                         {{'No food'}}
  118.                     @endif
  119.  
  120.  
  121.                 </div>
  122.                 <hr>
  123.                 <div class="card bg-light mb-3 col-md-4">
  124.                     @if (session()->has('message'))
  125.                         <div class="alert alert-success">
  126.                             {{ session()->get('message') }}
  127.                         </div>
  128.                     @endif
  129.                     <?php
  130.  
  131.                         $cart = session()->has('cart') ? session()->get('cart') : [];
  132.  
  133.                         ?>
  134.  
  135.                         {{--{{dd($cart)}}--}}
  136.                     <h1>Cart</h1>
  137.                     <br>
  138.                     <div class="alert alert-info" v-if="cart.length === 0">
  139.                         Please add some products to your cart.
  140.                     </div>
  141.                     <table id="cart" class="table table-hover table-condensed">
  142.                         <thead>
  143.                         <tr>
  144.                             <th style="width:50%">Product</th>
  145.                             <th style="width:10%">Price</th>
  146.                             <th style="width:8%">Quantity</th>
  147.                             <th style="width:22%" class="text-center">Subtotal</th>
  148.                             <th style="width:10%"></th>
  149.                         </tr>
  150.                         </thead>
  151.                         <tbody>
  152.  
  153.                         @foreach($cart as $product)
  154.  
  155.                             {{--{{dd($product)}}--}}
  156.  
  157.                             <tr>
  158.                                 <td data-th="Product">
  159.                                     <h4 class="nomargin">Fuska</h4>
  160.                                 </td>
  161.                                 <td data-th="Price">$123</td>
  162.                                 <td data-th="Quantity">
  163.                                     <input type="number" value="" class="form-control quantity" />
  164.                                 </td>
  165.                                 <td data-th="Subtotal" class="text-center">$123</td>
  166.                                 {{--<td class="actions" data-th="">--}}
  167.                                 {{--<button class="btn btn-info btn-sm update-cart" data-id=""><i class="fa fa-refresh"></i></button>--}}
  168.                                 {{--<button class="btn btn-danger btn-sm remove-from-cart" data-id=""><i class="fa fa-trash-o"></i></button>--}}
  169.                                 {{--</td>--}}
  170.                             </tr>
  171.                         @endforeach
  172.                         </tbody>
  173.  
  174.                         <tfoot>
  175.                         {{--<tr class="visible-xs">--}}
  176.                         {{--<td class="text-center"><strong>Total </strong></td>--}}
  177.                         {{--</tr>--}}
  178.                         <tr>
  179.                             <td colspan="2" class="hidden-xs"></td>
  180.                             <td class="hidden-xs text-center"><strong>Total </strong>$123</td>
  181.                         </tr>
  182.  
  183.  
  184.                         </tfoot>
  185.  
  186.  
  187.                     </table>
  188.                     <a href="#" class="btn btn-warning"><i class="fa fa-angle-left"></i>Check Out</a>
  189.                     <br>
  190.                 </div>
  191.  
  192.             </div>
  193.         </div>
  194. </main>
  195.  
  196. <footer class="footer mt-auto py-3">
  197.     <div class="container">
  198.         <span class="text-muted">Place sticky footer content here.</span>
  199.     </div>
  200. </footer>
  201. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  202. <script>window.jQuery || document.write('<script src="/docs/4.3/assets/js/vendor/jquery-slim.min.js"><\/script>')</script><script src="/docs/4.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o" crossorigin="anonymous"></script></body>
  203. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement