@extends('layouts.popup.small')
@section('title')
{{ trans('messages.customer.admin_area') }}
@endsection
@section('content')
{!! trans('messages.current_login_as', ["name" => Auth::user()->customer->displayName()]) !!}
auto_awesome_mosaic {{ trans('messages.subscription_of', ['name' => Auth::user()->customer->displayName()]) }}
@if (isset($subscription))
-
{{ trans('messages.plan_name') }}
{{ $subscription->plan->name }}
-
{{ trans('messages.status') }}
@switch($subscription->status)
@case(Acelle\Model\Subscription::STATUS_ACTIVE)
{{ trans('messages.subscription.status.active') }}
@break
@case(Acelle\Model\Subscription::STATUS_NEW)
@if ($subscription->getUnpaidInvoice())
{{ trans('messages.subscription.status.wait_for_payment') }}
@endif
@break
@default
{{ trans('messages.subscription.status.' . $subscription->status) }}
@endswitch
-
{{ trans('messages.subscription.start_from') }}
{{ $subscription->created_at->diffForHumans() }}
@if ($next_billing_date)
-
{{ trans('messages.subscription.next_billing_date') }}
{{ Auth::user()->customer->formatDateTime($next_billing_date, 'datetime_full') }}
@endif
@else
{{ trans('messages.customer_has_no_plan') }}
@endif
@endsection