@if ($package->pricing_type == 0)

{{ get_phrase('Free') }}

@else

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

{{ currency($package->allocation * $package->course_price, 2) }}
@endif
@php if (isset(auth()->user()->id)) { $is_purchased = DB::table('team_package_purchases') ->where('user_id', auth()->user()->id) ->where('package_id', $package->id) ->where('status', 1) ->exists(); $pending_package_payment = DB::table('offline_payments') ->where('user_id', auth()->user()->id) ->where('item_type', 'package') ->where('items', $package->id) ->where('status', 0) ->first(); } @endphp @if (isset(auth()->user()->id)) @if ($pending_package_payment) ... {{ get_phrase('Processing') }} @else @if ($is_purchased) ... {{ get_phrase('Show In Collection') }} @else ... {{ get_phrase($package->pricing_type ? 'Buy Package' : 'Enroll Package') }} @endif @endif @else ... {{ get_phrase($package->pricing_type ? 'Buy Package' : 'Enroll Package') }} @endif @php $instructor = get_user_info($package->user_id); @endphp @if (isset($instructor->twitter) || isset($instructor->facebook) || isset($instructor->linkedin) || isset($instructor->instagram)) @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('team.package.details', $package->slug); @endphp

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

@include('frontend.default.scripts')