Skip to content

Commit

Permalink
fix: highlighted today in bookings
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Dec 21, 2024
1 parent 2f8a82f commit 013b638
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions resources/views/booking/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,21 @@
<tr>
<td>
@can('update', $booking)
<a href="/booking/{{ $booking->id }}">{{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }}
<i class="fas fa-pencil-alt w3-tiny" aria-hidden="true"></i></a>
<a href="/booking/{{ $booking->id }}">
<i class="fas fa-pencil-alt w3-tiny" aria-hidden="true"></i>&nbsp;
@if(\Carbon\Carbon::create($booking->time_start)->isToday())
Today
@else
{{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }}
@endif
</a>
@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")
Expand Down

0 comments on commit 013b638

Please sign in to comment.