@php
$packages = \App\Models\Package::where('status', '1')->where('term', strtolower($term))->get();
$totalItems = count($packages);
$middleIndex = intdiv($totalItems, 2);
@endphp
@foreach ($packages as $index => $package)
@php
$permissions = $package->features;
if (!empty($package->features)) {
$permissions = json_decode($permissions, true);
}
@endphp
{{ __($package->title) }}
@if ($package->recommended == '1')
{{ __('Popular') }}
@endif
{{ symbolPrice($package->price) }}
@if ($package->term == 'monthly')
/ {{ __('Monthly') }}
@elseif($package->term == 'yearly')
/ {{ __('Yearly') }}
@elseif($package->term == 'lifetime')
/ {{ __('Lifetime') }}
@endif
{{ __('What\'s Included') }}
-
@if ($package->number_of_listing == 999999)
{{ __('Listing (Unlimited)') }}
@elseif($package->number_of_listing == 1)
{{ __('Listing') }} ({{ $package->number_of_listing }})
@else
{{ __('Listings') }} ({{ $package->number_of_listing }})
@endif
-
@if ($package->number_of_images_per_listing == 999999)
{{ __('Images Per Listing (Unlimited)') }}
@elseif($package->number_of_images_per_listing == 1)
{{ __('Image Per Listing') }} ({{ $package->number_of_images_per_listing }})
@else
{{ __('Images Per Listings') }} ({{ $package->number_of_images_per_listing }})
@endif
-
{{ __('Enquiry Form') }}
-
{{ __('Video') }}
-
@if (is_array($permissions) && in_array('Amenities', $permissions))
@if ($package->number_of_amenities_per_listing == 999999)
{{ __('Amenities Per Listing(Unlimited)') }}
@elseif($package->number_of_amenities_per_listing == 1)
{{ __('Amenitie Per Listing') }} ({{ $package->number_of_amenities_per_listing }})
@else
{{ __('Amenities Per Listing') }}
({{ $package->number_of_amenities_per_listing }})
@endif
@else
{{ __('Amenities Per Listing') }}
@endif
-
@if (is_array($permissions) && in_array('Feature', $permissions))
@if ($package->number_of_additional_specification == 999999)
{{ __('Feature Per Listing (Unlimited)') }}
@elseif($package->number_of_additional_specification == 1)
{{ __('Feature Per Listing') }}
({{ $package->number_of_additional_specification }})
@else
{{ __('Features Per Listing') }}
({{ $package->number_of_additional_specification }})
@endif
@else
{{ __('Feature Per Listing') }}
@endif
-
@if (is_array($permissions) && in_array('Social Links', $permissions))
@if ($package->number_of_social_links == 999999)
{{ __('Social Links Per Listing(Unlimited)') }}
@elseif($package->number_of_social_links == 1)
{{ __('Social Link Per Listing') }} ({{ $package->number_of_social_links }})
@else
{{ __('Social Links Per Listing') }} ({{ $package->number_of_social_links }})
@endif
@else
{{ __('Social Link Per Listing') }}
@endif
-
@if (is_array($permissions) && in_array('FAQ', $permissions))
@if ($package->number_of_faq == 999999)
{{ __('FAQ Per Listing(Unlimited)') }}
@elseif($package->number_of_faq == 1)
{{ __('FAQ Per Listing') }} ({{ $package->number_of_faq }})
@else
{{ __('FAQs Per Listing') }} ({{ $package->number_of_faq }})
@endif
@else
{{ __('FAQ Per Listing') }}
@endif
-
{{ __('Business Hours') }}
-
@if (is_array($permissions) && in_array('Products', $permissions))
@if ($package->number_of_products == 999999)
{{ __('Products Per Listing (Unlimited)') }}
@elseif($package->number_of_products == 1)
{{ __('Product Per Listing') }} ({{ $package->number_of_products }})
@else
{{ __('Products Per Listing') }} ({{ $package->number_of_products }})
@endif
@else
{{ __('Products Per Listing') }}
@endif
@if (is_array($permissions) && in_array('Products', $permissions))
-
@if ($package->number_of_images_per_products == 999999)
{{ __('Product Image Per Product (Unlimited)') }}
@elseif($package->number_of_images_per_products == 1)
{{ __('Product Image Per Product') }}
({{ $package->number_of_images_per_products }})
@else
{{ __('Product Images Per Product') }}
({{ $package->number_of_images_per_products }})
@endif
@else
-
{{ __('Product Image Per Product') }}
@endif
@if (is_array($permissions) && in_array('Products', $permissions))
-
{{ __('Product Enquiry Form') }}
@else
-
{{ __('Product Enquiry Form') }}
@endif
-
{{ __('Messenger') }}
-
{{ __('WhatsApp') }}
-
{{ __('Telegram') }}
-
{{ __('Tawk.To') }}
@if (!is_null($package->custom_features))
@php
$features = explode("\n", $package->custom_features);
@endphp
@if (count($features) > 0)
@foreach ($features as $key => $value)
- {{ __($value) }}
@endforeach
@endif
@endif
@auth('vendor')
{{ __('Purchase') }}
@endauth
@guest('vendor')
{{ __('Purchase') }}
@endguest
@endforeach