@extends('layouts.admin.master') @section('head') @endsection @section('title') Bargain Book Hut — Edit Product @endsection @section('body')
{{-- TOP BAR --}}
Catalogue› Products› Edit #{{ $booktype->id }}
← Back 📋 Duplicate

Edit Product ✏️ Editing #{{ $booktype->id }}

Updating: {{ $product->name }}

ℹ️ Front, back and internal images are managed separately. Leave any section empty to keep the existing image.
@csrf {{-- ── BASIC INFORMATION ──────────────────────────────────────────── --}}

📝 Basic Information

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

🗂️ Category & Subcategory

Both multi-select
🔍
Loading…
Select all categories this book belongs to.
{{-- ✅ ERROR DISPLAY --}} @error('categories')
⚠️ {{ $message }}
@enderror
Select a category above first
Grouped by parent category. Pick as many as apply.
{{-- ── DEALS & TAGS ────────────────────────────────────────────────── --}}

🏷️ Deals & Promotional Tags

Click to toggle
free_delivery) ? 'checked' : '' }}>
Apply one or more tags. These appear as badges on product cards.
@foreach($deals as $deal) 🏷️ {{ $deal->content }} @endforeach
{{-- ── SCHEDULER ───────────────────────────────────────────────────── --}}

📅 Tag Scheduler

Schedule this book under a tag on a future date
Add future scheduled tags. Existing schedules shown below.
@if(isset($scheduledTags) && $scheduledTags->count())
Existing Schedules
@foreach($scheduledTags as $st)
🏷️ {{ $st->tag_label }} {{ \Carbon\Carbon::parse($st->scheduled_date)->format('d M Y') }} {{ $st->processed ? '✓ Done' : 'Pending' }}
@endforeach
@endif
No new scheduled tags — add one below
{{-- ── PRICING & STOCK ─────────────────────────────────────────────── --}}

💰 Pricing & Stock

Book Type
Pricing
Cover price on book
₹
Your listed price
₹
Enter price → auto % fills
%
Enter % → auto price fills
₹
Must be less than MRP
💸 Discount Breakdown
—
You Save
—
Discount %
—
Our Price
Our Price0% off MRP
—
Stock
Book Specs
Physical Dimensions
cm
Book width / breadth
cm
Spine thickness
cm
Book height (spine length)
g
Book weight in grams (used for shipping calculation)
{{-- ── PRODUCT IMAGES ──────────────────────────────────────────────── --}}

🖼️ Product Images

Each section is independent — leave empty to keep existing
{{-- FRONT COVER --}}
Front Cover replaceable
Current
@if($booktype->img_path)
Front Cover Front
@else
None
@endif
📸
Click to replace front image
1 file only · leave empty to keep current
{{-- BACK COVER --}}
Back Cover replaceable
Current
@if($booktype->back_imgpath)
Back Cover Back
@else
None
@endif
📸
Click to replace back image
1 file only · leave empty to keep current
{{-- INTERNAL IMAGES --}}
Internal Images uploading replaces ALL existing
@if(isset($internalImages) && $internalImages->count())
Existing internal images ({{ $internalImages->count() }})
@foreach($internalImages as $img)
Internal Internal
@endforeach
⚠️ Uploading new internal images will permanently delete all {{ $internalImages->count() }} existing internal images and replace them. Leave empty below to keep them.
@else
No internal images yet.
@endif
📸
Click or drag to upload internal images
Multiple files allowed · Max 5MB each · Leave empty to keep existing
{{-- ── SEO ─────────────────────────────────────────────────────────── --}}

🔍 SEO & Metadata

Recommended: 50–60 characters
0 / 160
Preview
bargainbookhutonline.com/books/{{ $booktype->slug ?? 'your-product-slug' }}
{{ $product->name }} — Bargain Book Hut
{{ $booktype->meta_description ?? 'Your meta description will appear here.' }}
{{-- /col-main --}} {{-- ── SIDEBAR ─────────────────────────────────────────────────────────── --}}

🚦 Publish Settings

Status Published
Visibility
Publish Date
Progress
Form Completion0%
← Back to List

📋 Product Summary

ID#{{ $booktype->id }}
Authors—
Categories—
Subcategories—
Deal Tags—
Discount—
Dimensions {{ $booktype->height ? $booktype->height.'×'.($booktype->breadth ?? '–').'×'.($booktype->width ?? '–').' cm' : '—' }}
Stock {{ ($booktype->stock_status ?? 'in') === 'in' ? 'In Stock' : 'Out of Stock' }}
{{-- /col-side --}}
{{-- /content --}}
@endsection