@extends('layouts.admin') @section('title', 'Plan Details') @section('content')

Plan Details

Edit Plan Back to Plans
@include('partials.alerts')
{{ $plan->name }}
{{ $plan->active ? 'Active' : 'Inactive' }}

Plan Code

{{ $plan->plan_code }}

Created On

{{ $plan->created_at->format('M d, Y h:i A') }}

Amount

{{ $plan->formatted_amount }}

Currency

{{ $plan->currency }}

Billing Interval

{{ $plan->formatted_interval }}

Invoice Limit

{{ $plan->invoice_limit > 0 ? $plan->invoice_limit : 'Unlimited' }}

Send Invoices

{{ $plan->send_invoices ? 'Yes' : 'No' }}

Send SMS

{{ $plan->send_sms ? 'Yes' : 'No' }}

@if($plan->description)

Description

{{ $plan->description }}

@endif
Active Subscriptions
@if($plan->subscriptions()->active()->count() > 0)

{{ $plan->subscriptions()->active()->count() }} active subscriptions

View Subscriptions @else

No active subscriptions for this plan.

@endif
@endsection