Eshop-Laravel/resources/views/master.blade.php

286 lines
13 KiB
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{$title}}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="{{ asset('lib/hub/vendor/bootstrap/css/bootstrap.min.css') }}">
<!-- Font Awesome CSS-->
<link rel="stylesheet" href="{{ asset('lib/hub/vendor/font-awesome/css/font-awesome.min.css') }}">
<!-- Bootstrap Select-->
<link rel="stylesheet" href="{{ asset('lib/hub/vendor/bootstrap-select/css/bootstrap-select.min.css') }}">
<!-- Price Slider Stylesheets -->
<link rel="stylesheet" href="{{ asset('lib/hub/vendor/nouislider/nouislider.css') }}">
<!-- Custom font icons-->
<link rel="stylesheet" href="{{ asset('lib/hub/css/custom-fonticons.css') }}">
<!-- Google fonts - Poppins-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700">
<!-- owl carousel-->
<link rel="stylesheet" href="{{ asset('lib/hub/vendor/owl.carousel/assets/owl.carousel.css') }}">
<link rel="stylesheet" href="{{ asset('lib/hub/vendor/owl.carousel/assets/owl.theme.default.css') }}">
<!-- theme stylesheet-->
<link rel="stylesheet" href="{{ asset('lib/hub/css/style.default.css') }}" id="theme-stylesheet">
<!-- Custom stylesheet - for your changes-->
<link rel="stylesheet" href="{{asset('css/style.css')}}">
<!-- Favicon-->
<link rel="shortcut icon" href="{{ asset('lib/hub/img/favicon.ico') }}">
<!-- Modernizr-->
<script src="{{ asset('lib/hub/js/modernizr.custom.79639.js') }}"></script>
<!-- Tweaks for older IEs-->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
<script>
var BASE_URL = "{{ url('')}}/";
// console.log(BASE_URL);
</script>
</head>
<body>
<!-- navbar-->
<header class="header">
<!-- Tob Bar-->
{{-- <div class="top-bar">
<div class="container-fluid">
<div class="row d-flex align-items-center">
<div class="col-lg-6 hidden-lg-down text-col">
<ul class="list-inline">
<li class="list-inline-item"><i class="icon-telephone"></i>053-430-6691</li>
<li class="list-inline-item">Free shipping on orders over $300</li>
</ul>
</div>
<div class="col-lg-6 d-flex justify-content-end">
@if (Session::has('is_admin'))
<li style="list-style:none" class="nav-item"><a href="{{ url('cms/dashboard') }}" class="nav-link">CMS Admin Settings</a>
</li>
@endif
<!-- Language Dropdown-->
<div class="dropdown show"><a id="langsDropdown" href="https://example.com" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle"><img src="{{ asset('lib/hub/img/united-kingdom.svg') }}" alt="english">English</a>
<div aria-labelledby="langsDropdown" class="dropdown-menu"><a href="#" class="dropdown-item"><img src="{{ asset('lib/hub/img/germany.svg') }}" alt="german">German</a><a href="#" class="dropdown-item"> <img src="{{ asset('lib/hub/img/france.svg') }}" alt="french">French</a></div>
</div>
<!-- Currency Dropdown-->
<div class="dropdown show"><a id="currencyDropdown" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle">USD</a>
<div aria-labelledby="currencyDropdown" class="dropdown-menu"><a href="#" class="dropdown-item">EUR</a><a href="#" class="dropdown-item"> GBP</a></div>
</div>
</div>
</div>
</div>
</div> --}}
<nav class="navbar navbar-expand-lg">
<div class="search-area">
<div class="search-area-inner d-flex align-items-center justify-content-center">
<div class="close-btn"><i class="icon-close"></i></div>
<form action="#">
<div class="form-group">
<input type="search" name="search" id="search" placeholder="What are you looking for?">
<button type="submit" class="submit"><i class="icon-search"></i></button>
</div>
</form>
</div>
</div>
<div class="container-fluid">
<!-- Navbar Header --><a href="{{url('')}}" class="navbar-brand">All Shop</a>
<button type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler navbar-toggler-right"><i class="fa fa-bars"></i></button>
<!-- Navbar Collapse -->
<div id="navbarCollapse" class="collapse navbar-collapse">
<ul class="navbar-nav mx-auto">
<li class="nav-item"><a href="{{ url('') }}" class="nav-link active">Home</a>
</li>
<li class="nav-item"><a href="{{ url('shop') }}" class="nav-link">Shop</a>
</li>
<li class="nav-item"><a href="{{url('contact')}}" class="nav-link">Contact </a>
</li>
@if (Session::has('is_admin') )
<li style="list-style:none" class"nav-item"><a class="nav-link" href="{{url('cms/dashboard')}}">CMS Dash-Board</a></li>
@endif
{{-- dymanic Nav Bar From DB --}}
@foreach ($menu as $value)
<li class="nav-item"><a href="{{url('') .'/'. $value['url']}}" class="nav-link">{{$value['link']}} </a>
</li>
@endforeach
</ul>
<div class="right-col d-flex align-items-lg-center flex-column flex-lg-row">
{{-- User connected? --}} @if (Session::has('user_id') )
<ul>
<li style="color:black;list-style:none" class="nav-item welcome">Welcome {{Session::get('user_name')}}
</ul>
@else
<ul>
<li style="color:black;list-style:none" class="nav-item welcome">Welcome Guest
</ul>
@endif
<!-- Search Button-->
<div class="search"><i class="icon-search"></i></div>
<!-- User Not Logged - link to login page-->
<div class="user">
{{-- User connected? --}} @if (!Session::get('user_id'))
<a id="userdetails" href="{{url('').'/'.'user'.'/'.'login'}}" class="user-link">
@else
<a id="userdetails" href="{{url('').'/'.'user'.'/'.'profile'}}" class="user-link">
@endif
<i class="icon-profile"> </i></a></div>
<div class="cart dropdown show"><a id="cartdetails" href="{{url('') . '/' . 'shop/checkout'}}" class="dropdown-toggle">
<i class="icon-cart">
</i>
<div class="cart-no">
{{ Cart::getTotalQuantity()}}
</div>
</div></a><a href="cart.html" class="text-primary view-cart">View Cart</a>
<div aria-labelledby="cartdetails" class="dropdown-menu">
<!-- cart item-->
<!-- call to actions-->
<div class="dropdown-item CTA d-flex"><a href="{{url('') . '/' . 'shop/checkout'}}" class="btn btn-template wide">View Cart</a><a href="checkout1.html" class="btn btn-template wide">Checkout</a></div>
</div>
</div>
</div>
</div>
</div>
</nav>
</header>
<main>
<div class="container">
@if (Session::has('sm-error'))
<div class="row sm-box">
<div class="col-md-12">
<br>
<div class="alert alert-danger">
{{ Session::get('sm-error')}}
</div>
</div>
</div>
@endif @if (Session::has('sm') )
<div class="row sm-box">
<div class="col-md-12">
<br>
<div class="alert alert-success">
{{ Session::get('sm')}}
</div>
</div>
</div>
@endif
</div>
@yield('main_content')
</main>
<footer class="main-footer">
<!-- Service Block-->
<div class="services-block">
<div class="container">
<div class="row">
<div class="col-lg-4 d-flex justify-content-center justify-content-lg-start">
<div class="item d-flex align-items-center">
<div class="icon"><i class="icon-truck"></i></div>
<div class="text">
<h6 class="no-margin text-uppercase">Free shipping &amp; return</h6><span>Free Shipping over $300</span>
</div>
</div>
</div>
<div class="col-lg-4 d-flex justify-content-center">
<div class="item d-flex align-items-center">
<div class="icon"><i class="icon-coin"></i></div>
<div class="text">
<h6 class="no-margin text-uppercase">Money back guarantee</h6><span>30 Days Money Back Guarantee</span>
</div>
</div>
</div>
<div class="col-lg-4 d-flex justify-content-center">
<div class="item d-flex align-items-center">
<div class="icon"><i class="icon-headphones"></i></div>
<div class="text">
<h6 class="no-margin text-uppercase">053-111-111</h6><span>24/7 Available Support</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Block -->
{{-- <div class="main-block">
<div class="container">
<div class="row">
<div class="info col-lg-4">
<div class="logo"><img src="{{ asset('lib/hub/img/logo-white.png') }}" alt="..."></div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
<ul class="social-menu list-inline">
<li class="list-inline-item"><a href="#" target="_blank" title="twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a href="#" target="_blank" title="facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a href="#" target="_blank" title="instagram"><i class="fa fa-instagram"></i></a></li>
<li class="list-inline-item"><a href="#" target="_blank" title="pinterest"><i class="fa fa-pinterest"></i></a></li>
<li class="list-inline-item"><a href="#" target="_blank" title="vimeo"><i class="fa fa-vimeo"></i></a></li>
</ul>
</div>
<div class="site-links col-lg-2 col-md-6">
<h5 class="text-uppercase">Shop</h5>
</div>
<div class="site-links col-lg-2 col-md-6">
<h5 class="text-uppercase">Company</h5>
<ul class="list-unstyled">
<li> <a href="#">Login</a></li>
<li> <a href="#">Register</a></li>
<li> <a href="#">Wishlist</a></li>
<li> <a href="#">Our Products</a></li>
<li> <a href="#">Checkouts</a></li>
</ul>
</div>
<div class="newsletter col-lg-4">
<h5 class="text-uppercase">Daily Offers & Discounts</h5>
<p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. At itaque temporibus.</p>
<form action="#" id="newsletter-form">
<div class="form-group">
<input type="email" name="subscribermail" placeholder="Your Email Address">
<button type="submit"> <i class="fa fa-paper-plane"></i></button>
</div>
</form>
</div>
</div>
</div>
</div> --}}
<div class="copyrights">
<div class="container">
<div class="row d-flex align-items-center">
<div class="text col-md-6">
<p>&copy; @php
echo date('Y')
@endphp <a href="https://www.linkedin.com/in/kfir-dayan-b0b132145/" target="_blank">Kfir Dayan </a> All rights reserved.</p>
</div>
<div class="payment col-md-6 clearfix">
<ul class="payment-list list-inline-item pull-right">
<li class="list-inline-item"><img src="{{asset('lib/hub/img/visa.svg')}}" alt="..."></li>
<li class="list-inline-item"><img src="{{asset('lib/hub/img/mastercard.svg')}}" alt="..."></li>
<li class="list-inline-item"><img src="{{asset('lib/hub/img/paypal.svg')}}" alt="..."></li>
<li class="list-inline-item"><img src="{{asset('lib/hub/img/western-union.svg')}}" alt="..."></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
<!-- Javascript files-->
<script src="{{ asset('lib/hub/vendor/jquery/jquery.min.js') }}"></script>
<script src="{{ asset('lib/hub/vendor/popper.js/umd/popper.min.js') }}">
</script>
<script src="{{ asset('lib/hub/vendor/bootstrap/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('lib/hub/vendor/jquery.cookie/jquery.cookie.js') }}">
</script>
<script src="{{ asset('lib/hub/vendor/owl.carousel/owl.carousel.min.js') }}"></script>
<script src="{{ asset('lib/hub/vendor/owl.carousel2.thumbs/owl.carousel2.thumbs.min.js') }}"></script>
<script src="{{ asset('lib/hub/vendor/bootstrap-select/js/bootstrap-select.min.js') }}"></script>
<script src="{{ asset('lib/hub/vendor/nouislider/nouislider.min.js') }}"></script>
<script src="{{ asset('lib/hub/js/front.js') }}"></script>
<script src="{{ asset('js/script.js') }}"></script>
</body>
</html>