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