@extends('backend.template.layouts.template-base') @section('title', 'Product Management - Create New Section') @section('content') Create New Section @csrf {{-- ── Section Info ──────────────────────────────────────────────── --}} {{-- Row 1: Category | Section Name | Section Type | Status --}} Category * @if ($preselectedCategory) {{-- Pre-selected from category row — disabled dropdown --}} {{ $preselectedCategory->name }} Category is locked. You can change it from Edit Section. @else Select @foreach ($categories as $cat) {{ $cat->name }} @endforeach @endif Section Name * Section Type * Select Carousel Category Tabs Grid Combined Grouped Cards Layout Banner Section Status By default turns to Inactive, if no products added. Active Inactive {{-- Category selection display — hidden when category is locked --}} @if (!$preselectedCategory) Category selection No categories selected yet! On selecting multiple categories, the section will be displayed in all selected categories. @endif {{-- Background Image + Short Description --}} Background Image (optional) Click to Upload or drag and drop Upload image format should be only PNG, JPG or JPEG.Also, max file size should be 10MB Short Description (optional) {{-- ── Add Product ───────────────────────────────────────────────── --}} {{-- Toggle header --}} Add Product? You can add products from the product list to active the section in the application. Section won't visible in application until product get added. {{-- Product section (toggled) --}} {{-- Search --}} {{-- Search results --}} Select Image Product Name Group {{-- Added products table --}} S.no Product Group Product Img Product Name Variant & Units Action {{-- Empty state --}} No products added yet Use the search bar above to find and add products to this section. {{-- ── SEO Settings ───────────────────────────────────────────────── --}} SEO Settings Image Alt Text * Meta Title * Meta Description * Schema * H1 * {{-- Hidden scheduling inputs populated from the confirm modal --}} Cancel Create Section {{-- Confirm Create Section Modal --}} Create Section? {{-- Empty-section warning (shown only when no products added) --}} You're creating a section without any products. This section will be added to the selected categories, but it will not be visible in the application until products are added. Add products later to make this section visible to users. {{-- Duration toggle --}} Set Duration Schedule when this section should be active (optional). From Date * Please select a from date. To Date * Please select a to date. @endsection @section('scripts') @endsection
No categories selected yet!
Click to Upload or drag and drop
You can add products from the product list to active the section in the application. Section won't visible in application until product get added.
No products added yet
You're creating a section without any products.
This section will be added to the selected categories, but it will not be visible in the application until products are added.
Add products later to make this section visible to users.
Schedule when this section should be active (optional).