Skip to content

Commit 85b76e9

Browse files
committed
wip
1 parent b8a9d70 commit 85b76e9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

resources/views/fields/date.blade.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
<div class="form-group-label" style="white-space: nowrap;">{!! $suffix !!}</div>
1515
@endif
1616
</div>
17-
<span class="form-description">
18-
<button type="button" class="btn btn--light btn--sm" x-on:click="$refs.input.value = ''">
19-
{{ __('Clear') }}
20-
</button>
21-
</span>
17+
@unless($attrs->get('disabled') || $attrs->get('readonly'))
18+
<span class="form-description">
19+
<button type="button" class="btn btn--light btn--sm" x-on:click="$refs.input.value = ''">
20+
{{ __('Clear') }}
21+
</button>
22+
</span>
23+
@endunless
2224
@if($invalid)
2325
<span class="field-feedback field-feedback--invalid">{!! $error !!}</span>
2426
@endif

0 commit comments

Comments
 (0)