@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)
  • {{ 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') @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)  {{ __('frontstaticword.SubscribeNow') }} @else  {{ __('frontstaticword.AddToCart') }} @endif
@endif @else
  • {{ __('frontstaticword.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

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