@extends(getTemplate().'.view.layout.layout') @section('title', $product->title) @section('meta_description',$product->meta_description ?: $product->sub_title) @section('meta_keyword',$product->meta_keyword) @section('page') @php $maskedPlatform = $meta['masked_platform'] ?? null; $showRealPlatform = $maskedPlatform && ($buy || !empty($subscriptionCourseAccess)); @endphp
@if(!empty(session('Error'))) @if(session('Error') == 'duplicate_user') {{ trans('main.entered_username_exists') }} @endif @if(session('Error') == 'duplicate_email') {{ trans('main.entered_email_exists') }} @endif @if(session('Error') == 'password_not_same') {{ trans('main.pass_confirmation_same') }} @endif @endif
@if(!isset($part) || empty($part->title))

{!! $product->title !!}
@if(($buy || $subscriptionCourseAccess) && Auth::check() && $product->user_id != Auth::user()->id)


Access granted, you can scroll down and click the Course Content tab to start taking this course.
@endif @if(Auth::check() && $product->user_id == Auth::user()->id) [Edit] @include('web.default.view.product.settings-title') @endif

@if(!isset($partGotNoVideo)) @if(!$payment)

{{ $product->sub_title }} @if(Auth::check() && $product->user_id == Auth::user()->id) [Edit] @include('web.default.view.product.settings-subtitle') @endif

@if(!empty( $product->display_image )) @endif @endif
@if(empty($payment))
By {{$product->user['name'] }}
Total Students

{{ number_format($realEnrollmentCount) }}
@if($spotsRemaining !== null && $spotsRemaining > 0 && $spotsRemaining <= 10)
Only {{ $spotsRemaining }} {{ Str::plural('spot', $spotsRemaining) }} remaining!
@endif @if(Auth::check() && Auth::user()->admin == 1)
Real paying students: {{ number_format($adminRealPayingStudents ?? 0) }}  |  Real leads: {{ number_format($adminRealLeads ?? 0) }}
@endif @if($product->view % 5 == 0) @else @endif


@if(!empty($product->difficulty_level))
How EASY is this course? {{ $product->difficulty_level }}
@endif @if(!empty($product->course_length))
How long is this course? {{ $product->course_length }}  
@endif @if(!empty($product->time_to_result))
After taking this course, How long before I start seeing results?
{{ $product->time_to_result }}
@endif @if(!empty($product->time_to_result))
After taking this course, how much capital
do I need to start what was taught in it?

{{ $product->how_much_capital_needed }}
@endif @if(!empty($product->device_needed))
This course is relevant for:
{{ $product->device_needed }}
@endif @if(!empty($product->time_to_result))
Can I register and transfer this course to someone else? Yes
@endif
@endif
@endif @if(!Auth::check()) {{-- Login CTA can be added here if needed --}} @endif @if(Auth::check() && empty($payment) ) {{-- Payment CTA can be added here if needed --}} @endif @if(Auth::check() && Auth::user()->id == $product->user_id) [Edit] @include('web.default.view.product.settings-cta') @endif @if(!isset($part) && !$buy)
@include('web.default.view.product.testimonials')
@if(Auth::check() && (empty($payment) && Auth::user()->id !== $product->user_id) && !$activeSubscription) @if($product->bonus_ends_at && strtotime($product->bonus_ends_at) > time())
@if($product->bonus_message) {{ $product->bonus_message }} @else Bonus offer active! @endif
Offer expires in
@endif @if($product->enrollment_limit && $spotsRemaining !== null && $spotsRemaining <= 5 && $spotsRemaining > 0)
⚡ Only {{ $spotsRemaining }} {{ Str::plural('spot', $spotsRemaining) }} left!
@endif
Buy Now
@csrf
@elseif($activeSubscription && $activeSubscription->plan_type === 'limited' && !$subscriptionCourseAccess) @php $remaining = $activeSubscription->remainingCourses(); @endphp
@csrf
@if($remaining !== null) {{ $remaining }} of {{ $activeSubscription->courses_allocated }} slots remaining @endif
@if($remaining !== null && $remaining <= 0)
@csrf
@endif @elseif($subscriptionCourseAccess)
Included with your subscription
@else @endif
@endif @endif @isset($part) @if(!empty($part->title))

{{ $part->title}}

@endif
Warning: Undefined variable $url in /home/investorpath/public_html/braintem.org/resources/views/web/default/view/product/product.blade.php on line 598

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/investorpath/public_html/braintem.org/resources/views/web/default/view/product/product.blade.php on line 598
@if(!empty($url))

Warning: Undefined array key 0 in /home/investorpath/public_html/braintem.org/resources/views/web/default/view/product/product.blade.php on line 606
@if(Auth::check() && (Auth::user()->admin == 1 || Auth::user()->id == $product->user_id)) item-id-{{ $product->id }} {{ number_format($product->view) }} @endif

@if(!$part) @if(!$buy && !$subscriptionCourseAccess) See course details below @else Begin course @endif @endif

