@section('title') Pricing @endsection @section('breadcrumbs') {{ Breadcrumbs::render('subscriptions.pricing') }} @endsection
@foreach($subscriptionPlans as $plan) @php $block = ''; $class = 'monthly-plan'; $type = 'Monthly'; $price = $plan->price; if($plan->type=='Annually'): $class = 'annually-plan'; $type = 'Annually'; $price = $plan->price * 12; endif; if($selectedPlanAction == 'annually' && $plan->type=='Annually'): $block = ''; elseif($selectedPlanAction == 'monthly' && $plan->type=='Monthly'): $block = ''; else: $block = 'd-none'; endif; $cardBgColor = ($plan->id == $userPlanId ? 'bg-primary' : ''); $textColor = ($plan->id == $userPlanId ? 'text-white' : ''); if($plan->type=='Monthly'): $monthlyPrice = ($plan->price*12); endif; @endphp @endforeach @foreach($services as $service) @php $badgeClass = 'badge badge-light-success'; $iconClass = 'text-success'; if(in_array($service->id, [24,25,26,29,30])): $badgeClass = 'badge badge-light-warning'; $iconClass = 'text-warning'; endif; @endphp @if(isset($service->spark_starter)) @endif @endforeach
{{$plan->plan_name}}
$ {{$price}}
@if($plan->type=='Annually')
${{$plan->price.'/Monthly'}}
Save 20% / ${{($monthlyPrice - $price)}}
@endif @if($plan->id != $userPlanId) @if($userPlanId == 0) Purchase @elseif(in_array($plan->id, $downgradePlan)) @if(in_array($loggedAdminId, ['d3a29a0e-91f1-4b06-87d5-11600532323e','0f56f683-5464-4ef8-9701-11ead7982685'])) Downgrade @else To downgrade package
please contact customer support
@endif @else @can(['carbon-list']) @if($plan->id < $userPlanId) @if(in_array($loggedAdminId, ['d3a29a0e-91f1-4b06-87d5-11600532323e','0f56f683-5464-4ef8-9701-11ead7982685'])) Downgrade @else You can not downgrade
from higher package
@endif @else Upgrade @endif @else @if($plan->id < $userPlanId) @if(in_array($loggedAdminId, ['d3a29a0e-91f1-4b06-87d5-11600532323e','0f56f683-5464-4ef8-9701-11ead7982685'])) Downgrade @else You can not downgrade
from higher package
@endif @else Upgrade @endif @endcanany @endif @else Current @endif
{{$service->services}}
@if($service->spark_starter == 1) @elseif($service->spark_starter == 0) @else
{{$service->spark_starter}}
@endif
@if($service->groth_master == 1) @elseif($service->groth_master == 0) @elseif($service->groth_master == "$0")
{{$service->groth_master}}
@else
{{$service->groth_master}}
@endif
@if($service->elite == 1) @elseif($service->elite == 0) @elseif($service->groth_master == "$0")
{{$service->groth_master}}
@else
{{$service->elite}}
@endif
@push('scripts') @endpush