@extends('layouts.admin') @section('title', 'Plan — ' . ($plan->name ?? 'Details')) @push('styles') @endpush @section('content')

Plan Details

Name {{ $plan->name }}
Slug {{ $plan->slug }}
Module {{ ucfirst($plan->module ?? 'platform') }}
Status {{ $plan->is_active ? 'Active' : 'Inactive' }}
Monthly Price {{ ($plan->price_monthly ?? 0) > 0 ? '₦' . number_format($plan->price_monthly, 2) : 'Free' }}
Yearly Price {{ ($plan->price_yearly ?? 0) > 0 ? '₦' . number_format($plan->price_yearly, 2) : 'Free' }}
@if($plan->description)
Description {{ $plan->description }}
@endif

Features

@php $features = is_array($plan->features) ? $plan->features : json_decode($plan->features ?? '[]', true); @endphp @if(count($features ?? []))
    @foreach($features as $feature)
  • {{ $feature }}
  • @endforeach
@else

No features defined.

@endif

Limits

@php $limits = is_array($plan->limits) ? $plan->limits : json_decode($plan->limits ?? '[]', true); @endphp @if(count($limits ?? []))
    @foreach($limits as $key => $value)
  • {{ $key }} {{ $value }}
  • @endforeach
@else

No limits defined.

@endif
@endsection