From 7454411d27202cbedbc799bb7be19589db94abfe Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Tue, 14 Mar 2023 21:46:57 +0100 Subject: [PATCH] fix active hierarchy in menu and megamenu --- build/css/site.css | 4 +- .../views/Admin/Shop/Invoices/edit.blade.php | 2 +- resources/views/Shop/Invoices/pdf.blade.php | 40 +++++++++++++++++++ .../Shop/layout/partials/header-nav.blade.php | 6 +-- .../Shop/layout/partials/megamenu.blade.php | 4 +- .../layout/partials/megamenu_leafs.blade.php | 10 +++-- .../Shop/layout/partials/sections.blade.php | 7 ++-- resources/views/Shop/layout/print.blade.php | 16 ++++++++ 8 files changed, 74 insertions(+), 15 deletions(-) create mode 100644 resources/views/Shop/Invoices/pdf.blade.php create mode 100644 resources/views/Shop/layout/print.blade.php diff --git a/build/css/site.css b/build/css/site.css index 1c0d8591..8bea8338 100644 --- a/build/css/site.css +++ b/build/css/site.css @@ -201,7 +201,7 @@ div.megamenu ul.megamenu li.megamenu.level1 cursor: pointer; } -#navbarContent > ul > li:hover, #navbarContent > ul > li.show +#navbarContent > ul > li:hover, #navbarContent > ul > li.show, #navbarContent > ul > li.active { border-bottom: 3px solid #F2B90F!important; } @@ -217,7 +217,7 @@ div.megamenu ul.megamenu li.megamenu.level1 } -.dropdown-menu a > div.w-100:hover +.dropdown-menu a > div.w-100:hover, .dropdown-menu a > div.w-100.active { color: #335012; background-color: #F2B90F; diff --git a/resources/views/Admin/Shop/Invoices/edit.blade.php b/resources/views/Admin/Shop/Invoices/edit.blade.php index d398c826..b6076e76 100644 --- a/resources/views/Admin/Shop/Invoices/edit.blade.php +++ b/resources/views/Admin/Shop/Invoices/edit.blade.php @@ -40,7 +40,7 @@
- Facture
+ Facture N° {{ $invoice['ref'] }}
du {{ Carbon\Carbon::parse($invoice['created_at'])->isoFormat('LLLL') }}
diff --git a/resources/views/Shop/Invoices/pdf.blade.php b/resources/views/Shop/Invoices/pdf.blade.php new file mode 100644 index 00000000..5918b736 --- /dev/null +++ b/resources/views/Shop/Invoices/pdf.blade.php @@ -0,0 +1,40 @@ +@extends('Shop.layout.print') + +@section('content') + +
+
+

{{ $invoice['order']['customer']['last_name'] }} {{ $invoice['order']['customer']['first_name'] }}

+
+
+
+ @if ($invoice['order']['address']) + {{ $invoice['order']['address']['address'] }}
+ @isset ($invoice['order']['address']['address2']) + {{ $invoice['order']['address']['address2'] }}
+ @endisset + {{ $invoice['order']['address']['zipcode'] }} {{ $invoice['order']['address']['city'] }}
+ @endif +
+
+
+
+
+
+
+ Facture N° {{ $invoice['ref'] }}
+ du {{ Carbon\Carbon::parse($invoice['created_at'])->isoFormat('LLLL') }} +
+
+ +
+
+
+
+ +
+
+ @include('Admin.Shop.Orders.partials.detail', ['detail_type' => 'facture', 'order' => $invoice['order']]) +
+
+@endsection \ No newline at end of file diff --git a/resources/views/Shop/layout/partials/header-nav.blade.php b/resources/views/Shop/layout/partials/header-nav.blade.php index 0a4f9f76..ef62860f 100644 --- a/resources/views/Shop/layout/partials/header-nav.blade.php +++ b/resources/views/Shop/layout/partials/header-nav.blade.php @@ -1,15 +1,15 @@
-
+
Variétés Paysannes de la Semence à l'Assiette
-
+
@include("Shop.layout.partials.search")
-
+
@include('Shop.layout.partials.header-catalog') @include("Shop.layout.partials.header-profile") @include("Shop.layout.partials.header-basket") diff --git a/resources/views/Shop/layout/partials/megamenu.blade.php b/resources/views/Shop/layout/partials/megamenu.blade.php index f203ad58..00e9e0e4 100644 --- a/resources/views/Shop/layout/partials/megamenu.blade.php +++ b/resources/views/Shop/layout/partials/megamenu.blade.php @@ -3,9 +3,9 @@ @endphp
-
+
- +
Tous les articles
@for ($i = 0; $i < count($submenu[0]); $i++) diff --git a/resources/views/Shop/layout/partials/megamenu_leafs.blade.php b/resources/views/Shop/layout/partials/megamenu_leafs.blade.php index e435599d..eff696ff 100644 --- a/resources/views/Shop/layout/partials/megamenu_leafs.blade.php +++ b/resources/views/Shop/layout/partials/megamenu_leafs.blade.php @@ -1,8 +1,10 @@ - -
{{ $menu_children['name'] }}
+
+
+ {{ $menu_children['name'] }} +
@foreach ($menu_children['children'] ?? [] as $leaf) - -
{{ $leaf['name'] }}
+
+
{{ $leaf['name'] }}
@endforeach diff --git a/resources/views/Shop/layout/partials/sections.blade.php b/resources/views/Shop/layout/partials/sections.blade.php index 972dad49..2203a47d 100644 --- a/resources/views/Shop/layout/partials/sections.blade.php +++ b/resources/views/Shop/layout/partials/sections.blade.php @@ -4,16 +4,17 @@