@extends('layouts.admin') @section('content')
| 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)
|