@extends('layouts.frontend') @section('title', trans('messages.subscriptions')) @section('page_script') @endsection @section('page_header')

{{ Auth::user()->customer->displayName() }}

@endsection @section('content')
@if ($subscription) @include('elements._notification', [ 'level' => 'warning', 'message' => trans('messages.subscription.ended_intro', [ 'ended_at' => Acelle\Library\Tool::formatDate($subscription->ends_at), 'plan' => $subscription->plan->name, ]) ])

{{ trans('messages.select_plan.wording') }}

@else @include('elements._notification', [ 'level' => 'warning', 'message' => trans('messages.no_plan.title') ])

{{ trans('messages.select_plan.wording') }}

@endif
@if (empty($plans))
@include('elements._notification', [ 'level' => 'danger', 'message' => trans('messages.plan.no_available_plan') ])
@else
@foreach ($plans as $plan)
{{ $plan->name }}

{{ $plan->description }}

{{ trans('messages.plan.starting_at') }}
{{ \Acelle\Library\Tool::format_price($plan->price, $plan->currency->format) }}
{{ $plan->displayFrequencyTime() }}
{{ trans('messages.plan.select') }}
@endforeach
@endif
@endsection