@extends("front.$version.layout")
@section('pagename')
- {{ __('Order of') . ' ' . $package->title }}
@endsection
@section('meta-keywords', "$package->meta_keywords")
@section('meta-description', "$package->meta_description")
@section('content')
@section('breadcrumb-title', __('Package Order'))
@section('breadcrumb-subtitle')
{{ __('Place Order for') }}
{{ convertUtf8($package->title) }}
@endsection
@section('breadcrumb-link', __('Package Order'))
@if ($bex->recurring_billing == 1)
{{ __('Order Summay') }}
-
{{ __('Package') }}:
{{ $package->title }}
-
{{ __('Duration') }}:
{{ $package->duration == 'monthly' ? __('Monthly') : __('Yearly') }}
-
{{ __('Price') }}:
{{ $bex->base_currency_text_position == 'left' ? $bex->base_currency_text : '' }}
{{ $package->price }}
{{ $bex->base_currency_text_position == 'right' ? $bex->base_currency_text : '' }}
@php
// if there is a current active subscription for this user
$activeSub = App\Subscription::where('user_id', Auth::user()->id)->where('status', 1);
if ($package->duration == 'monthly') {
$days = 30;
} elseif ($package->duration == 'yearly') {
$days = 365;
}
if ($activeSub->count() > 0) {
$activationDay = \Carbon\Carbon::parse($activeSub->first()->expire_date);
$expireDay = \Carbon\Carbon::parse($activeSub->first()->expire_date)->addDays($days);
} else {
$activationDay = \Carbon\Carbon::now();
$expireDay = \Carbon\Carbon::now()->addDays($days);
}
@endphp
-
{{ __('Activation Date') }}:
{{ $activationDay->toFormattedDateString() }}
{{ __('Will be notified by mail after Admin accepts the subscription request') }}
-
{{ __('Expire Date') }}:
{{ $expireDay->toFormattedDateString() }}
{{ __('Will be notified by mail after Admin accepts the subscription request') }}
@else
@includeIf("front.$version.package-order")
@endif
@endsection
@section('scripts')
@if (count($gateways) + count($ogateways) > 0)
@endif
@endsection