Mercurial > packages > framework
comparison publishable/resources/views/components/preview-list-card.blade.php @ 4:84c75d9d90be
Changing usage to be bootstrap 5, not everything is reviewed but it's been started
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 20:33:35 -0400 |
| parents | b44434aaa767 |
| children |
comparison
equal
deleted
inserted
replaced
| 3:e107504fa22c | 4:84c75d9d90be |
|---|---|
| 7 'empty' => 'Nothing to show.', | 7 'empty' => 'Nothing to show.', |
| 8 'footer' => null, // Optional (e.g. a "View All" link) | 8 'footer' => null, // Optional (e.g. a "View All" link) |
| 9 'headerButton' => null, // Optional (e.g. a "Add" link) | 9 'headerButton' => null, // Optional (e.g. a "Add" link) |
| 10 ]) | 10 ]) |
| 11 | 11 |
| 12 <x-card :icon="$icon" :title="$title" :headerButton="$headerButton" :footer="$footer"> | 12 {{-- <x-card :icon="$icon" :title="$title" :headerButton="$headerButton" :footer="$footer"> --}} |
| 13 @if ($items->count()) | 13 <div class="dashboard-card flex-column align-items-stretch"> |
| 14 <ul class="divide-y divide-gray-100"> | 14 <div class="d-flex justify-content-between"> |
| 15 @foreach ($items as $item) | 15 <h4 class=" items-center align-content-start"> |
| 16 @include($itemView, array_merge(['item' => $item], $viewData ?? [])) | 16 {!! $icon ?? '' !!} |
| 17 @endforeach | 17 <span class="ml-2">{{ $title }}</span> |
| 18 </ul> | 18 </h4> |
| 19 @else | 19 {!! $headerButton !!} |
| 20 <div class="text-gray-400 text-sm">{{ $empty }}</div> | 20 </div> |
| 21 <div class="card-body"> | |
| 22 @if ($items->count()) | |
| 23 <ul class="px-1"> | |
| 24 @foreach ($items as $item) | |
| 25 @include($itemView, array_merge(['item' => $item], $viewData ?? [])) | |
| 26 @endforeach | |
| 27 </ul> | |
| 28 @else | |
| 29 <div class="text-gray-400 text-sm">{{ $empty }}</div> | |
| 30 @endif | |
| 31 </div> | |
| 32 @if ($footer) | |
| 33 <div class="text-right mt-3"> | |
| 34 {!! $footer !!} | |
| 35 </div> | |
| 21 @endif | 36 @endif |
| 22 </x-card> | 37 </div> |
