@extends('theme.master') @section('title', "$bundle->title") @section('content') @section('meta_tags') @php $url = URL::current(); @endphp @endsection @include('admin.message') {{ $bundle['title'] }} {{ $bundle['short_detail'] }} {{ __('frontstaticword.Created') }}: {{ $bundle->user['fname'] }} {{ __('frontstaticword.LastUpdated') }}: {{ date('jS F Y', strtotime($bundle['updated_at'])) }} @if ($bundle['preview_image'] !== null && $bundle['preview_image'] !== '') @else @endif @if ($bundle->type == 1) @if ($bundle->is_subscription_enabled == 1) @if($bundle->discount_price == !null) {{ currency($bundle->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}/{{ $bundle->billing_interval }} {{ currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}/{{ $bundle->billing_interval }} @else {{ currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}/{{ $bundle->billing_interval }} @endif @else @if ($bundle->discount_price == !null) {{ currency($bundle->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}/{{ $bundle->billing_interval }} {{ currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}/{{ $bundle->billing_interval }} @else {{ currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}/{{ $bundle->billing_interval }} @endif @endif @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 @if ($bundle->is_subscription_enabled == 1) {{ __('frontstaticword.SubscribeNow') }} @else {{ __('frontstaticword.AddToCart') }} @endif @endif @else {{ __('frontstaticword.Free') }} @if (Auth::check()) @if (Auth::User()->role == 'admin') {{ __('frontstaticword.Purchased') }} @else @php $enroll = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if ($enroll == null) {{ __('frontstaticword.EnrollNow') }} @else {{ __('frontstaticword.Purchased') }} @endif @endif @else {{ __('frontstaticword.EnrollNow') }} @endif @endif {{ __('frontstaticword.Sharethiscourse') }} × @php $url= URL::current(); @endphp {{ __('frontstaticword.CopyText') }} @php echo Share::currentPage('', [], '') ->facebook() ->twitter() ->linkedin('Extra linkedin summary can be passed here') ->whatsapp() ->telegram(); @endphp {{ __('frontstaticword.Detail') }} {!! $bundle->detail !!} {{ __('frontstaticword.CoursesInBundle') }} @php // FSMS function convertToHoursMins($time, $format = '%02d:%02d') { if ($time < 1) { return; } $hours =floor($time / 60); $minutes = ($time % 60); return sprintf($format, $hours, $minutes); } $courseCount = count( $bundle['course_id'] ) // FSMS @endphp {{ $courseCount . " courses" }} Expand all courses Collapse all courses @foreach ($bundle->course_id as $bundles) @php $course = App\Course::where('id', $bundles)->first(); @endphp {{ $course->title }} {{ $course->short_detail }} @endforeach @endsection @section('custom-script') @endsection
{{ $bundle['short_detail'] }}