@extends('layouts.app') @section('content') @php $planRows = old('plans', [[ 'name' => 'Standard', 'description' => '', 'tier' => 'standard', 'price_usd' => '', 'seat_price_usd' => '', 'price_sats' => '', 'billing_period' => 'monthly', 'stripe_price_id' => '', 'is_active' => true, ]]); @endphp

Create Product

@csrf
@if ($errors->has('plans'))
{{ $errors->first('plans') }}
@endif

Pricing Options

@foreach ($planRows as $index => $plan) @include('admin.product._plan_fields', [ 'index' => $index, 'plan' => $plan, 'heading' => old('is_tiered', true) ? 'Tier ' . ($index + 1) : 'Price', ]) @endforeach
@endsection @section('script') @endsection