From 1160c8b07714ec71975259c5b18a7e339244124d Mon Sep 17 00:00:00 2001 From: James Collins Date: Thu, 1 Jan 2026 09:11:28 +1000 Subject: [PATCH] holiday message --- .../views/components/on-holiday.blade.php | 19 +++++++++++++++++++ resources/views/home.blade.php | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 resources/views/components/on-holiday.blade.php diff --git a/resources/views/components/on-holiday.blade.php b/resources/views/components/on-holiday.blade.php new file mode 100644 index 0000000..9dd9f88 --- /dev/null +++ b/resources/views/components/on-holiday.blade.php @@ -0,0 +1,19 @@ +@props(['item' => 'results', 'search', 'message', 'title']) + +@php +if(!isset($message)) { + if(!isset($search) || $search == '') + $message = "We couldn't find any $item"; + else + $message = "We couldn't find any $item matching \"$search\""; +} + +if(!isset($title)) { + $title = "No results found"; +} +@endphp + +
+ +

No workshops coming up. We’re on a short break, mostly by playing with the cat.

+
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 3ef8388..1cc55e7 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -12,7 +12,7 @@

Upcoming workshops

@if($workshops->isEmpty()) - + @else
@foreach($workshops as $index => $workshop)