@extends('user.app')

@section('main-content')

<div class="banner-part">

    

<div class="slider">
    <div class="item">
        <img src="{{ asset('user/images/banner1.jpg') }}" alt="">
    </div>
    <div class="item">
        <img src="{{ asset('user/images/banner2.jpg') }}" alt="">
    </div>
</div>





<!--  <div class="banner_text">

        <div class="container">

            <div class="row">

                <div class="col-md-offset-2 col-md-8 col-sm-7">

                    <h2>Online Learning</h2>

                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis nihil modi, nostrum voluptatibus eligendi, sequi animi perspiciatis minima architecto cum aperiam nisi dolore atque quia, consequatur sed laborum suscipit repellat.</p>

                </div>

            </div>

        </div>        

    </div> -->

    

</div>

<section class="body-cont1">

    <div class="container">

        <div class="row">

            <div class="col-md-12 text-center">

                <ul>

                    <li>

                        <img src="{{ asset('user/images/online.png') }}" alt=""><a href="#">value added products </a>

                    </li>

                    <li>

                        <img src="{{ asset('user/images/theft.png') }}" alt=""><a href="#"> secured transactions</a>

                    </li>

                    <li>

                        <img src="{{ asset('user/images/logistics-delivery-truck-in-movement.png') }}" alt=""><a href="#"> prompt delivery </a>

                    </li>

                    <li>

                        <img src="{{ asset('user/images/delivery-man.png') }}" alt=""> <a href="#">cod </a>

                    </li>

                    <li>

                        <img src="{{ asset('user/images/customer-service.png') }}" alt=""> <a href="#">after sales services</a>

                    </li>

                </ul>

            </div>

        </div>

    </div>

</section>

<section class="body-cont2">

    <div class="container">

        <div class="row">

            <div class="col-md-12 text-center">

                <h2>Popular Courses</h2>

            </div>

            <div class="clearfix"></div>

            <div class="online-courses">

            @if(isset($popular))

                @foreach($popular as $value)

                <div class="item">

                    <div class="card">

                          @php

                                         // $pcartprice =0;

                                         // $pcartprice = ($value->discounted_price) ? $value->discounted_price : $value->price;

                                        

                                        @endphp

                            @php 

                            $photos =array();

                             if( !empty($value->product_image))

                            {

                            $photos = unserialize( $value->product_image);

                            if(count($photos)>0)

                            {



                            $img_path=url('/logo/'.$photos['product_image']); 

                            echo '<img class="card-img-top"  src="'.$img_path.'">';

                            }



                            }                             

                            @endphp

                        <div class="card-body">

                           <h3><a href="{{url('/')}}/enrol/{{ $value->slug }}" class="packlink">{{$value->package_name}}</a></h3>

                           {{-- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, nisi ratione illo. </p> --}}

                           <h4 class="cross-t">

                               <del> Rs.{{ $value->price }}</del>
                               Rs.{{ $value->discounted_price }}
                           </h4>
                           

                        </div>  

                        <a href="{{url('/')}}/enrol/{{ $value->slug }}">add to cart</a>                     

                    </div>

                </div>

                @endforeach

            @endif

            </div>

        </div>

    </div>

</section>



<div class="ctr-area ptb-100">

           

            <div class="top-divider"></div>

            <div class="bottom-divider"></div>

           

            <div class="container"> 

                <div class="ctr-text-content">

                    <h1>ACCELERATE YOUR FUTURE. LEARN ANYTIME, ANYWHERE.</h1>

                    <p>Our training courses are created and updated by renowned industry specialists. Our blended learning approach combines online lessons, instructor-led live virtual classrooms, project work, and 24/7 teaching assistants. Our vibrant community of professionals and certified specialists is a powerful resource pool of tips, methods, and insightful advice.</p>

                    <a href="http://buyonlineclasses.com/staging/public/login">Join Now</a>

                </div>

            </div>

        </div>





