Synchro back-office, fix on tariffs
This commit is contained in:
@@ -3,8 +3,5 @@
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@include("Shop.layout.partials.block-breadcrumb")
|
||||
@include("Shop.layout.partials.category")
|
||||
|
||||
@include('Shop.layout.partials.category_articles')
|
||||
@endsection
|
||||
@@ -1,57 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
|
||||
<title>OpenSemis</title>
|
||||
<meta name="description" content="Boutique propulsée par HumaN.E.T">
|
||||
<meta name="keywords" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="img/favicon.ico?1528709483">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico?1528709483">
|
||||
<link rel="stylesheet" href="/css/theme.css" type="text/css" media="all">
|
||||
|
||||
{{ include("Shop._partials.presta_js")}}
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="lang-fr country-us currency-usd layout-full-width page-index tax-display-disabled">
|
||||
|
||||
<main>
|
||||
|
||||
{{ include("Shop._partials.header") }}
|
||||
{{ include("Shop._partials.notifications") }}
|
||||
|
||||
<div id="top_home">
|
||||
|
||||
<div id="spin-wrapper"></div>
|
||||
<div id="siteloader">
|
||||
<div class="loader"></div>
|
||||
</div>
|
||||
|
||||
{{ include("Shop._partials.slider") }}
|
||||
{{ include("Shop._partials.block-banner") }}
|
||||
{{ include("Shop._partials.block-products") }}
|
||||
|
||||
|
||||
{{ include("Shop._partials.block-breadcrumb") }}
|
||||
{{ include("Shop._partials.wrapper") }}
|
||||
|
||||
{{ include("Shop._partials.block-bottom")}}
|
||||
|
||||
{{ include("Shop._partials.footer")}}
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<a id="slidetop" href="#" > </a>
|
||||
|
||||
<script type="text/javascript" src="/js/theme.js" ></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -9,13 +9,13 @@
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>OpenSemis</title>
|
||||
<title>Jardin'enVie</title>
|
||||
<meta name="description" content="Vente de semences, variété anciennes">
|
||||
<meta name="keywords" content="">
|
||||
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="img/favicon.ico">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
|
||||
<link rel="stylesheet" href="css/site.min.css" type="text/css" media="all">
|
||||
<link rel="stylesheet" href="/css/site.min.css" type="text/css" media="all">
|
||||
|
||||
@stack('css')
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="js/site.min.js" ></script>
|
||||
<script type="text/javascript" src="/js/site.min.js" ></script>
|
||||
|
||||
@stack('scripts')
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="card" style="width: 18rem;">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getThumbSrc($article['image']) }}" class="card-img-top" alt="...">
|
||||
<div class="card">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($offer['article']['image']) }}" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
<span class="card-title">{{ $article['name'] }}</span>
|
||||
<span class="card-title">{{ $offer['article']['name'] }}</span>
|
||||
<span class="pull-right">
|
||||
<i class="fa fa-heart"></i>
|
||||
</span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="row">
|
||||
@foreach ($articles as $article)
|
||||
<div class="col-3">
|
||||
@foreach ($offers as $offer)
|
||||
<div class="col-sm-6 col-md-3 col-lg-2">
|
||||
@include('Shop.layout.partials.article')
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@@ -7,15 +7,13 @@
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{{ $category['name'] }}
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
@foreach ($category['children'] as $children)
|
||||
<a class="dropdown-item" href="{{ $children['id'] }}">{{ $children['name'] }}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
@include('Shop.layout.partials.submenu', ['categories' => $category['children']])
|
||||
</ul>
|
||||
</li>
|
||||
@else
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ $category['id'] }}">{{ $category['name'] }}</a>
|
||||
<a class="nav-link" href="{{ route('Shop.Categories.show', ['id' => $category['id']]) }}">{{ $category['name'] }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
19
resources/views/Shop/layout/partials/submenu.blade.php
Normal file
19
resources/views/Shop/layout/partials/submenu.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@foreach ($categories as $category)
|
||||
<li>
|
||||
@if ($category['children'] ?? false)
|
||||
<a class="dropdown-item" href="#">
|
||||
<div class="w-100">
|
||||
{{ $category['name'] }}
|
||||
<span style="float: right;">
|
||||
<i class="fa fa-caret-right"></i>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
<ul class="submenu dropdown-menu">
|
||||
@include('Shop.layout.partials.submenu', ['categories' => $category['children']])
|
||||
</ul>
|
||||
@else
|
||||
<a class="dropdown-item" href="{{ route('Shop.Categories.show', ['id' => $category['id']]) }}">{{ $category['name'] }}</a>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
21
resources/views/Shop/shelve.blade.php
Normal file
21
resources/views/Shop/shelve.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('Shop.layout.layout', [
|
||||
'title' => __('home.title'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
|
||||
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('Shop.layout.partials.category_add')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@include('Shop.layout.partials.category_articles')
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user