@extends('theme.master') @section('title', "$bundle->title") @section('content') @section('custom-head') @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) @php $currency = App\Currency::first(); @endphp @if($bundle->discount_price == !null) @if($gsetting['currency_swipe'] == 1) {{ $bundle['discount_price'] }}/{{ $bundle->billing_interval }} {{ $bundle['price'] }}/{{ $bundle->billing_interval }} @else {{ $bundle['discount_price'] }}/{{ $bundle->billing_interval }} {{ $bundle['price'] }}/{{ $bundle->billing_interval }} @endif @else @if($gsetting['currency_swipe'] == 1) {{ $bundle['price'] }}/{{ $bundle->billing_interval }} @else {{ $bundle['price'] }}/{{ $bundle->billing_interval }} @endif @endif @else @php $currency = App\Currency::first(); @endphp @if ($bundle->discount_price == !null) @if($gsetting['currency_swipe'] == 1) {{ $bundle['discount_price'] }} {{ $bundle['price'] }} @else {{ $bundle['discount_price'] }} {{ $bundle['price'] }} @endif @else @if($gsetting['currency_swipe'] == 1) {{ $bundle['price'] }} @else {{ $bundle['price'] }} @endif @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.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'] }}