From 856260f06649a08c56f87c0ee2d051b8b2ebf9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Ostafi=C5=84ski?= Date: Thu, 5 Dec 2024 14:39:50 +0000 Subject: [PATCH] add conditional display for exhibition end date in hero component --- resources/views/components/exhibition-hero.blade.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/views/components/exhibition-hero.blade.php b/resources/views/components/exhibition-hero.blade.php index 87853a02..6e1c7279 100644 --- a/resources/views/components/exhibition-hero.blade.php +++ b/resources/views/components/exhibition-hero.blade.php @@ -12,6 +12,7 @@ $heroClasses = 'exhibition-hero--variable-height'; } @endphp +@dump($hero['exhibition_slug'] == 'rise-up') @if (!empty($hero))
@@ -40,11 +41,20 @@

@endif @if($hero['start']) + {{-- #14664 - upcoming new exhibition - end date + When slug of exhibiton is confirmed please insert the slug into line below + to show the date withouth the end date for the exhibition --}} + @if ($hero['exhibition_slug'] == '###') +

+ {{ Carbon\Carbon::parse($hero['start'])->format('j F Y') }} +

+ @else

{{ Carbon\Carbon::parse($hero['start'])->format('j F Y') }} - {{ Carbon\Carbon::parse($hero['end'])->format('j F Y') }}

+ @endif @endif