@extends('admin.layouts.main') @section('title', $product->exists ? 'Edit Product' : 'Create Product') @section('menu', 'Products') @section('content')
@csrf @if($product->exists) @method('PUT') @endif
Product Details
@if ($errors->has('name')){{ $errors->first('name') }}@endif
Pricing
@foreach($currencies as $currency)
{{ $currency->name }} ({{ $currency->code }})
@foreach($billingCycles as $cycle) @php $existing = $product->exists ? $product->pricing->where('billing_cycle_id', $cycle->id)->where('currency_code', $currency->code)->first() : null; @endphp @endforeach
Billing CyclePriceRenewalSetup FeeCost
{{ $cycle->name }}
@endforeach
Options
Storefront & Admin — visible on storefront, customers can order.
Admin Only — hidden from storefront, only admin can create orders.
is_active ?? true) ? 'checked' : '' }}>
is_featured) ? 'checked' : '' }}>
requires_domain) ? 'checked' : '' }}>
Publish
@endsection