@extends('layouts.admin') @section('title',__('adminstaticwords.ChangeSubscription')) @section('content')

reply {{__('adminstaticwords.ChangeOrAddSubscription')}}

{!! Form::open(['method' => 'POST', 'action' => 'UsersController@change_subscription', 'files' => true]) !!}
{{__('adminstaticwords.UserName')}}: {{$user->name}}
@php $planname='not exist'; if (isset($plans)) { if (isset($last_payment->plan->name) && !is_null($last_payment)){ $planname=$last_payment->plan->name; $planid = $last_payment->plan->id; }else{ if (isset($user_stripe_plan) && !is_null($user_stripe_plan)) { $planname=$user_stripe_plan->name; $planid = $user_stripe_plan->id; } } }else{ $planname='not exist'; } @endphp
{{__('adminstaticwords.LastSubscriptionPlan')}}: {{$planname}}
@foreach ($user->paypal_subscriptions as $pu) @php $test=0; $status =App\Package::select('status')->where('id',$pu->package_id)->get(); foreach ($status as $key => $value) { $test=$value->status; } @endphp @if($test == 0)
{{__('adminstaticwords.UserPlanNotExist')}}
@endif @endforeach
{!! Form::close() !!}
@endsection