Deploy Ladill Merchant / deploy (push) Successful in 30s
- New Products page (merchant.products.*) with full CRUD proxied to the Ladill CRM products API via a new CrmClient + config/crm.php (owner-scoped, type=product). - Sidebar gains a Products entry. - The new storefront form loads the merchant's catalog: each shop/menu section gets an "Add from products…" picker that drops a CRM product in as an item (name, price, description). Catalog fetch is resilient — empty if CRM is down. Wires CRM_API_URL + CRM_API_KEY_MERCHANT on the merchant env (matches CRM). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
1.0 KiB
PHP
20 lines
1.0 KiB
PHP
<x-user-layout>
|
|
<x-slot name="title">New product</x-slot>
|
|
<div class="mx-auto max-w-2xl space-y-6">
|
|
<div>
|
|
<a href="{{ route('merchant.products.index') }}" class="inline-flex items-center gap-1 text-sm text-slate-500 hover:text-slate-700">
|
|
<svg class="h-4 w-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/></svg>
|
|
All products
|
|
</a>
|
|
<h1 class="mt-2 text-xl font-semibold text-slate-900">New product</h1>
|
|
<p class="mt-1 text-sm text-slate-500">Added to your Ladill CRM catalog and available on every storefront.</p>
|
|
</div>
|
|
|
|
<form method="post" action="{{ route('merchant.products.store') }}" class="space-y-5">
|
|
@csrf
|
|
@include('merchant.products._form', ['product' => []])
|
|
<button type="submit" class="btn-primary w-full">Create product</button>
|
|
</form>
|
|
</div>
|
|
</x-user-layout>
|