@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 Store

Tip: Toggle items to show/hide them on your public menu. Set a badge like "🔥 Popular" or "New" to highlight items.

@forelse($products as $product) @empty @endforelse
Product Category Price (incl GST) Badge Order Available Show on Store
@if($product->image) @else
{{ $product->type === 'service' ? '🔧' : '📦' }}
@endif

{{ $product->name }}

{{ $product->sku ?: $product->type }}

{{ $product->category?->name ?? '—' }} ₹{{ number_format($product->price_including_gst, 2) }} 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
@if($products->hasPages())
{{ $products->links() }}
@endif
@endsection