@extends('admin.layouts.app') @section('title', 'Add New Product') @section('breadcrumb') @endsection @section('page-header')

{{ __('Add New Product') }}

{{ __('Create a new product with complete SEO optimization') }}

{{ __('Back to Products') }}
@endsection @push('styles') @endpush @section('content')
@csrf {{-- Language Tabs for Multi-language Support --}}
@foreach($locales as $localeCode => $locale)
{{-- Basic Product Information --}}
{{ __('Basic Information') }} ({{ $locale['native'] }})
@error('translations.'.$localeCode.'.name')
{{ $message }}
@enderror
0/255 characters
{{-- ✅ SIMPLE: Replace your slug field with this enhanced version --}}
{{ __('Leave empty to auto-generate from product name') }}
@error('translations.'.$localeCode.'.short_description')
{{ $message }}
@enderror
0/160 {{__("characters (recommended for search snippets)")}}
@error('translations.'.$localeCode.'.description')
{{ $message }}
@enderror
{{-- SEO Meta Information --}}
{{ __('SEO Optimization') }} ({{ $locale['native'] }})
{{-- SEO Score Indicator --}}
SEO Score: 0/100
Needs improvement
0/60 {{__("characters (optimal: 50-60)")}}
{{__("Separate keywords with commas (3-5 keywords recommended)")}}
0/160 {{__("characters (optimal: 150-160)")}}
{{-- Product Features & Specifications --}}
{{ __('Features & Specifications') }} ({{ $locale['native'] }})
{{__("One feature per line, use bullet points")}}
{{__("Format: Property: Value (one per line)")}}
@endforeach
{{-- Product Details --}}
{{ __('Product Details') }}
@error('sku')
{{ $message }}
@enderror
@error('brand')
{{ $message }}
@enderror
@error('model')
{{ $message }}
@enderror
{{-- Global Product Data --}} {{-- ✅ Enhanced Pricing Section with VAT UX --}}
{{ __('Pricing & VAT') }}
SAR
@error('price')
{{ $message }}
@enderror {{ __('Price before adding 15% VAT') }}
SAR
@error('sale_price')
{{ $message }}
@enderror {{ __('Discounted price (optional)') }}
{{-- ✅ Customer Price Display --}} {{-- Cost Price and Profit Calculation --}}
SAR
@error('cost_price')
{{ $message }}
@enderror
%
{{ __('Fixed 15% VAT for Saudi Arabia') }}
{{-- Profit Margin Display --}}
{{ __('Profit Margin') }}
0%
{{ __('Profit Amount') }}
0.00 {{ __('SAR') }}
{{ __('Markup') }}
0%
{{-- Inventory --}}
{{ __('Inventory Management') }}
@error('quantity')
{{ $message }}
@enderror
@error('min_quantity')
{{ $message }}
@enderror
@error('weight')
{{ $message }}
@enderror
@error('categories')
{{ $message }}
@enderror
{{-- Image Upload Section --}}
{{ __('Product Images & SEO') }}
@error('images')
{{ $message }}
@enderror @error('images.*')
{{ $message }}
@enderror {{__("Recommended: 800x800px minimum, JPG/PNG format")}}
@error('image_alt')
{{ $message }}
@enderror
{{__("0/125 characters (optimal for SEO)")}}

{{__("Upload images to see preview")}}

{{-- ✅ ADD: New Sale Period Section (add before your "Visibility & Status" section) --}}
{{ __('Sale Period Management') }}
{{-- Status checkboxes --}}
{{ __('Visibility & Status') }}
{{-- ✅ ADD: Product Status row --}}
@error('status')
{{ $message }}
@enderror {{ __('Draft products are not visible to customers') }}
{{-- Form Actions --}}
{{ __('Cancel') }}
@endsection @push('scripts') @endpush