<section class="body-cont2">

    <div class="container">

        <div class="row">

            <div class="col-md-12 text-center">

                <h2>Online Courses</h2>

            </div>

            <div class="clearfix"></div>

            <div class="online-courses">



                            @if(isset($randomcources))

                @foreach($randomcources as $value)

                <div class="item">

                    <div class="card">

                          @php

                                         $pcartprice =0;

                                         $pcartprice = ($value->discounted_price) ? $value->discounted_price : $value->price;

                                        

                                        @endphp

                            @php 

                            $photos =array();

                             if( !empty($value->product_image))

                            {

                            $photos = unserialize( $value->product_image);

                            if(count($photos)>0)

                            {



                            $img_path=url('/logo/'.$photos['product_image']); 

                            echo '<img class="card-img-top"  src="'.$img_path.'">';

                            }



                            }                             

                            @endphp

                        <div class="card-body">

                           <h3><a href="{{url('/')}}/enrol/{{ $value->slug }}" class="packlink">{{$value->package_name}}</a></h3>

                           {{-- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, nisi ratione illo. </p> --}}

                           <h4 class="cross-t">

                               <del>Rs.{{ $value->price }}</del>
                               Rs.{{ $value->discounted_price }}
                           </h4>                           

                        </div>  

                        <a href="{{url('/')}}/enrol/{{ $value->slug }}">add to cart</a>                     

                    </div>

                </div>

                @endforeach

            @endif



            </div>

        </div>

    </div>

</section>





<section class="why-choose-us">

            <div class="container-fluid">

                <div class="row">

                    <div class="col-md-6">

                        <div class="image"></div>

                    </div>

                    

                    <div class="col-md-6">

                        <div class="why-choose ptb-100">

                            <h3>Why Choose Us</h3>

                            

                            <div class="single-choose">

                                <div class="icon">

                                    <i class="fas fa-book"></i>

                                </div>

                                

                                <div class="content">

                                    <h4>Popular Courses</h4>

                                    <p>Find best courses from a complete learning system that helps you maintain focus, discipline, and score. Our tailored courses will help you to reach your full potential without leaving your comfort zone.</p>

                                </div>

                            </div>

                            

                            <div class="single-choose">

                                <div class="icon">

                                    <i class="fas fa-chalkboard-teacher"></i>

                                </div>

                                

                                <div class="content">

                                    <h4>Qualified Teachers</h4>

                                    <p>Good teachers know how to bring out the best in their students. Get taught by India's top faculty. Anytime. Anywhere.</p>

                                </div>

                            </div>

                            

                            <div class="single-choose mb-0">

                                <div class="icon">

                                   <i class="fas fa-headset"></i>

                                </div>

                                

                                <div class="content">

                                    <h4>24/7 Online Support</h4>

                                    <p>As a student, you work hard. Complication can come by anytime. We understand that. We are here to assist you from any kind of adverse situation 24/7.</p>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </section>





        <section class="body-cont2">

    <div class="container">

        <div class="row">

            <div class="col-md-12 text-center">

                <h2>BuyOnlineClasses.com</h2>

            </div>

            <div class="clearfix"></div>

            <div class="online-course">

                           <p>We are a motivated team of professionals who aspire to present best and time efficient study tutorials/video classes without the use of internet connectivity to any part of India. We care about your tomorrow so we deliver you the knowledge using practical approach (latest courses) today. Our thought of offering courses from India’s best faculties and complete coverage of study material, practice manual and past years exam question has formed a trust amongst the students to score good percentage and ranks. It also encourages the student to sit in front of the interviewer with confidence and clear the interviews.</p>



            </div>

        </div>

    </div>

</section>





<section class="how-it-works red-bg ptb-100">

           

            <div class="top-divider"></div>

            <div class="bottom-divider"></div>

           

            <div class="container">

                <div class="section-title">

                    <h3>How It Works<span>?</span></h3>

                </div>

                

                <div class="row">

                    <div class="col-lg-4 col-md-6">

                        <div class="work-process">

                            <i class="fas fa-book"></i>

                            <h3>Search Courses</h3>

                            <p>Interested in learning something new? With courses that are flexible around you and your passion, find your potential and improve your skills.</p>

                        </div>

                    </div>

                    

                    <div class="col-lg-4 col-md-6">

                        <div class="work-process">

                            <i class="fas fa-info"></i>

                            <h3>View Course Details</h3>

                            <p>Browse the website and watch the videos to decide whether it fits your learning style.</p>

                        </div>

                    </div>

                    

                    <div class="col-lg-4 col-md-6 offset-md-3 offset-lg-0">

                        <div class="work-process">

                            <i class="fas fa-thumbs-up"></i>

                            <h3>Apply, Enroll or Register</h3>

                            <p>Get started on your application whenever you’re ready. You can register for our classes/ courses online at any time.</p>

                        </div>

                    </div>

                    

                    <div class="col-lg-12 col-md-12">

                        <div class="view-all text-center">

                            <a href="{{url('/login')}}">Register Now <i class="fas fa-angle-double-right"></i></a>

                        </div>

                    </div>

                </div>

            </div>

        </section>





<div class="clearfix"></div>

@endsection