@extends('layouts.business.master') @section('title') {{ __('Subscriptions List') }} @endsection @section('main_content')

{{ __('Purchase Plan') }}

@foreach ($plans as $plan) @php $activePlan = plan_data(); $isFreePlan = $plan->subscriptionPrice == 0; $isPlanActivated = $activePlan != null; $business = auth()->user()->business ?? null; $notPurchaseAble = ($activePlan && $activePlan->plan_id == $plan->id && ($business && $business->will_expire > now()->addDays(7))) || ($business && $business->will_expire >= now()->addDays($plan->duration)); @endphp
@if ((plan_data() ?? false) && plan_data()->plan_id == $plan->id) @endif @if ($plan->offerPrice)
{{ currency_format($plan->subscriptionPrice) }}
@endif

{{ $plan->subscriptionName }}

{{ $plan->duration }} {{ __('Days') }}

{{ currency_format(convert_money($plan->offerPrice ?? $plan->subscriptionPrice, business_currency()), currency : business_currency()) }}

@if ($isFreePlan && $isPlanActivated || $notPurchaseAble) @else {{ __('Buy Now') }} @endif
@foreach ($plan['features'] ?? [] as $key => $item)

{{ $item[0] ?? '' }}

@endforeach @if (moduleCheck('MultiBranchAddon'))

{{ __('Multi-branch Allowed') }}

@endif @if (moduleCheck('CustomDomainAddon'))

{{ $plan->addon_domain_limit > 0 ? __('Addon Limit:') . ' ' . $plan->addon_domain_limit : __('Addon Domain Available?') }}

{{ $plan->subdomain_limit > 0 ? __('Subdomain Limit:') . ' ' . $plan->subdomain_limit : __('Subdomain Available?') }}

@endif
@endforeach
@endsection