Show Shopify product ID as read-only field next to product name
Deploy / deploy (push) Successful in 14s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 18:24:44 +02:00
1 parent 3301a1e9b2
commit 656b105cb9
1 file changed
+6
@@ -41,6 +41,12 @@ class ProductResource extends Resource {
Forms\Components\TextInput::make('title')
->label('Name')
->required(),
Placeholder::make('shopify_product_id')
->label('Shopify ID')
->content(fn ($record) => $record?->shopify_product_id
? new HtmlString('<span class="font-mono text-sm">' . e($record->shopify_product_id) . '</span>')
: new HtmlString('<span class="text-sm text-gray-400 italic">Noch nicht in Shopify erstellt</span>')
),
FileUpload::make('images')
->label('Bilder')
->multiple()