@extends('admin.layouts.master') @section('title', 'Add New Product') @section('css') @endsection @section('content')

Create Product

@csrf
@if ($errors->has('name'))

{{ $errors->first('name') }}

@endif
@error('category_id')

{{ $message }}

@enderror
@if ($errors->has('brand_id'))

{{ $errors->first('brand_id') }}

@endif
@if ($errors->has('unit'))

{{ $errors->first('unit') }}

@endif
@error('label_id')

{{ $message }}

@enderror
@if ($errors->has('cost_price'))

{{ $errors->first('cost_price') }}

@endif
@if ($errors->has('unit_price'))

{{ $errors->first('unit_price') }}

@endif
@if ($errors->has('off_price'))

{{ $errors->first('off_price') }}

@endif
@if ($errors->has('minimum_purchase_quantity'))

{{ $errors->first('minimum_purchase_quantity') }}

@endif
{{-- maximum_purchase_quantity --}}
@if ($errors->has('maximum_purchase_quantity'))

{{ $errors->first('maximum_purchase_quantity') }}

@endif
@error('qrcode')

{{ $message }}

@enderror
@error('specification')

{{ $message }}

@enderror
@if ($errors->has('is_refundable'))

{{ $errors->first('is_refundable') }}

@endif
{{--

this is dummy description

--}} @error('short_description')

{{ $message }}

@enderror
@error('long_description')

{{ $message }}

@enderror
@if ($errors->has('show_purchase_note'))

{{ $errors->first('show_purchase_note') }}

@endif
@error('purchase_note')

{{ $message }}

@enderror
@if ($errors->has('sku'))

{{ $errors->first('sku') }}

@endif
@if ($errors->has('warehouse_no'))

{{ $errors->first('warehouse_no') }}

@endif
{{--
@if ($errors->has('weight'))

{{ $errors->first('price') }}

@endif
--}}
@if ($errors->has('weight'))

{{ $errors->first('weight') }}

@endif
@if ($errors->has('quantity'))

{{ $errors->first('quantity') }}

@endif
@error('discount')

{{ $message }}

@enderror
@error('discount_type')

{{ $message }}

@enderror
@error('discount_start_date')

{{ $message }}

@enderror
@error('discount_end_date')

{{ $message }}

@enderror
Product Gallery
Thumbnail

Add Product thumbnail Image.

@error('thumbnail_image')

{{ $message }}

@enderror
Product Gallery

Add Product Gallery Images.

@error('product_images')

{{ $message }}

@enderror
Wholesale Price
@if ($errors->has('is_wholesale'))

{{ $errors->first('is_wholesale') }}

@endif
@php $oldMinQuantity = old('min_quantity', []); $oldMaxQuantity = old('max_quantity', []); $oldPricePerUnit = old('price_per_unit', []); $count = max(count($oldMinQuantity), count($oldMaxQuantity), count($oldPricePerUnit)); @endphp @for ($i = 0; $i < $count; $i++)
@endfor
Product Attributes
@php $oldTitle = old('title', []); $oldValue = old('value', []); $count = max(count($oldTitle), count($oldValue)); @endphp @for ($i = 0; $i < $count; $i++)
@endfor
Publish
@error('status')

{{ $message }}

@enderror
@error('visibility')

{{ $message }}

@enderror
Product Tags
@error('tags')

{{ $message }}

@enderror
Specification
@error('pdf_specification')

{{ $message }}

@enderror
{{--
Product Categories

Add NewSelect product category

@error('category_id')

{{ $message }}

@enderror
--}} {{--
Label
@error('label_id')

{{ $message }}

@enderror
--}}
Product External Info
@error('external_link')

{{ $message }}

@enderror
@error('external_link_button_name')

{{ $message }}

@enderror
{{--
@error('qrcode')

{{ $message }}

@enderror
--}}
Video Provider
@error('video_provider')

{{ $message }}

@enderror
@error('video_url')

{{ $message }}

@enderror
Meta Data
@error('meta_title')

{{ $message }}

@enderror
@error('meta_keywords')

{{ $message }}

@enderror
@error('meta_image')

{{ $message }}

@enderror
@error('meta_description')

{{ $message }}

@enderror
@endsection @section('js') @endsection