10-04-2026
This commit is contained in:
parent
4d6b4930b2
commit
4bb89aad8c
836 changed files with 52961 additions and 5950 deletions
18
resources/views/components/web-picture.blade.php
Normal file
18
resources/views/components/web-picture.blade.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@if ($hasWebp)
|
||||
<picture>
|
||||
<source srcset="{{ $webpSrc }}" type="image/webp">
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" class="{{ $class }}"
|
||||
@if($loading) loading="{{ $loading }}" @endif
|
||||
@if($width) width="{{ $width }}" @endif
|
||||
@if($height) height="{{ $height }}" @endif
|
||||
{{ $attributes->except(['src', 'alt', 'class', 'loading', 'width', 'height']) }}
|
||||
/>
|
||||
</picture>
|
||||
@else
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" class="{{ $class }}"
|
||||
@if($loading) loading="{{ $loading }}" @endif
|
||||
@if($width) width="{{ $width }}" @endif
|
||||
@if($height) height="{{ $height }}" @endif
|
||||
{{ $attributes->except(['src', 'alt', 'class', 'loading', 'width', 'height']) }}
|
||||
/>
|
||||
@endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue