<div data-type="component-text"
     data-preview="{{!function_exists('themeAsset')?'':themeAsset('img/snippets/preview/home/homepage_category_section.jpg')}}"
     data-aoraeditor-title="HomePage Category Section" data-aoraeditor-categories="Home Page">

    <div class="category_area">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-xl-10">
                    @if(isset($homeContent))
                        @if($homeContent->show_key_feature==1)
                            <div class="couses_category">
                                <div class="row">


                                    <div class="col-xl-4 col-md-4">
                                        <div class="single_course_cat">
                                            <div class="icon">
                                                @if(!empty($homeContent->key_feature_logo1))
                                                    <img
                                                        src="{{asset($homeContent->key_feature_logo1)}}"
                                                        alt="">
                                                @endif
                                            </div>
                                            <div class="course_content">
                                                <h4>
                                                    @if(!empty($homeContent->feature_link1))
                                                        <a
                                                            href="{{$homeContent->feature_link1}}"> @endif
                                                            {{$homeContent->key_feature_title1}}
                                                            @if(!empty($homeContent->feature_link1))   </a>
                                                    @endif
                                                </h4>
                                                <p>{{$homeContent->key_feature_subtitle1}} </p>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-xl-4 col-md-4">
                                        <div class="single_course_cat">
                                            <div class="icon">
                                                @if(!empty($homeContent->key_feature_logo2))
                                                    <img
                                                        src="{{asset($homeContent->key_feature_logo2)}}"
                                                        alt="">
                                                @endif
                                            </div>
                                            <div class="course_content">
                                                <h4>
                                                    @if(!empty($homeContent->feature_link2))
                                                        <a
                                                            href="{{$homeContent->feature_link2}}"> @endif
                                                            {{$homeContent->key_feature_title2}}
                                                            @if(!empty($homeContent->feature_link2))   </a>
                                                    @endif
                                                </h4>
                                                <p>{{$homeContent->key_feature_subtitle2}} </p>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-xl-4 col-md-4">
                                        <div class="single_course_cat">
                                            <div class="icon">
                                                @if(!empty($homeContent->key_feature_logo3))
                                                    <img
                                                        src="{{asset($homeContent->key_feature_logo3)}}"
                                                        alt="">
                                                @endif
                                            </div>
                                            <div class="course_content">
                                                <h4>
                                                    @if(!empty($homeContent->feature_link3))
                                                        <a
                                                            href="{{$homeContent->feature_link3}}"> @endif
                                                            {{$homeContent->key_feature_title3}}
                                                            @if(!empty($homeContent->feature_link3))   </a>
                                                    @endif
                                                </h4>
                                                <p>{{$homeContent->key_feature_subtitle3}} </p>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        @endif
                    @endif

                </div>
            </div>
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="section__title mb_40">
                        <h3>
                            {{@$homeContent->category_title}}
                        </h3>
                        <p>
                            {{@$homeContent->category_sub_title}}
                        </p>

                        <a href="{{route('courses')}}"
                           class="line_link">{{__('frontend.View All Courses')}}</a>
                    </div>
                </div>

                <div class="col-lg-6">
                    <div data-type="component-nonExisting"
                         data-preview=""
                         data-table=""
                         data-select="image,name,id,thumbnail"
                         data-order="id"
                         data-limit="4"
                         data-where-status="1"
                         data-view="_single_category_browse"
                         data-model="Modules\CourseSetting\Entities\Category"
                         data-with=""
                         data-with-count="courses"
                    >
                        <div class="dynamicData"
                             data-dynamic-href="{{routeIsExist('getDynamicData')?route('getDynamicData'):''}}"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
