@extends('profile.index') @section('profile-content') @include('include.message')
@csrf
{{ __('Plan') }}
{{ $user->plan->name }}
@if (!$user->planOnDefault()) @if ($user->plan_payment_gateway)
{{ __('Gateway') }}
{!! ucwords($user->plan_payment_gateway) !!}
@endif @if ($user->plan_amount && $user->plan_currency && $user->plan_interval)
{{ __('Amount') }}
{{ formatMoney($user->plan_amount, $user->plan_currency) }} {{ $user->plan_currency }} /
{{ $user->plan_interval == 'month' ? __('Month') : __('Year') }}
@endif @if ($user->plan_recurring_at)
{{ __('Recurring at') }}
{{ $user->plan_recurring_at }}
@endif @if ($user->plan_trial_ends_at && $user->plan_trial_ends_at->gt(Carbon\Carbon::now()))
{{ __('Trial ends at') }}
{{ $user->plan_trial_ends_at }}
@endif @if ($user->plan_ends_at)
{{ __('Ends at') }}
{{ $user->plan_ends_at }}
@endif @endif
@if ($user->plan_recurring_at)
{{ __('Cancel') }}
@endif @if (Auth::user()->role != 'admin')
{{ __('Upgrade') }}
@endif
{{ __('Cancel') }}
{{ __('You\'ll continue to have access to the features you\'ve paid for until the end of your billing cycle.') }}
{{ __('Are you sure you want to cancel :name?', ['name' => $user->plan->name]) }}
@endsection