@extends('theme.master') @section('title', "$bundle->title") @section('content') @include('admin.message')
@if($bundle->type == 1)
    @php $currency = App\Currency::first(); @endphp @if($bundle->discount_price == !NULL)
  • {{ $bundle['discount_price'] }}
  • {{ $bundle['price'] }}
  • @else
  • {{ $bundle['price'] }}
  • @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 @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

{{ __('frontstaticword.Detail') }}

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

{{ __('frontstaticword.CoursesInBundle') }}

@foreach($bundle->course_id as $bundles) @php $course = App\Course::where('id', $bundles)->first(); @endphp
{{ $course->short_detail }}
@endforeach
@endsection