parent
8ca9f346d9
commit
157d805555
7 changed files with 152 additions and 170 deletions
@ -1,22 +1,22 @@ |
|||||||
@props(['fields', 'buttonCount']) |
@props(['fields', 'buttonCount']) |
||||||
|
|
||||||
<div wire:loading class="w-100"> |
<div wire:loading class="w-100"> |
||||||
<div class="p-4 border rounded-lg shadow-sm max-w-md mx-auto space-y-4"> |
<div class="p-4 border rounded-lg shadow-sm max-w-md mx-auto space-y-4"> |
||||||
{{-- Title --}} |
{{-- Title --}} |
||||||
<div class="skeleton rounded" style="width:10rem; height:2rem;"></div> |
<div class="skeleton rounded" style="width:10rem; height:2rem;"></div> |
||||||
|
|
||||||
{{-- Fields --}} |
{{-- Fields --}} |
||||||
<div class="space-y-3 mt-2"> |
<div class="space-y-3 mt-2"> |
||||||
@for ($i = 0; $i < $fields; $i++) |
@for ($i = 0; $i < $fields; $i++) |
||||||
<div class="skeleton rounded" style="width:100%; height:3.5rem;"></div> |
<div class="skeleton rounded" style="width:100%; height:3.5rem;"></div> |
||||||
@endfor |
@endfor |
||||||
</div> |
</div> |
||||||
|
|
||||||
{{-- Buttons --}} |
{{-- Buttons --}} |
||||||
<div class="d-flex justify-content-end gap-3 mt-2"> |
<div class="d-flex justify-content-end gap-3 mt-2"> |
||||||
@for ($i = 0; $i < $buttonCount; $i++) |
@for ($i = 0; $i < $buttonCount; $i++) |
||||||
<div class="skeleton rounded" style="width:5.5rem; height:2.5rem;"></div> |
<div class="skeleton rounded" style="width:5.5rem; height:2.5rem;"></div> |
||||||
@endfor |
@endfor |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
|
@ -1,26 +1,26 @@ |
|||||||
@props(['columns', 'rows', 'height']) |
@props(['columns', 'rows', 'height']) |
||||||
|
|
||||||
<div wire:loading class="w-100"> |
<div wire:loading class="w-100"> |
||||||
<div class="table-responsive w-100"> |
<div class="table-responsive w-100"> |
||||||
<table class="table mb-0 w-100"> |
<table class="table mb-0 w-100"> |
||||||
<thead> |
<thead> |
||||||
<tr style="visibility:hidden; height:{{ $height }}"> |
<tr style="visibility:hidden; height:{{ $height }}"> |
||||||
@for ($i = 0; $i < $columns; $i++) |
@for ($i = 0; $i < $columns; $i++) |
||||||
<th> </th> |
<th> </th> |
||||||
@endfor |
@endfor |
||||||
</tr> |
</tr> |
||||||
</thead> |
</thead> |
||||||
<tbody> |
<tbody> |
||||||
@for ($r = 0; $r < $rows; $r++) |
@for ($r = 0; $r < $rows; $r++) |
||||||
<tr style="height:{{ $height }}"> |
<tr style="height:{{ $height }}"> |
||||||
@for ($c = 0; $c < $columns; $c++) |
@for ($c = 0; $c < $columns; $c++) |
||||||
<td class="align-middle"> |
<td class="align-middle"> |
||||||
<div class="skeleton rounded w-100" style="height:1.75rem"></div> |
<div class="skeleton rounded w-100" style="height:1.75rem"></div> |
||||||
</td> |
</td> |
||||||
@endfor |
@endfor |
||||||
</tr> |
</tr> |
||||||
@endfor |
@endfor |
||||||
</tbody> |
</tbody> |
||||||
</table> |
</table> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue