@extends('layouts.app') @section('title', 'Storefront Menu') @section('page-title', 'Manage Store Menu') @section('content')
Toggle which products appear on your public store
← Back to StoreTip: Toggle items to show/hide them on your public menu. Set a badge like "🔥 Popular" or "New" to highlight items.
| Product | Category | Price (incl GST) | Badge | Order | Available | Show on Store |
|---|---|---|---|---|---|---|
|
@if($product->image)
{{ $product->type === 'service' ? '🔧' : '📦' }}
@endif
{{ $product->name }} {{ $product->sku ?: $product->type }} |
{{ $product->category?->name ?? '—' }} | ₹{{ number_format($product->price_including_gst, 2) }} | show_on_storefront ? 'true':'false' }}, storefront_badge: $event.target.value, display_order: {{ $product->display_order ?? 0 }}}) }).then(()=>saving=false) "> | show_on_storefront ? 'true':'false' }}, display_order: parseInt($event.target.value)}) }) "> | is_available ? 'checked' : '' }} class="w-4 h-4 rounded border-slate-300 text-emerald-600 cursor-pointer" @change=" fetch('{{ route('storefront.admin.menu.toggle', $product) }}', { method:'POST', headers:{'Content-Type':'application/json','X-CSRF-TOKEN':'{{ csrf_token() }}'}, body: JSON.stringify({is_available: $event.target.checked, show_on_storefront: {{ $product->show_on_storefront ? 'true':'false' }}}) }) "> | |
| No products found. Add products first | ||||||