comparison resources/views/components/card.blade.php @ 1:56d9c64d64aa

Setting up the base, still have plenty of work to be done here.
author luka
date Mon, 09 Jun 2025 23:07:17 -0400
parents
children
comparison
equal deleted inserted replaced
0:07e7262a8cce 1:56d9c64d64aa
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>