From 4f2468ff285b6d1ac458749c7522added8b23d3d Mon Sep 17 00:00:00 2001 From: Alain Van Driessche Date: Mon, 7 Oct 2024 11:44:26 +0200 Subject: [PATCH] Fix the str limit --- .../livewire/online-event-card.blade.php | 2 +- .../online-calendar/admin/list.blade.php | 47 ++++++++++--------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/resources/views/livewire/online-event-card.blade.php b/resources/views/livewire/online-event-card.blade.php index d7e97298e..1d9a340a3 100644 --- a/resources/views/livewire/online-event-card.blade.php +++ b/resources/views/livewire/online-event-card.blade.php @@ -16,7 +16,7 @@
- {!!str_limit($event->description,200)!!} + {{ \Illuminate\Support\Str::limit($event->description, 200) }}
diff --git a/resources/views/online-calendar/admin/list.blade.php b/resources/views/online-calendar/admin/list.blade.php index 49c334e42..47a4c4261 100644 --- a/resources/views/online-calendar/admin/list.blade.php +++ b/resources/views/online-calendar/admin/list.blade.php @@ -18,27 +18,29 @@
-
- +
@@ -72,9 +74,9 @@ Country -{{-- --}} -{{-- Status--}} -{{-- --}} + {{-- --}} + {{-- Status--}} + {{-- --}} Actions @@ -85,8 +87,7 @@ @foreach($events as $event) - @livewire('online-event-card', ['event' => $event, 'countryName' => - $countryNames[$event->country_iso]]) + @livewire('online-event-card', ['event' => $event, 'countryName' => $countryNames[$event->country_iso]]) @endforeach @@ -105,7 +106,7 @@ {{ $events->links() }} - + @endsection