@extends('frontend::layouts.master') @section('title') {{ __('frontend.subscription_plan') }} @endsection @section('content')

{{ __('frontend.subscription_plan') }}

@if (!empty($activeSubscriptions))
{{ $activeSubscriptions->name }}

{{ __('frontend.expiring_on') }} {{ formatDate($activeSubscriptions->end_date) }}

@else
{{ __('frontend.no_active_plan') }}

{{ __('frontend.not_active_subscription') }}

@endif
@if (!empty($activeSubscriptions)) @else @endif
@foreach ($plans as $plan) @continue(strtolower($plan->duration ?? '') !== 'month')
@include('frontend::components.subscription_plan_card', [ 'plan' => $plan, 'currentPlanId' => $currentPlanId, ])
@endforeach
@foreach ($plans as $plan) @continue(strtolower($plan->duration ?? '') !== 'year')
@include('frontend::components.subscription_plan_card', [ 'plan' => $plan, 'currentPlanId' => $currentPlanId, ])
@endforeach
@endsection