Mercurial > packages > framework
view 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 |
line wrap: on
line source
@props([ 'title' => null, // e.g. 'Upcoming Milestones' 'icon' => null, // SVG (pass as a Blade include or html) 'empty' => 'Nothing to show.', 'footer' => null, // Optional (e.g. a "View All" link) 'headerButton' => null, //button or link for the right side of the header ]) <div class="bg-white p-4 rounded-lg shadow min-h-[200px]"> <div class="flex justify-between items-center"> <h4 class="font-semibold text-gray-800 mb-3 flex items-center"> {!! $icon ?? '' !!} <span class="ml-2">{{ $title }}</span> </h4> {!! $headerButton !!} </div> {{ $slot }} @if ($footer) <div class="text-right mt-3"> {!! $footer !!} </div> @endif </div>
