@extends('front-end.layout') @section('title') {{ get_label('pricing_plans', 'Pricing Plans') }} @endsection @section('content')
pattern-lines
{{ get_label('pricing', 'Pricing') }}

{{ get_label('see_our_pricing', 'See our pricing') }}

{{ get_label('seePricingDesc', 'You have Free Unlimited Updates and Premium Support on each package.') }}

@if (count($plans) > 0) @php // Check if any plans have non-zero prices for yearly and lifetime options $hasYearlyPlans = false; $hasLifetimePlans = false; foreach ($plans as $plan) { if ($plan->yearly_price > 0 || ($plan->plan_type === 'free' && $plan->yearly_price == 0)) { $hasYearlyPlans = true; } if ($plan->lifetime_price > 0 || ($plan->plan_type === 'free' && $plan->lifetime_price == 0)) { $hasLifetimePlans = true; } } // Count how many pricing options are available $availablePricingOptions = 1; // Monthly is always available if ($hasYearlyPlans) $availablePricingOptions++; if ($hasLifetimePlans) $availablePricingOptions++; @endphp
@if ($availablePricingOptions > 1) @endif
@foreach ($plans as $plan)
{{ $plan->name }}

@if($plan->monthly_discounted_price > 0 && $plan->monthly_discounted_price < $plan->monthly_price) {{ format_currency($plan->monthly_price) }} {{ format_currency($plan->monthly_discounted_price) }} / {{get_label('monthly_price', 'Monthly Price')}} @else {{ format_currency($plan->monthly_price) }} / {{get_label('monthly_price', 'Monthly Price')}} @endif

{{$plan->description}}

@if($plan->monthly_price == 0) {{get_label('buy_now', 'Buy now')}} @else {{get_label('buy_now', 'Buy now')}} @endif

  • {{ get_label('max_projects', 'Max Projects') }}: {!! $plan->max_projects == -1 ? 'Unlimited' : '' . $plan->max_projects . '' !!}
  • {{ get_label('max_clients', 'Max Clients') }}: {!! $plan->max_clients == -1 ? 'Unlimited' : '' . $plan->max_clients . '' !!}
  • {{ get_label('max_team_members', 'Max Team Members') }}: {!! $plan->max_team_members == -1 ? 'Unlimited' : '' . $plan->max_team_members . '' !!}
  • {{ get_label('max_workspaces', 'Max Workspaces') }}: {!! $plan->max_worksapces == -1 ? 'Unlimited' : '' . $plan->max_worksapces . '' !!}
  • @if ($plan->modules)
  • {{ get_label('modules', 'Modules') }}
      @php $modules = json_decode($plan->modules); $checkedModules = []; $uncheckedModules = []; foreach (config('taskify.modules') as $moduleName => $moduleData) { $included = in_array($moduleName, $modules); if ($included) { $checkedModules[] = [ 'name' => $moduleName, 'icon' => $moduleData['icon'], ]; } else { $uncheckedModules[] = [ 'name' => $moduleName, 'icon' => $moduleData['icon'], ]; } } $sortedModules = array_merge($checkedModules, $uncheckedModules); @endphp @foreach ($sortedModules as $module) @php $iconClass = in_array($module['name'], $modules) ? 'fas fa-check-circle text-success' : 'fas fa-times-circle text-danger'; @endphp
    • {{ ucfirst($module['name']) }}
    • @endforeach
  • @endif
@endforeach
@if ($hasYearlyPlans)
@foreach ($plans as $plan) @if ($plan->yearly_price > 0 || ($plan->plan_type === 'free' && $plan->yearly_price == 0))
{{ $plan->name }}

@if($plan->yearly_discounted_price > 0 && $plan->yearly_discounted_price < $plan->yearly_price) {{ format_currency($plan->yearly_price) }} {{ format_currency($plan->yearly_discounted_price) }} / {{get_label('yearly_price', 'Yearly Price')}} @else {{ format_currency($plan->yearly_price) }} / {{get_label('yearly_price', 'Yearly Price')}} @endif

{{$plan->description}}

