2022-11-03 15:41:39 +00:00
|
|
|
@props(['active'])
|
2022-06-01 07:15:55 +00:00
|
|
|
|
2022-10-31 06:39:58 +00:00
|
|
|
@php
|
|
|
|
|
if (! empty($attributes['slides'])) {
|
|
|
|
|
$slides = $attributes['slides'];
|
2022-11-04 10:04:40 +00:00
|
|
|
} else {
|
2022-11-09 12:10:38 +00:00
|
|
|
$slides = null;
|
2022-10-31 06:39:58 +00:00
|
|
|
}
|
|
|
|
|
@endphp
|
|
|
|
|
|
2023-03-30 13:30:27 +00:00
|
|
|
<div
|
|
|
|
|
data-swiper="{{ $slides }}"
|
|
|
|
|
@if(! $attributes->has('ignore-hash'))
|
|
|
|
|
x-data="{ active: window.location.hash.split('#')[1] == undefined ? '{{ $active }}' : window.location.hash.split('#')[1] }"
|
|
|
|
|
@else
|
|
|
|
|
x-data="{ active: '{{ $active }}' }"
|
|
|
|
|
@endif
|
|
|
|
|
>
|
2022-11-02 13:33:59 +00:00
|
|
|
<div data-tabs-swiper>
|
2022-11-24 14:03:28 +00:00
|
|
|
<ul data-tabs-swiper-wrapper {{ ((! $attributes->has('override')) || ($attributes->has('override') && ! in_array('class', explode(',', $attributes->get('override'))))) ? $attributes->merge(['class' => 'inline-flex overflow-x-scroll large-overflow-unset']) : $attributes }}>
|
2022-08-17 13:14:07 +00:00
|
|
|
{!! $navs !!}
|
|
|
|
|
</ul>
|
2022-06-01 07:15:55 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{!! $content !!}
|
|
|
|
|
</div>
|