Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit ae8310f

Browse files
authored
refactor: make use of the new @Class directive for includes and tables related components (#650)
1 parent ad13b9d commit ae8310f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

resources/views/includes/slider/header.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
@if ($title || $hasViewAll)
2-
<div class="flex flex-col mb-6 space-y-4 sm:space-y-0 sm:flex-row sm:items-center
3-
@if ($title) sm:justify-between @else sm:justify-end @endif"
4-
>
2+
<div @class([
3+
'flex flex-col mb-6 space-y-4 sm:space-y-0 sm:flex-row sm:items-center',
4+
'sm:justify-between' => $title,
5+
'sm:justify-end' => ! $title,
6+
])>
57
@if ($title)
68
<div class="slider-title {{ $titleClass }}">
79
{{ $title }}

resources/views/tables/view-options.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
'disabled' => false,
66
])
77

8-
<div class="items-center @if($showMobile) flex @else hidden md:flex @endif">
8+
<div @class([
9+
'items-center',
10+
'flex' => $showMobile,
11+
'hidden md:flex' => ! $showMobile,
12+
])>
913
<button
1014
type="button"
1115
:class="{

0 commit comments

Comments
 (0)