@extends('layouts.admin.master') @section('head') @endsection @section('title') Bargain Book Hut — Add New Product @endsection @section('body')
Catalogue› Products› Add New Product

Add New Product 📖 Book

Fill in product details, categories, subcategories and deal tags

@csrf {{-- ── BASIC INFORMATION ── --}}

📝 Basic Information

@error('title')
{{ $message }}
@enderror
Must be exactly 13 digits — system will check for duplicates
@error('barcode')
{{ $message }}
@enderror
Numbers only · ISBN-13 standard — Auto-syncs from barcode in real-time
@error('isbn')
{{ $message }}
@enderror
{{-- AUTHORS --}}
🔍
Type to search authors…
Search and select one or more authors.
@error('authors')
{{ $message }}
@enderror
0 / 2000
{{-- ── CATEGORY & SUBCATEGORY ── --}}

🗂️ Category & Subcategory

Both multi-select
🔍
Loading…
Select all categories this book belongs to.
Select a category above first
Grouped by parent category. Pick as many as apply.
{{-- ── COLLECTIONS ── --}}

🏷️ Collections

Click to toggle
Apply one or more collections. These appear as badges on product cards.
@foreach($Collections as $coll) 🏷️ {{ $coll->name }} @endforeach
🔵 Pre-Order Details
{{-- ── SCHEDULER ── --}}

📅 Tag Scheduler

Schedule this book under a tag on a future date
This book will go live under the selected tag on the chosen date.
No scheduled tags yet — add one below
The book will be linked to the selected tag on the chosen date automatically.
{{-- ── PRICING & STOCK ── --}}

💰 Pricing & Stock

Book Type
@error('book_type_id')
{{ $message }}
@enderror
Pricing — shared across channels
Cover price on book
₹
₹
Enter price → auto % fills
%
Enter % → auto price fills
₹
Must be less than MRP
💸 Discount Breakdown
—
You Save
—
Discount %
—
Our Price
Discount0% off MRP
—
{{-- ── CHANNELS & STOCK ── --}}
Channels & Stock

One SKU is shared across both channels. Activate one or both — each tracks its own stock bucket independently. Stock qty is always saved even when a channel is inactive, so data isn't lost on toggle.

{{-- RETAIL CHANNEL CARD --}}
🛍️ Retail
Storefront · B2C orders
{{ old('channel_retail') ? 'Active' : 'Inactive' }}
Saved regardless of active state · syncs from store API or enter manually
{{-- WHOLESALE CHANNEL CARD --}}
🏭 Wholesale
B2B portal · bulk orders
{{ old('channel_wholesale') ? 'Active' : 'Inactive' }}
Saved regardless of active state · separate bucket from retail
✅ Both channels active — same SKU, same price, separate stock buckets. Orders will be tagged channel_source = retail | wholesale
SKU active on:  ·  same SKU · same price · separate stock buckets
{{-- STOCK STATUS --}}
Stock Status
{{-- BOOK SPECS --}}
Book Specs
Physical Dimensions
cm
cm
cm
g
{{-- ══════════ PRODUCT IMAGES (FRONT / BACK / INTERNAL) ══════════ --}}

🖼️ Product Images

PNG, JPG, WEBP · Max 5MB each
{{-- FRONT COVER → saved to img_path --}}
FRONT
📘 Click to upload
front cover
@error('front_image')
{{ $message }}
@enderror
{{-- BACK COVER → saved to back_imgpath --}}
BACK
📕 Click to upload
back cover
@error('back_image')
{{ $message }}
@enderror
{{-- INTERNAL IMAGES → saved to internalimages table --}}
Internal Images (up to 6)
INTERNAL
📖
Add inside pages / spine / extras
Select multiple files at once
@error('internal_images.*')
{{ $message }}
@enderror
{{-- ── SEO & METADATA ── --}}

🔍 SEO & Metadata

0 / 160
Free-text search keywords — completely separate from Collections.
Preview
bargainbookhutonline.com/books/your-product-slug
Product Title — Bargain Book Hut
Your meta description will appear here.
{{-- /col-main --}} {{-- ── SIDEBAR ── --}}

🚦 Publish Settings

Status Draft
Visibility *
Publish Date
Completion
Form Progress0%

📋 Product Summary

Authors—
Categories—
Subcategories—
Collections—
Keyword Tags—
Channels—
Retail Qty0
Wholesale Qty0
Discount—
Images—
Stock In Stock

💡 Pro Tips

✅Upload a front cover, a back cover and internal pages / spine
👥List all authors for co-authored books
🗂️Multi-category products get 2× more views
🔥Hot + Sale collections together maximise badge visibility
💰Showing MRP vs price boosts conversions
📦Enter weight & dimensions for accurate shipping
📡Both channels can be active simultaneously — same SKU, separate stock
🔎Add keyword tags to improve search discoverability
{{-- /col-side --}}
{{-- /content --}}
{{-- /bbh-wrap --}}
{{-- /pcoded-content --}}
✅ Action completed
@endsection