@extends('user.layout') @section('styles') @endsection @includeIf('user.partials.rtl-style') @php $package = \App\Http\Helpers\UserPermissionHelper::currentPackage($tenant->id); @endphp @section('content') @if (!empty($currentLang) && $currentLang->rtl == 1) @endif @if (is_null($package)) @php $pendingMemb = \App\Models\Membership::query() ->where([['user_id', '=', Auth::id()], ['status', 0]]) ->whereYear('start_date', '<>', '9999') ->orderBy('id', 'DESC') ->first(); $pendingPackage = isset($pendingMemb) ? \App\Models\Package::query()->findOrFail($pendingMemb->package_id) : null; @endphp @if ($pendingPackage)
{{ __('You have requested a package which needs an action (Approval or Rejection) by Admin. You will be notified via mail once an action is taken') }}
{{ __('Pending Package') }}: {{ $pendingPackage->title }} {{ __($pendingPackage->term) }} {{ __('Decision Pending') }}
@else
{{ __('Your membership is expired. Please purchase a new package or extend the current package') }}
@endif @else
@if ($package_count >= 2) @if ($next_membership->status == 0) {{ __('You have requested a package which needs an action (Approval or Rejection) by Admin. You will be notified via mail once an action is taken') }}
@elseif ($next_membership->status == 1) {{__('You have another package to activate after the current package expires') . '. ' . __('You cannot purchase or extend any package, until the next package is activated') }}
@endif @endif {{ __('Current Package') }}: {{ $current_package->title }} {{ __($current_package->term) }} @if ($current_membership->is_trial == 1) ({{ __('Expire Date') }}: {{ Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y') }}) {{ __('Trial') }} @else ({{ __('Expire Date') }}: {{ $current_package->term === 'lifetime' ? __('Lifetime') : Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y') }}) @endif @if ($package_count >= 2)
{{ __('Next Package To Activate') }}: {{ $next_package->title }} {{ __($next_package->term) }} @if ($current_package->term != 'lifetime' && $current_membership->is_trial != 1) ( {{ __('Next Package To Activate') }}: {{ Carbon\Carbon::parse($next_membership->start_date)->format('M-d-Y') }}, {{ __('Expire Date') }}: {{ $next_package->term === 'lifetime' ? __('Lifetime') : Carbon\Carbon::parse($next_membership->expire_date)->format('M-d-Y') }}) @endif @if ($next_membership->status == 0) {{ __('Decision Pending') }} @endif
@endif
@endif
@foreach ($packages as $key => $package)

{{ $package->title }}

@if (isset($current_package->id) && $current_package->id === $package->id)

{{ __('Current') }}

@endif @if ($package_count >= 2 && $next_package->id == $package->id) @if ($next_membership->status == 1)

{{ __('Next') }}

