1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
This commit is contained in:
Samuel Štancl 2021-04-07 20:43:48 +02:00
parent 1d3ab71c50
commit dd3c8276e2
4 changed files with 13 additions and 7 deletions

View file

@ -1,6 +1,9 @@
<x:layout>
<div
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex">
x-data
@keydown.escape.window="Turbo.visit('{{ route('tip.index') }}')"
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex"
>
{{-- Left button = newer --}}
@if($link = $tip->newQuery()->orderBy('created_at', 'asc')->firstWhere('created_at', '>', $tip->created_at))