From 013b638b5f6231b5a4450bffba7fca89962eb9e1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 21 Dec 2024 20:02:03 +0100 Subject: [PATCH] fix: highlighted today in bookings #1053 --- resources/views/booking/index.blade.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/resources/views/booking/index.blade.php b/resources/views/booking/index.blade.php index 69907c13a..f7c2b0474 100644 --- a/resources/views/booking/index.blade.php +++ b/resources/views/booking/index.blade.php @@ -48,10 +48,21 @@ @can('update', $booking) - {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }} - + +   + @if(\Carbon\Carbon::create($booking->time_start)->isToday()) + Today + @else + {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }} + @endif + @else - {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }} + @if(\Carbon\Carbon::create($booking->time_start)->isToday()) + Today + @else + {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }} + @endif + @if(Auth::user()->id == $booking->user_id || $user->isModeratorOrAbove()) @if($booking->source == "DISCORD")