@extends('layouts.auth') @section('title') {{__("words.Promo Page")}} @endsection @push('page_style') @endpush @section('content') @php $location = Stevebauman\Location\Facades\Location::get(isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? (($_SERVER['HTTP_X_FORWARDED_FOR'] == '127.0.0.1') ? '180.188.248.218' : $_SERVER['HTTP_X_FORWARDED_FOR']) : '180.188.248.218') ; // \Log::info($_SERVER['REMOTE_ADDR']); \Log::emergency($location); @endphp
{{$plan->getCategory()}}
@php echo $plan->getDescription($plan->category,false); @endphp
@if ( $subscription->status == \App\Models\Subscription::STATUS_ACTIVE)

{{__("words.Promotion Schedule")}}

@php $startdate = Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $subscription->created_at, 'UTC'); $startdate->setTimezone($location->timezone); @endphp

{{__("words.Starting Date")}} :{{date('M-d-Y/ H:i:s',strtotime($startdate));}}

@php $days = $subscription->plan->days; $endDated = Date('Y-m-d H:i:s',strtotime($subscription->created_at."+ $days days")); $endDates = Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $endDated, 'UTC'); $endDates->setTimezone($location->timezone); @endphp {{__("words.End Date")}} : {{date('M-d-Y/ H:i:s',strtotime($endDates));}}
@endif @if ( $subscription->status == \App\Models\Subscription::STATUS_PENDING)
Status : Pending
@endif @if ($subscription->status == \App\Models\Subscription::STATUS_UNDERPAYMENT)
Status : Underpayment
The merchant received your payment but the amount received was less than what was requested.
Please contact the merchant at payments@ambayo.com with your order code to resolve your payment.
Your order reference code is : {{!empty($subscription->code) ? $subscription->code : $subscription->stripe_subscription_id}}
@endif @if ($subscription->status == \App\Models\Subscription::STATUS_OVERPAYMENT)
Status : Overpayment
The merchant received your payment but the amount received was more than what was requested.
Please contact the merchant at payments@ambayo.com with the following order code to resolve your payment.
Your order reference code is : {{!empty($subscription->code) ? $subscription->code : $subscription->stripe_subscription_id}}
@endif
@endsection @push('page_script') @endpush