@if($plan->yearly_price == 0) {{get_label('buy_now', 'Buy now')}} @else {{get_label('buy_now', 'Buy now')}} @endif

  • {{ get_label('max_projects', 'Max Projects') }}: {!! $plan->max_projects == -1 ? 'Unlimited' : '' . $plan->max_projects . '' !!}
  • {{ get_label('max_clients', 'Max Clients') }}: {!! $plan->max_clients == -1 ? 'Unlimited' : '' . $plan->max_clients . '' !!}
  • {{ get_label('max_team_members', 'Max Team Members') }}: {!! $plan->max_team_members == -1 ? 'Unlimited' : '' . $plan->max_team_members . '' !!}
  • {{ get_label('max_workspaces', 'Max Workspaces') }}: {!! $plan->max_worksapces == -1 ? 'Unlimited' : '' . $plan->max_worksapces . '' !!}
  • @if ($plan->modules)
  • {{ get_label('modules', 'Modules') }}
      @php $modules = json_decode($plan->modules); $checkedModules = []; $uncheckedModules = []; foreach (config('taskify.modules') as $moduleName => $moduleData) { $included = in_array($moduleName, $modules); if ($included) { $checkedModules[] = [ 'name' => $moduleName, 'icon' => $moduleData['icon'], ]; } else { $uncheckedModules[] = [ 'name' => $moduleName, 'icon' => $moduleData['icon'], ]; } } $sortedModules = array_merge($checkedModules, $uncheckedModules); @endphp @foreach ($sortedModules as $module) @php $iconClass = in_array($module['name'], $modules) ? 'fas fa-check-circle text-success' : 'fas fa-times-circle text-danger'; @endphp
    • {{ ucfirst($module['name']) }}
    • @endforeach
  • @endif
@endif @endforeach
@endif @if ($hasLifetimePlans)
@foreach ($plans as $plan) @if ($plan->lifetime_price > 0 || ($plan->plan_type === 'free' && $plan->lifetime_price == 0))
{{ $plan->name }}

@if($plan->lifetime_discounted_price > 0 && $plan->lifetime_discounted_price < $plan->lifetime_price) {{ format_currency($plan->lifetime_price) }} {{ format_currency($plan->lifetime_discounted_price) }} / {{get_label('lifetime_price', 'Lifetime Price')}} @else {{ format_currency($plan->lifetime_price) }} / {{get_label('lifetime_price', 'Lifetime Price')}} @endif

{{$plan->description}}

@if($plan->lifetime_price == 0) {{get_label('buy_now', 'Buy now')}} @else {{get_label('buy_now', 'Buy now')}} @endif

  • {{ get_label('max_projects', 'Max Projects') }}: {!! $plan->max_projects == -1 ? 'Unlimited' : '' . $plan->max_projects . '' !!}
  • {{ get_label('max_clients', 'Max Clients') }}: {!! $plan->max_clients == -1 ? 'Unlimited' : '' . $plan->max_clients . '' !!}
  • {{ get_label('max_team_members', 'Max Team Members') }}: {!! $plan->max_team_members == -1 ? 'Unlimited' : '' . $plan->max_team_members . '' !!}
  • {{ get_label('max_workspaces', 'Max Workspaces') }}: {!! $plan->max_worksapces == -1 ? 'Unlimited' : '' . $plan->max_worksapces . '' !!}
  • @if ($plan->modules)
  • {{ get_label('modules', 'Modules') }}
      @php $modules = json_decode($plan->modules); $checkedModules = []; $uncheckedModules = []; foreach (config('taskify.modules') as $moduleName => $moduleData) { $included = in_array($moduleName, $modules); if ($included) { $checkedModules[] = [ 'name' => $moduleName, 'icon' => $moduleData['icon'], ]; } else { $uncheckedModules[] = [ 'name' => $moduleName, 'icon' => $moduleData['icon'], ]; } } $sortedModules = array_merge($checkedModules, $uncheckedModules); @endphp @foreach ($sortedModules as $module) @php $iconClass = in_array($module['name'], $modules) ? 'fas fa-check-circle text-success' : 'fas fa-times-circle text-danger'; @endphp
    • {{ ucfirst($module['name']) }}
    • @endforeach
  • @endif
@endif @endforeach
@endif
@else
{{ get_label('no_plans_available', 'No Plans Available') }}
@endif
@endsection