Show Shopify product ID as read-only field next to product name
Deploy / deploy (push) Successful in 14s
Deploy / deploy (push) Successful in 14s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
3301a1e9b2
commit
656b105cb9
1 file changed
+6
@@ -41,6 +41,12 @@ class ProductResource extends Resource {
|
|||||||
Forms\Components\TextInput::make('title')
|
Forms\Components\TextInput::make('title')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->required(),
|
->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')
|
FileUpload::make('images')
|
||||||
->label('Bilder')
|
->label('Bilder')
|
||||||
->multiple()
|
->multiple()
|
||||||
|
|||||||
Reference in new issue
Block a user