@extends('layouts.master') @section('title',__('Change Subscription')." ". $user->name) @section('breadcum') @endsection @section('maincontent')
@if ($errors->any()) @endif
{{ __('Back') }}
{{__('Change Or Add Subscription')}}
{!! Form::open(['method' => 'POST', 'action' => 'UsersController@change_subscription', 'files' => true]) !!}
{{__('User Name')}}: {{$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
{{__('Last Subscription Plan')}}: {{$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 == 1)
{{__('User Plan Not Exist')}}
@endif @endforeach
{!! Form::close() !!}
@endsection