@if(@count($obj->depoimentos) > 0)
<section class="c-quote">
    <div class="c-quote__wrap container">
        <div class="c-quote__header">
            <h2 class="c-quote__title">{!!$obj->depoimento_titulo!!}</h2>
        </div>
        <div class="c-quote__body">
            <div class="c-quote__panel">
                @foreach($obj->depoimentos  as $key => $dep)
                    @php $image = isset($dep->image) ? url('storage/depoimento/'.$dep->image) : asset('img/content/depoimento-thumb-01.png'); @endphp
                    <article class="c-quote__card js-quote-box <?php echo ($key == 0) ? 'is-active' : ''; ?>">
                        <header class="c-quote__card__header">
                            <figure class="c-quote__card__cover">
                                <img src="{{$image}}" alt="{{$dep->autor}}">
                            </figure>
                            <div class="c-quote__card__info">
                                <h3 class="c-quote__card__title">{{$dep->autor}}</h3>
                                <p class="c-quote__card__position">{{$dep->empresa}}</p>
                            </div>
                        </header>
                        <blockquote class="c-quote__card__cite">
                            {!! ($lang == 'pt') ? $dep->description_pt : '' !!}
                            {!! ($lang == 'es') ? $dep->description_es : '' !!}
                            {!! ($lang == 'en') ? $dep->description_en : '' !!}
                        </blockquote>
                    </article>
                @endforeach

            </div>
            <div class="c-quote__list">
                @foreach($obj->depoimentos  as $key => $dep)
                @php $image = isset($dep->image) ? url('storage/depoimento/'.$dep->image) : asset('img/content/depoimento-thumb-01.png'); @endphp
                <div class="c-quote__thumb js-quote-toggle <?php echo ($key == 0) ? 'is-active' : ''; ?>">
                    <figure class="c-quote__thumb__cover">
                        <img src="{{$image}}" alt="{{$dep->autor}}">
                    </figure>
                    <div class="c-quote__thumb__info">
                        <h4 class="c-quote__thumb__title">{{$dep->autor}}</h4>
                        <p class="c-quote__thumb__position">{{$dep->empresa}}</p>
                    </div>
                </div>
                @endforeach
            </div>
        </div>
    </div>
</section>
@endif
