@extends('layouts.admin') @section('title', $plan->exists ? __('admin.plans.edit') : __('admin.plans.create')) @php $editing = $plan->exists; $action = $editing ? lroute('admin.plans.update', $plan) : lroute('admin.plans.store'); $field = 'w-full rounded-lg border border-black/10 bg-white px-3 py-2 text-sm focus:border-brand focus:outline-none focus:ring-2 focus:ring-brand/20'; $label = 'mb-1 block text-sm font-semibold text-ink'; $featuresText = old('features_text', $editing ? implode("\n", (array) $plan->features) : ''); @endphp @section('content')

{{ $editing ? __('admin.plans.edit') : __('admin.plans.create') }}

{{ __('admin.actions.back') }}
@csrf @if ($editing) @method('PUT') @endif
@error('code')

{{ $message }}

@enderror

{{ __('admin.plans.name_hint') }}

@error('name')

{{ $message }}

@enderror

{{ __('admin.plans.price_hint') }}

@error('price')

{{ $message }}

@enderror
@error('currency')

{{ $message }}

@enderror
@error('billing_interval')

{{ $message }}

@enderror

{{ __('admin.plans.features_hint') }}

@error('features_text')

{{ $message }}

@enderror
@error('status')

{{ $message }}

@enderror
@error('sort_order')

{{ $message }}

@enderror
{{ __('admin.actions.cancel') }}
@endsection