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.
+