@endif
@if(!empty($part->title))
@if(Auth::check() && Auth::user()->id == $product->user_id) @endif
@endif @if(!empty($part->description)) @php $desc = $maskedPlatform && !$showRealPlatform ? str_ireplace($maskedPlatform, 'the platform', $part->description) : $part->description; $desc = preg_replace('/[^\x{0000}-\x{FFFF}]/u', '', $desc); $desc = str_replace("\xEF\xBF\xBD", '', $desc); $desc = preg_replace('/.*?<\/div>/s', '', $desc); $desc = preg_replace('/.*?<\/p>/s', '', $desc); $desc = preg_replace('/\[Image:[^\]]*\]/i', '', $desc); $desc = preg_replace('/\[(YouTube|Link):\s*(.+?)\]\((https?:\/\/[^\s\)]+)\)/i', '$2', $desc); $desc = preg_replace('/\*\*(.+?)\*\*\s*\((.+?)\)/', '$1', $desc); $desc = preg_replace('/\*\*(.+?)\*\*/', '$1', $desc); $desc = preg_replace('/\(([a-z0-9.-]+\.[a-z]{2,})\)/i', '$1', $desc); @endphp
{!! $desc !!}
@if(!empty($previousPart)) Previous @endif @if(!empty($nextPart)) Next @endif
@if(auth()->check() && (auth()->user()->id == $product->user_id || auth()->user()->admin))
@csrf
@elseif(auth()->check() && ($buy || $subscriptionCourseAccess))
@endif @endif
@endisset
@if(Auth::check() && (Auth::user()->admin == 1 || Auth::user()->id == $product->user_id))
@if(!Auth::check()) @include('web.default.view.product.countdown') @else @if(!$buy || Auth::user()->id == $product->user_id)
@if(getprice($product->id) != 0 && !$subscriptionCourseAccess)
@if(Auth::check() && (Auth::user()->id == $product->user_id || isset($payment)) ) {{ currencySign() }}{{ number_format(price($product->id,$product->category_id,getprice($product->id))['price']) }} @elseif(!isset($payment)) {{ currencySign() }}{{ number_format(price($product->id,$product->category_id,getprice($product->id))['price']) }} @else {{ currencySign() }}{{ number_format($payment->amount) }} @endif
Life time deal!
@if($product->sale_ends_at && strtotime($product->sale_ends_at) > time())
Sale ends in
@endif @include('web.default.view.product.countdown')
@elseif($subscriptionCourseAccess)
Included
@else
FREE
@include('web.default.view.product.countdown') @endif
@if(!Auth::check() OR (!$buy && Auth::check() && (Auth::user()->id !== $product->user_id) && !$activeSubscription))
Join class @include('web.default.view.product.whatsapp-join')
@elseif($activeSubscription && $activeSubscription->plan_type === 'limited' && !$subscriptionCourseAccess)
@csrf
@elseif($subscriptionCourseAccess)
Active Subscription
@endif @endif @endif
@if(!Auth::check()) @elseif(!empty(getprice($product->id)) and getprice($product->id) != 0 and !$buy or (isset($user) && ($product->user_id == $user['id'] || (!empty($user['admin']) && (int) $user['admin'] === 1))) )
@if (!empty(getprice($product->id)) || (isset($user) && ($product->user_id == $user['id'] || (!empty($user['admin']) && (int) $user['admin'] === 1)))) @if(isset($user) && ($product->user_id == $user['id'] || (!empty($user['admin']) && (int) $user['admin'] === 1))) @include('web.default.view.product.settings-title') @include('web.default.view.product.settings-subtitle') @include('web.default.view.product.settings-cta') @include('web.default.view.product.add-video') @include('web.default.view.product.transfer-course-contents-modal') @endif @if(!$buy) @if(!empty(getprice($product->id)) and getprice($product->id) != 0)
@endif @if($product->post == 1 && userMeta($product->user_id,'trip_mode') == 0) @if(!empty(getprice($product->id)) and getprice($product->id) != 0)
@endif @endif @endif {{-- @else @if(!empty(getprice($product->id)) and getprice($product->id) != 0) {{ trans('main.purchased_item') }} @endif @endif --}}
@endif @endif
@if(userMeta($product->user_id,'trip_mode') == 1 && userMeta($product->user_id,'trip_mode_date') > 0)
{{ trans('main.vendor_vac') }} {{ date('Y-m-d', userMeta($product->user_id,'trip_mode_date')) }} {{ trans('main.vendor_vac_2') }}
@endif @if(!empty($product->category->title ))
Category: {{ $product->category->title }}
@endif @if(!empty($product->user->name ))
Instructor: {{ $product->user->name }}
@endif @if( Auth::check() && ($product->user_id == Auth::user()->id || Auth::user()->admin == 1 ))
Mode: {{ $product->mode }}
@endif
Type: Online Class
{{ $product->type}} @if(Auth::check() && !empty($product->private) && (Auth::user()->admin == 1 || Auth::user()->id == $product->user_id) ) | @if($product->private == 1) Exclusive @else Public @endif @endif
@if(!empty(contentDuration($product->id)))
{{ contentDuration($product->id) }}
@endif @if(Auth::user()->id == $product->user_id)
Published: {{ date('d F Y', strtotime($product->created_at)) }}
@endif @if(!empty($MB))
{{ $MB }} {{ trans('main.mb') }}
@endif
@endif
{{--
--}}
@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif @if(Auth::check() && ($product->user_id == Auth::user()->id || Auth::user()->admin == 1) && $product->mode != 'publish')
This course is not published yet.
@endif
@if(isset($parts) && Auth::check() && (Auth::user()->id == $product->user_id || Auth::user()->admin == 1)) @endif

    Fatal error: Uncaught Error: Class "Auth" not found in /home/investorpath/public_html/braintem.org/resources/views/web/default/view/product/product.blade.php:1367 Stack trace: #0 {main} thrown in /home/investorpath/public_html/braintem.org/resources/views/web/default/view/product/product.blade.php on line 1367