@extends('layouts.admin') @section('content')

Subscription Plans

Subscription Plans
@foreach ($subsciption_plans as $plan) @endforeach
Sl No Key Name Type Interval Price Currency Features Active Terms Actions
{{ $loop->iteration }} {{ $plan->key }} {{ $plan->name }} {{ $plan->type }} {{ $plan->interval }} {{ $plan->price }} {{ $plan->currency }} {{ is_array($plan->features) ? implode(', ', $plan->features) : implode(', ', json_decode($plan->features, true) ?? []) }} @if($plan->active) Active @else Inactive @endif @php $latestTerms = $plan->terms->sortByDesc('version')->first(); @endphp @if($latestTerms) @else No terms @endif
@endsection @section('script') @endsection