@php
$packages = \App\Models\Package::where('status', '1')
->where('term', strtolower($term))
->orderBy('serial_number', 'ASC')
->get();
@endphp
@foreach ($packages as $package)
@php
$pFeatures = json_decode($package->features);
@endphp
{{ __($package->title) }}
{{ $package->price != 0 && $be->base_currency_symbol_position == 'left' ? $be->base_currency_symbol : '' }}{{ $package->price == 0 ? 'Free' : $package->price }}{{ $package->price != 0 && $be->base_currency_symbol_position == 'right' ? $be->base_currency_symbol : '' }}
/ @if ($package->term == 'monthly')
{{ __('month') }}
@elseif($package->term == 'yearly')
{{ __('year') }}
@else
{{ __($package->term) }}
@endif
{{ __("What's Included") }}
@foreach ($allPfeatures as $feature)
-
@if (is_array($pFeatures) && in_array($feature, $pFeatures))
@else
@endif
@if ($feature == 'vCard' && is_array($pFeatures) && in_array($feature, $pFeatures))
@if ($package->number_of_vcards == 999999)
{{ __('Unlimited') }} {{ __('vCards') }}
@elseif(empty($package->number_of_vcards))
0 {{ __('vCard') }}
@else
{{ $package->number_of_vcards }}
{{ $package->number_of_vcards > 1 ? __('vCards') : __('vCard') }}
@endif
@continue
@elseif($feature == 'vCard' && (is_array($pFeatures) && !in_array($feature, $pFeatures)))
{{ __('vCards') }}
@continue
@endif
{{ __("$feature") }}
@if ($feature == 'Plugins')
({{ __('Google Analytics, Disqus, WhatsApp, Facebook Pixel, Tawk.to') }})
@endif
@endforeach
@endforeach