@extends('checkout.layout') @section('content')

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:

Payment Details

@csrf
Original Price
{{$plan->symbol}}{{$plan->non_discounted_price}}
Plan Discount
-{{$plan->symbol}}{{($plan->non_discounted_price-$plan->price)}}
Subtotal
{{$plan->symbol}}{{$plan->price}}
Trial Discount
- {{$plan->symbol}}{{$plan->price}}
Total
{{$plan->symbol}} 0
@endsection @section('scripts') @endsection