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)