@extends('theme.master') @section('title', "$bundle->title") @section('content') @section('meta_tags') @php $url = URL::current(); @endphp @endsection @include('admin.message')
@if ($bundle->type == 1) @if ($bundle->is_subscription_enabled == 1)
    @if($bundle->discount_price == !null)
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($bundle->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}/{{ $bundle->billing_interval }}
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}/{{ $bundle->billing_interval }}
  • @else
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}/{{ $bundle->billing_interval }}
  • @endif
@else
    @if ($bundle->discount_price == !null)
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($bundle->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}/{{ $bundle->billing_interval }}
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}/{{ $bundle->billing_interval }}
  • @else
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($bundle->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}/{{ $bundle->billing_interval }}
  • @endif
@endif @if (Auth::check()) @if (Auth::User()->role == 'admin') @else @php $order = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if (!empty($order) && $order->status == 1) @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)  {{ __('Subscribe Now') }} @else  {{ __('Add To Cart') }} @endif
@endif @else
  • {{ __('Free') }}
@if (Auth::check()) @if (Auth::User()->role == 'admin') @else @php $enroll = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if ($enroll == null) @else @endif @endif @else @endif @endif

{{ __('Detail') }}

  • {!! $bundle->detail !!}

{{ __('Courses In Bundle') }}

@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" }}
@foreach ($bundle->course_id as $bundles) @php $course = App\Course::where('id', $bundles)->first(); @endphp
{{ $course->short_detail }}
@endforeach
@endsection @section('custom-script') @endsection