comparison publishable/resources/views/components/card.blade.php @ 2:b44434aaa767

Moving around the components. Made a big step in the right direction with the Builder and named joins being accessible.
author luka
date Wed, 18 Jun 2025 22:28:47 -0400
parents resources/views/components/card.blade.php@56d9c64d64aa
children 84c75d9d90be
comparison
equal deleted inserted replaced
1:56d9c64d64aa 2:b44434aaa767
1 @props([
2 'title' => null, // e.g. 'Upcoming Milestones'
3 'icon' => null, // SVG (pass as a Blade include or html)
4 'empty' => 'Nothing to show.',
5 'footer' => null, // Optional (e.g. a "View All" link)
6 'headerButton' => null, //button or link for the right side of the header
7 ])
8
9 <div class="bg-white p-4 rounded-lg shadow min-h-[200px]">
10 <div class="flex justify-between items-center">
11 <h4 class="font-semibold text-gray-800 mb-3 flex items-center">
12 {!! $icon ?? '' !!}
13 <span class="ml-2">{{ $title }}</span>
14 </h4>
15 {!! $headerButton !!}
16 </div>
17 {{ $slot }}
18 @if ($footer)
19 <div class="text-right mt-3">
20 {!! $footer !!}
21 </div>
22 @endif
23 </div>