@endif @endif
{{ $package->price == 0 ? __('Free') : format_price($package->price) }} /{{ __($package->term) }}
    @php $pFeatures = json_decode($package->features, true); $allPfeatures = json_decode($be->package_features, true); @endphp @foreach ($allPfeatures as $feature)
  • @if ($feature == 'Custom Domain') {{ $package->custom_domain_limit === 1 ? __('Custom Domain') : __('Custom Domains') }} @if ($package->custom_domain_limit > 0) ({{ $package->custom_domain_limit === 999999 ? __('Unlimited') : $package->custom_domain_limit }}) @endif @elseif ($feature == 'Subdomain') {{ $package->subdomain_limit === 1 ? __('Subomain') : __('Subomains') }} @if ($package->subdomain_limit > 0) ({{ $package->subdomain_limit === 999999 ? __('Unlimited') : $package->subdomain_limit }}) @endif @elseif ($feature == 'Additional Language') @if (is_array($pFeatures) && in_array($feature, $pFeatures)) {{ $package->number_of_language === 999999 ? __('Unlimited') : $package->number_of_language . ' ' }} {{ $package->number_of_language === 1 ? __('Additional Language') : __('Additional Languages') }} @else {{ __('Additional Language') }} @endif @elseif ($feature == 'Additional Page') @if (is_array($pFeatures) && in_array($feature, $pFeatures)) {{ $package->number_of_additional_page === 999999 ? __('Unlimited') : $package->number_of_additional_page . ' ' }} {{ $package->number_of_additional_page === 1 ? __('Additional Page') : __('Additional Pages') }} @else {{ __('Additional Page') }} @endif @elseif ($feature == 'Agent') @if (is_array($pFeatures) && in_array($feature, $pFeatures)) {{ $package->number_of_agent === 999999 ? __('Unlimited') : $package->number_of_agent . ' ' }} {{ $package->number_of_agent === 1 ? __('Agent') : __('Agents') }} @else {{ __('Agent') }} @endif @elseif ($feature == 'Property Management') {{ __('Property Management') }} @if (is_array($pFeatures) && in_array($feature, $pFeatures))
    • {{ $package->number_of_property === 999999 ? __('Unlimited') : $package->number_of_property . ' ' }} {{ $package->number_of_property === 1 ? __('Property') : __('Properties') }}
    • {{ $package->number_of_property_featured === 999999 ? __('Unlimited') : $package->number_of_property_featured . ' ' }} {{ $package->number_of_property_featured === 1 ? __('Featured Property') : __('Featured Properties') }}
    • {{ $package->number_of_property_gallery_images === 999999 ? __('Unlimited') : $package->number_of_property_gallery_images . ' ' }} {{ $package->number_of_property_gallery_images === 1 ? __('Gallery Image Per Property') : __('Gallery Images Per Property') }}
    • {{ $package->number_of_property_adittionl_specifications === 999999 ? __('Unlimited') : $package->number_of_property_adittionl_specifications . ' ' }} {{ $package->number_of_property_adittionl_specifications === 1 ? __('Additional Specification Per Property') : __('Additional Specifications Per Property') }}
    @endif @elseif ($feature == 'Project Management') {{ __('Project Management') }} @if (is_array($pFeatures) && in_array($feature, $pFeatures))
    • {{ $package->number_of_projects === 999999 ? __('Unlimited') : $package->number_of_projects . ' ' }} {{ $package->number_of_projects === 1 ? __('Project') : __('Projects') }}
    • {{ $package->number_of_project_types === 999999 ? __('Unlimited') : $package->number_of_project_types . ' ' }} {{ $package->number_of_project_types === 1 ? __('Project Types Per Project') : __('Project Types Per Project') }}
    • {{ $package->number_of_project_gallery_images === 999999 ? __('Unlimited') : $package->number_of_project_gallery_images . ' ' }} {{ $package->number_of_project_gallery_images === 1 ? __('Gallery Image Per Project') : __('Gallery Images Per Project') }}
    • {{ $package->number_of_project_additionl_specifications === 999999 ? __('Unlimited') : $package->number_of_project_additionl_specifications . ' ' }} {{ $package->number_of_project_additionl_specifications === 1 ? __('Additional Specification Per Project') : __('Additional Specifications Per Project') }}
    @endif @elseif ($feature == 'Blog') @if (is_array($pFeatures) && in_array($feature, $pFeatures)) {{ $package->number_of_blog_post === 999999 ? __('Unlimited') : $package->number_of_blog_post . ' ' }} {{ $package->number_of_blog_post === 1 ? __('Blog Post') : __('Blog Posts') }} @else {{ __('Blog Post') }} @endif @else {{ __("$feature") }} @endif
  • @endforeach
@php $hasPendingMemb = \App\Http\Helpers\UserPermissionHelper::hasPendingMembership(Auth::id()); @endphp @if ($package_count < 2 && !$hasPendingMemb)
@if (isset($current_package->id) && $current_package->id === $package->id) @if ($package->term != 'lifetime' || $current_membership->is_trial == 1) {{ __('Extend') }} @endif @else {{ __('Buy Now') }} @endif
@endif
@endforeach
@endsection