@extends('layouts.admin') @section('title', __('Plans')) @section('page-title', __('Plans')) @section('content') @if(isset($pricingSettings))
@csrf
{{ __('Pricing Section') }}
{{ __('Show all plans together') }}
{{ __('Save Pricing Section') }}
@endif

{{ __('Subscription Plans') }}

@admincan('admin.plans.create') {{ __('Create Plan') }} @endadmincan
@forelse($plans as $plan) @empty @endforelse
{{ __('Name') }} {{ __('Price') }} {{ __('Billing') }} {{ __('Customer Group') }} {{ __('Stripe Price') }} {{ __('Active') }} {{ __('Popular') }} {{ __('Actions') }}
{{ $plan->name }} {{ $plan->currency }} {{ number_format($plan->price, 2) }} {{ ucfirst($plan->billing_cycle) }} {{ $plan->customerGroup?->name ?? '—' }} {{ $plan->stripe_price_id ?? '—' }} {{ $plan->is_active ? __('Active') : __('Disabled') }} {{ $plan->is_popular ? __('Yes') : __('No') }}
@admincan('admin.plans.edit') {{ __('Edit') }} @endadmincan @admincan('admin.plans.delete')
@csrf @method('DELETE') {{ __('Delete') }}
@endadmincan
{{ __('No plans found.') }}
@if($plans->hasPages())
{{ $plans->links() }}
@endif
@endsection