@extends('layouts.app') @section('content')
@lang('messages.active_subscription')
@if(!empty($active_subscription))
{{$active_subscription->package_details['name']}} @lang('messages.running')
@if($active_subscription->package_details['no_of_active_forms'] == 0) @lang('messages.unlimited_forms')
@endif @if($active_subscription->package_details['is_form_downloadable']) @lang('messages.form_code_download') @else @lang('messages.form_code_download') @endif
@lang('messages.package_activated_on', ['date' => \Carbon\Carbon::parse($active_subscription->start_date)->isoFormat("D/M/YY")])
@lang('messages.remaining_days', ['days' => \Carbon\Carbon::today()->diffInDays($active_subscription->end_date)])
@lang('messages.package_expire_on', ['date' => \Carbon\Carbon::parse($active_subscription->end_date)->isoFormat("D/M/YY")])
@else

@lang('messages.no_active_subscription')

@endif @if(!empty($upcoming_subscriptions))
@foreach($upcoming_subscriptions as $upcoming_subscription)
{{$upcoming_subscription->package_details['name']}} @lang('messages.upcoming')
@if($upcoming_subscription->package_details['no_of_active_forms'] != 0) @lang('messages.no_of_forms',[ 'active_form' => $upcoming_subscription->package_details['no_of_active_forms']]) @else @lang('messages.unlimited_forms') @endif
@if($upcoming_subscription->package_details['is_form_downloadable']) @lang('messages.form_code_download') @else @lang('messages.form_code_download') @endif
@lang('messages.package_starts_on', ['date' => \Carbon\Carbon::parse($upcoming_subscription->start_date)->isoFormat("D/M/YY")])
@lang('messages.package_expire_on', ['date' => \Carbon\Carbon::parse($upcoming_subscription->end_date)->isoFormat("D/M/YY")])
@if($loop->iteration%3 == 0)
@endif @endforeach
@endif @if(!empty($waiting_subscriptions))
@foreach($waiting_subscriptions as $waiting_subscription)
{{$waiting_subscription->package_details['name']}} @lang('messages.waiting')
@if($waiting_subscription->package_details['no_of_active_forms'] != 0) @lang('messages.no_of_forms',[ 'active_form' => $waiting_subscription->package_details['no_of_active_forms']]) @else @lang('messages.unlimited_forms') @endif
@if($waiting_subscription->package_details['is_form_downloadable']) @lang('messages.form_code_download') @else @lang('messages.form_code_download') @endif
@lang('messages.package_starts_on', ['date' => \Carbon\Carbon::parse($waiting_subscription->start_date)->isoFormat("D/M/YY")])
@lang('messages.package_expire_on', ['date' => \Carbon\Carbon::parse($waiting_subscription->end_date)->isoFormat("D/M/YY")])
@if($loop->iteration%3 == 0)
@endif @endforeach
@endif
@lang('messages.all_subscriptions')
@lang('messages.package_name') @lang('messages.start_date') @lang('messages.end_date') @lang('messages.price') @lang('messages.paid_via') @lang('messages.transaction_id') @lang('messages.status') @lang('messages.created_at') @lang('messages.action')
@if($__enable_saas)
@lang('messages.packages')
@if(count($active_packages) <= 0) @endif
@foreach($active_packages as $package)
{{$package->name}}
@if($package->no_of_active_forms != 0) @lang('messages.no_of_forms',[ 'active_form' => $package->no_of_active_forms]) @else @lang('messages.unlimited_forms') @endif
@if($package->is_form_downloadable) @lang('messages.form_code_download') @else @lang('messages.form_code_download') @endif
@php $price_interval = __('messages.'.$package->price_interval); @endphp @if($package->price != 0)

{{$package->price}} @lang('messages.subscription_price',[ 'interval' => $package->interval, 'price_interval' => $price_interval ])

@else

@lang('messages.free_for_interval', [ 'interval' => $package->interval, 'price_interval' => $price_interval ])

@endif
@if($loop->iteration%3 == 0)
@endif @endforeach
{{ $active_packages->links() }}
@endif
@endsection @section('footer') @endsection