From ccf7c659d73bd8d80a5755580796e7bfeec9b314 Mon Sep 17 00:00:00 2001 From: Joao Nascimento Date: Thu, 27 Jun 2024 21:53:48 +0100 Subject: [PATCH] Improve layout --- .../widgets/world-clock-widget.blade.php | 76 +++++++++---------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/resources/views/filament/widgets/world-clock-widget.blade.php b/resources/views/filament/widgets/world-clock-widget.blade.php index 4121109..473f71a 100644 --- a/resources/views/filament/widgets/world-clock-widget.blade.php +++ b/resources/views/filament/widgets/world-clock-widget.blade.php @@ -1,46 +1,44 @@ -
- @if($shouldShowTitle) -
-

- - - + @if($shouldShowTitle) +
+

+ + + - {{ is_null($title) ? __('filament-world-clock::default.title') : $title }} -

-

- {{ is_null($description) ? __('filament-world-clock::default.description') : $description }} -

-
- @endif - -
- @foreach ($cities as $city) -
- - - {{ $city['name'] }} - ({{$city['timezone']}}) - - - {{ $city['time'] }} - @if($city['night']) - - - - @else - - - - @endif - -
- @endforeach + {{ is_null($title) ? __('filament-world-clock::default.title') : $title }} +

+

+ {{ is_null($description) ? __('filament-world-clock::default.description') : $description }} +

+ @endif + +
+ @foreach ($cities as $city) +
+ + + {{ $city['name'] }} + ({{$city['timezone']}}) + + + {{ $city['time'] }} + @if($city['night']) + + + + @else + + + + @endif + +
+ @endforeach