@extends('layouts.app') @section('page-header') @endsection @section('content')
@if ($plan || $prepaid_exists)
@if (config('payment.payment_option') == 'subscription' || config('payment.payment_option') == 'both')
@if ($subscriptions->count())
{{ __('Subscribe to our Monthly Subscription Plans and enjoy ton of benefits') }}
@foreach ( $subscriptions as $subscription )
{!! config('payment.default_system_currency_symbol') !!}{{ $subscription->cost }}{{ $subscription->currency }}

{{ $subscription->primary_heading }}

{{ $subscription->plan_name }}

{{ $subscription->secondary_heading }}

    @foreach ( (explode(',', $subscription->plan_features)) as $feature ) @if ($feature)
  • {{ $feature }}
  • @endif @endforeach
@if (auth()->user()->plan_id == $subscription->id) @else {{ __('Subscribe Now') }} @endif
@endforeach
@else
No Subscriptions plans were set yet
@endif
@endif @if (config('payment.payment_option') == 'prepaid' || config('payment.payment_option') == 'both')
@if ($prepaids->count())
{{ __('Top up your subscription with more credits or start with Prepaid Plans credits only') }}
@foreach ( $prepaids as $prepaid )
{{ $prepaid->plan_name }} {{ $prepaid->currency }}{{ $prepaid->cost }}{!! config('payment.default_system_currency_symbol') !!}

{{ __('Total Characters') }} @if ($prepaid->bonus > 0) +{{ number_format($prepaid->bonus) }} {{ __('bonus') }}!@endif

@endforeach
@else
{{ __('No Pre-Paid plans were set yet') }}
@endif
@endif
@else
{{ __('No Subscriptions or Pre-Paid plans were set yet') }}
@endif
@endsection