@extends('admin.layouts.app') @section('page-title', 'Categories') @section('body-class', 'categories-preview') @push('styles') @endpush @push('scripts') @endpush @section('content') @php $field = static fn ($key, $fallback = '') => is_scalar(old($key, $fallback)) ? old($key, $fallback) : $fallback; $imageSource = $field('image_source', request()->query('cover_picker') === '1' || $category?->product_image_id ? 'product' : 'upload'); @endphp
{{ $search !== '' ? 'No matching categories.' : 'No categories yet. Create your first category.' }}
@endforelseRenaming keeps the same category ID and link.
No categories in this area
@endforelseSaved configuration. The storefront will use this when its API connection is added.