@extends('theme.master') @section('title', 'Online Courses') @section('content') @include('admin.message') @php $category = App\Categories::orderBy('position','ASC')->get(); @endphp @foreach($category as $cat) @if($cat->status == 1) {{ $cat->title }} @endif @endforeach @php $sliders = App\Slider::orderBy('position', 'ASC')->get(); @endphp @if(isset($sliders)) @foreach($sliders as $slider) @if($slider->status == 1) {{ $slider['heading'] }} {{ $slider['sub_heading'] }} {{ $slider['detail'] }} @endif @endforeach @endif @php $facts = App\SliderFacts::limit(3)->get(); @endphp @if(isset($facts)) @foreach($facts as $fact) {{ $fact['heading'] }} {{ $fact['sub_heading'] }} @endforeach @endif @php $categories = App\CategorySlider::first(); @endphp @if(isset($categories)) @php $items = App\CourseText::first(); @endphp @if(isset($items)) {{ $items['heading'] }} {{ $items['sub_heading'] }} @endif @php $categories = App\CategorySlider::first(); @endphp @if(isset($categories->category_id)) @foreach($categories->category_id as $cate) @php $cats= App\Categories::find($cate); @endphp @if($cats['status'] == 1) {{ $cats['title'] }} @endif @endforeach @endif @if(!empty($categories)) @foreach($categories->category_id as $cate) @endforeach @endif @endif @php $cor = App\Course::all(); @endphp @if( ! $cor->isEmpty() ) {{ __('frontstaticword.FeaturedCourses') }} @foreach($cor as $c) @if($c->status == 1 && $c->featured == 1) @if($c['preview_image'] !== NULL && $c['preview_image'] !== '') @else @endif {{ str_limit($c->title, $limit = 30, $end = '...') }} by {{ $c->user['fname'] }} @if( $c->price !== '') @php $currency = App\Currency::first(); @endphp @if($c->discount_price == !NULL) {{ $c->discount_price }} {{ $c->price }} @else {{ $c->price }} @endif @else {{ __('frontstaticword.Free') }} @endif @if(Auth::check()) @php $wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $c->id)->first(); @endphp @if ($wish == NULL) {{ csrf_field() }} @else {{ csrf_field() }} @endif @else @endif {{ $c['title'] }} @if($c['preview_image'] !== NULL && $c['preview_image'] !== '') @else @endif @if( $c->type == 1 ) @php $currency = App\Currency::first(); @endphp @if($c->discount_price == !NULL) {{ $c->discount_price }} {{ $c->price }} @else {{ $c->price }} @endif @else {{ __('frontstaticword.Free') }} @endif {{ $c->short_detail }} @if($c->type == 1) @if(Auth::check()) @if(Auth::User()->role == "admin") {{ __('frontstaticword.GoToCourse') }} @else @php $order = App\Order::where('user_id', Auth::User()->id)->where('course_id', $c->id)->first(); @endphp @if(!empty($order) && $order->status == 1 ) {{ __('frontstaticword.GoToCourse') }} @else @php $cart = App\Cart::where('user_id', Auth::User()->id)->where('course_id', $c->id)->first(); @endphp @if(!empty($cart)) {{ csrf_field() }} @else {{ csrf_field() }} @endif @endif @endif @else {{ __('frontstaticword.AddToCart') }} @endif @else @if(Auth::check()) @if(Auth::User()->role == "admin") {{ __('frontstaticword.GoToCourse') }} @else @php $enroll = App\Order::where('user_id', Auth::User()->id)->where('course_id', $c->id)->where('status', 1)->first(); @endphp @if($enroll == NULL ) {{ __('frontstaticword.EnrollNow') }} @else {{ __('frontstaticword.GoToCourse') }} @endif @endif @else {{ __('frontstaticword.AddToCart') }} @endif @endif @if(Auth::check()) @php $wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $c->id)->first(); @endphp @if ($wish == NULL) {{ csrf_field() }} @else {{ csrf_field() }} @endif @else @endif @endif @endforeach @endif @php $bundles = App\BundleCourse::get(); @endphp @if( ! $bundles->isEmpty() ) {{ __('frontstaticword.BundleCourses') }} @foreach($bundles as $bundle) @if($bundle->status == 1) @if($bundle['preview_image'] !== NULL && $bundle['preview_image'] !== '') @else @endif {{ str_limit($bundle->title, $limit = 30, $end = '...') }} by {{ $bundle->user['fname'] }} Created At: {{ date('d-m-Y',strtotime($bundle['created_at'])) }} @if($bundle->type == 1) @php $currency = App\Currency::first(); @endphp @if($bundle->discount_price == !NULL) {{ $bundle->discount_price }} {{ $bundle->price }} @else {{ $bundle->price }} @endif @else {{ __('frontstaticword.Free') }} @endif {{ $bundle['title'] }} @if($bundle['preview_image'] !== NULL && $bundle['preview_image'] !== '') @else @endif {!! str_limit($bundle['detail'], $limit = 200, $end = '...') !!} @if($bundle->type == 1) @if(Auth::check()) @if(Auth::User()->role == "admin") {{ __('frontstaticword.Purchased') }} @else @php $order = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if(!empty($order) && $order->status == 1) {{ __('frontstaticword.Purchased') }} @else @php $cart = App\Cart::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if(!empty($cart)) {{ csrf_field() }} @else {{ csrf_field() }} @endif @endif @endif @else {{ __('frontstaticword.AddToCart') }} @endif @if(Auth::check()) @if(Auth::User()->role == "admin") {{ __('frontstaticword.Purchased') }} @else @php $enroll = App\Order::where('user_id', Auth::User()->id)->where('course_id', $c->id)->first(); @endphp @if($enroll == NULL) {{ __('frontstaticword.EnrollNow') }} @else {{ __('frontstaticword.Purchased') }} @endif @endif @else {{ __('frontstaticword.EnrollNow') }} @endif @endif @endif @endforeach @endif @if($gsetting->zoom_enable == '1') @php $meetings = App\Meeting::where('link_by', NULL)->get(); $mytime = Carbon\Carbon::now(); @endphp @if( ! $meetings->isEmpty() ) {{ __('frontstaticword.ZoomMeetings') }} @foreach($meetings as $meeting) @if($meeting['meeting_title'] !== NULL && $meeting['meeting_title'] !== '') @endif {{ str_limit($meeting->meeting_title, $limit = 30, $end = '...') }} by {{ $meeting->user['fname'] }} Start At: {{ date('d-m-Y | h:i:s A',strtotime($meeting['start_time'])) }} {{ $meeting['meeting_title'] }} by {{ $meeting->user['fname'] }} Meeting Owner: {{ $meeting->owner_id }} Start At: {{ date('d-m-Y | h:i:s A',strtotime($meeting['start_time'])) }} Join Meeting @endforeach @endif @endif @if($gsetting->bbl_enable == '1') @php $bigblue = App\BBL::where('is_ended','!=',1)->where('link_by', NULL)->get(); @endphp @if( ! $bigblue->isEmpty() ) {{ __('Live Classes') }} @foreach($bigblue as $bbl) @php $course_id=$bbl['course_id']; $coursesnames = App\Course::where('id',$course_id)->where('status','1')->get(); @endphp @foreach($coursesnames as $coursetitle) {{ $coursetitle['title']}} @endforeach {{ str_limit($bbl['meetingname'], $limit = 30, $end = '...') }} by {{ $bbl->user['fname'] }} Start At: {{ date('d-m-Y | h:i:s A',strtotime($bbl['start_time'])) }} @csrf @auth @if(Auth::User()->role != null) @endif @endauth @auth @if(Auth::User()->role != null) {{ __('Join Live Class') }} @endif @endauth @guest {{ __('Join Live Class') }} @endguest @endforeach @endif @endif Watch Demo Classes @php $demovideo = App\Demovideo::get(); $mytimes = Carbon\Carbon::now(); @endphp @foreach($demovideo as $demovideos) Demo Video × @php $course_id= $demovideos['course_id']; $coursesname = App\Course::where('id',$course_id)->get(); @endphp @foreach($coursesname as $coursetitles) {{ $coursetitles['title']}} @endforeach @endforeach @php $gets = App\GetStarted::first(); @endphp @if(isset($gets)) {{ $gets['heading'] }} {{ $gets['sub_heading'] }} @if($gets->button_txt == !NULL) {{ $gets['button_txt'] }} @endif @endif @php $topcats = App\Categories::orderBy('position', 'ASC')->get(); @endphp @if(!$topcats->isEmpty()) {{ __('frontstaticword.TopCategories') }} @foreach($topcats as $t) @if($t->status == 1) {{ $t['title'] }} @endif @endforeach @endif @php $testi = App\Testimonial::all(); @endphp @if( ! $testi->isEmpty() ) {{ __('frontstaticword.HomeTestimonial') }} @foreach($testi as $tes) @if($tes->status == 1) {{ $tes['client_name'] }} {!! str_limit($tes->details , $limit = 300, $end = '...') !!} @endif @endforeach @endif @php $trusted = App\Trusted::all(); @endphp @if( !$trusted->isEmpty() ) {{ __('frontstaticword.Trusted') }} @foreach($trusted as $trust) @if($trust->status == 1) @endif @endforeach @endif @php $ad = App\Adsense::first(); @endphp @endsection @section('custom-script') @endsection
{{ $slider['sub_heading'] }}
{{ $slider['detail'] }}
{{ $fact['sub_heading'] }}
{{ $items['sub_heading'] }}
by {{ $c->user['fname'] }}
{{ $c->short_detail }}
by {{ $bundle->user['fname'] }}
Created At: {{ date('d-m-Y',strtotime($bundle['created_at'])) }}
{!! str_limit($bundle['detail'], $limit = 200, $end = '...') !!}
by {{ $meeting->user['fname'] }}
Start At: {{ date('d-m-Y | h:i:s A',strtotime($meeting['start_time'])) }}
Meeting Owner: {{ $meeting->owner_id }}
by {{ $bbl->user['fname'] }}
Start At: {{ date('d-m-Y | h:i:s A',strtotime($bbl['start_time'])) }}
{{ $gets['sub_heading'] }}
{!! str_limit($tes->details , $limit = 300, $end = '...') !!}