Plan Details
@if (session()->has('alert'))
@slot('type', session('alert')['type'])
@slot('msg', session('alert')['msg'])
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if(isset($activeOrder))
Upgrading from
{{$activeOrder->plan_data['title']}} to {{ $plan->title }}
@endif
{{ $plan->title }}
@php
$original = floatval($plan->non_discounted_price);
$discounted = floatval($plan->price);
if ($original > 0 && $original > $discounted) {
$discountPercent = round((($original - $discounted) / $original) * 100);
} else {
// fallback to 0% off if invalid data
$discountPercent = 0;
}
@endphp
{{$plan->symbol}}{{$plan->non_discounted_price}}
{{$plan->symbol}}{{$plan->price}}
@if($plan->days!="30")
/ {{$plan->days}} days
@else
/ month
@endif
{{$discountPercent}}% OFF
Get access to all premium features and unlimited usage.
What's included:
@foreach($plan->data ?? [] as $key => $data)
-
@if($key == 'messages_limit' || $key == 'device_limit')
@if($data == "-1")
∞
@else
{{ number_format($data) }}
@endif
@else
@if(is_bool($data))
@if($data)
@else
@endif
@endif
@endif
{{ __(strtoupper($key)) }}
@endforeach