@php $u = auth()->user(); $cfg = $u?->current_workspace_id ? \App\Models\WaProviderConfig::query()->forWorkspace($u->current_workspace_id)->first() : null; $sf = $u?->current_workspace_id ? \App\Models\WaStorefront::where('workspace_id', $u->current_workspace_id)->first() : null; @endphp
@include('user.store._sidebar', ['current' => 'products', 'cfg' => $cfg, 'sf' => $sf])
{{ __('Store / Products') }}

{{ __('Catalog') }}

{{ __('Add product') }}
@if (session('status'))
{{ session('status') }}
@endif
@forelse ($rows as $p) @empty @endforelse
{{ __('Image') }} {{ __('Name') }} {{ __('SKU') }} {{ __('Price') }} {{ __('Stock') }} {{ __('Actions') }}
@if ($p->image_url) @else @endif
{{ $p->name }}
@if ($p->description)
{{ \Illuminate\Support\Str::limit($p->description, 80) }}
@endif
{{ $p->sku ?: '—' }} {{ $p->price_display }} @if ($p->in_stock) In stock @else Out @endif Edit @csrf @method('DELETE')
{{ __('No products yet') }}

{{ __('Click "Add product" to create your first one.') }}

@if ($rows->hasPages())
{{ $rows->links() }}
@endif