@props([
'kind' => 'row', // row | card | tableRow | text
'rows' => 4,
])
{{--
Reusable skeleton-shimmer placeholder. Uses the .skeleton class
from resources/css/wadesk.css (background-shift animation).
Variants:
kind="row" — list row: circle avatar + 2 text lines (default)
kind="card" — list card: title + 2 lines, padded box
kind="tableRow" — single
with 6 cells (for stat tables)
kind="text" — single text line, no avatar
Render N of them with the `rows` prop.
Usage:
--}}
@if ($kind === 'row')
@for ($i = 0; $i < $rows; $i++)
@endfor
@elseif ($kind === 'card')
@for ($i = 0; $i < $rows; $i++)
@endfor
@elseif ($kind === 'tableRow')
@for ($i = 0; $i < $rows; $i++)
|
|
|
|
|
|
|
@endfor
@elseif ($kind === 'text')
@for ($i = 0; $i < $rows; $i++)
@endfor
@endif