ultimatepos/Modules/Cms/Resources/views/frontend/pages/partials/industries.blade.php

60 lines
3.1 KiB
PHP

@php
$industry = [];
if (
isset($page_meta['industry']) &&
isset($page_meta['industry']['meta_value']) &&
!empty($page_meta['industry']['meta_value'])
) {
$industry = json_decode($page_meta['industry']['meta_value'], true);
}
@endphp
@if(!empty($industry))
<section class="modern-section modern-section--gray modern-industries">
<div class="container-xl px-lg-4 px-xl-0">
<div class="modern-section__header">
<span class="modern-section__label">صنایع</span>
<h2 class="modern-section__title">{{ $industry['title'] ?? '' }}</h2>
<div class="modern-section__desc">{!! $industry['description'] ?? '' !!}</div>
</div>
@if(!empty($industry['content']))
<div id="unique-id-2" class="splide block-2__splide" style="max-width:1100px;margin:0 auto;padding:0 1.5rem;">
<div class="block-2__custom-arrows splide__arrows">
<button class="block-2__splide-btn splide__arrow splide__arrow--prev d-none"></button>
<button class="block-2__splide-btn splide__arrow splide__arrow--next">
<svg width="1.5rem" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17 8l4 4m0 0l-4 4m4-4H3"></path>
</svg>
</button>
</div>
<div class="splide__track">
<div class="splide__list">
@foreach($industry['content'] as $content)
@if(!empty($content['icon']) && !empty($content['title']) && !empty($content['description']))
<div class="splide__slide">
<div class="modern-industry-card">
<div class="modern-industry-card__icon">
<i class="{{ $content['icon'] }}"></i>
</div>
<div>
<h3 class="modern-feature-card__title">{{ $content['title'] ?? '' }}</h3>
<p class="modern-feature-card__desc">{{ $content['description'] ?? '' }}</p>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div>
@endif
<div class="text-center mt-4">
<a href="{{ $industry_btn['link'] }}" class="modern-btn modern-btn--primary" style="background:var(--modern-gradient);color:#fff;box-shadow:var(--modern-shadow-lg);">
{{ $industry_btn['text'] }}
</a>
</div>
</div>
</section>
@endif