Skip to content

Commit 32ba621

Browse files
committed
chore: use link-button for no items default
chore: update material-26 no-items card
1 parent 3954cc0 commit 32ba621

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

resources/views/bootstrap-5/no-items.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
@if($slot->isNotEmpty())
1313
{{ $slot }}
1414
@else
15-
<a href="{{ $createAction }}" class="btn btn-lg btn-primary btn-icon-text btn-raised">
15+
<x-forms::link-button class="btn-lg" :url="$createAction">
1616
<i class="fal fa-plus me-2"></i> {{ __('Create New') }}
17-
</a>
17+
</x-forms::link-button>
1818
@endif
1919
@endif
2020
</div>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<div class="no-items">
22
<div class="card-body">
3-
<i class="{{ $icon ?? 'zmdi zmdi-file' }} main-icon mb-4"></i>
3+
<i class="{{ $icon }} main-icon mb-4"></i>
44
<p class="lead mb-4">
5-
{{ __('It\'s a bit lonely here.') }}<br/>
6-
{{ __('Let\'s create some new :model_type.', ['model_type' => $modelType ?? __('items') ]) }}
5+
@if($title){{ $title }} <br/> @endif
6+
{{ $message }}
77
</p>
8-
@can('create', $model)
8+
@if($showCreate)
99
@if($slot->isNotEmpty())
1010
{{ $slot }}
1111
@else
12-
<a href="{{ $createAction ?? '#' }}" class="btn btn-lg btn-primary btn--icon-text btn--raised">
12+
<x-forms::link-button class="btn-lg btn--icon-text btn--raised" :url="$createAction">
1313
<i class="zmdi zmdi-plus"></i> {{ __('Create New') }}
14-
</a>
14+
</x-forms::link-button>
1515
@endif
16-
@endcan
16+
@endif
1717
</div>
1818
</div>

0 commit comments

Comments
 (0)