@if (isset($bootcamp_details->is_paid) && $bootcamp_details->is_paid == 0)

{{ get_phrase('Free') }}

@elseif (isset($bootcamp_details->discount_flag) && $bootcamp_details->discount_flag == 1)

{{ currency($bootcamp_details->price - $bootcamp_details->discounted_price, 2) }}

{{ currency($bootcamp_details->price, 2) }} @else

{{ currency($bootcamp_details->price, 2) }}

@endif
@php if (isset(auth()->user()->id)) { $is_purchased = DB::table('bootcamp_purchases') ->where('user_id', auth()->user()->id) ->where('bootcamp_id', $bootcamp_details->id) ->where('status', 1) ->exists(); $pending_bootcamp_payment = DB::table('offline_payments') ->where('user_id', auth()->user()->id) ->where('item_type', 'bootcamp') ->where('items', $bootcamp_details->id) ->where('status', 0) ->first(); } @endphp @if (isset(auth()->user()->id)) @if ($pending_bootcamp_payment) ... {{ get_phrase('Processing') }} @else @if ($is_purchased) ... {{ get_phrase('Show In Collection') }} @else ... {{ get_phrase($bootcamp_details->is_paid ? 'Buy Bootcamp' : 'Enroll Bootcamp') }} @endif @endif @else ... {{ get_phrase($bootcamp_details->is_paid ? 'Buy Bootcamp' : 'Enroll Bootcamp') }} @endif @if ($instructor->phone)

{{ get_phrase('For details about the course') }}

...{{ get_phrase('Call Us') }}:

{{ $instructor->phone }}

@endif @php if (isset($user_data['unique_identifier'])): $ref = $user_data['unique_identifier']; else: $ref = ''; endif; $share_url = route('course.details', $bootcamp_details->slug); @endphp

{{ get_phrase('Share on social media') }}

@include('frontend.default.scripts')