<?php $__env->startSection('content'); ?>


    <div class="row mb-35">
        <div class="page-title d-flex justify-content-between align-items-center">
            <h4><?php echo e($page_title ?? ''); ?></h4>
            <div class="language-changer">
                <span><?php echo e(translate('Language Translation')); ?>: </span>
                <?php $__currentLoopData = \App\Models\Language::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($lang == $language->code): ?>
                        <img src="<?php echo e(asset('assets/img/flags/' . $language->code . '.png')); ?>" class="mr-3" height="16">
                    <?php else: ?>
                        <a href="<?php echo e(route('products.edit', ['id' => $productSingle->id, 'lang' => $language->code])); ?>"><img
                                src="<?php echo e(asset('assets/img/flags/' . $language->code . '.png')); ?>" class="mr-3"
                                height="16"></a>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <a href="<?php echo e(route('products.list')); ?>" class="eg-btn btn--primary back-btn"> <img
                    src="<?php echo e(asset('backend/images/icons/back.svg')); ?>" alt="<?php echo e(translate('Go Back')); ?>">
                <?php echo e(translate('Go Back')); ?></a>
        </div>
    </div>
    <form action="<?php echo e(route('products.update', $productSingle->id)); ?>" method="post" enctype="multipart/form-data">
        <input name="_method" type="hidden" value="PATCH">
        <input type="hidden" name="lang" value="<?php echo e($lang); ?>">
        <?php echo csrf_field(); ?>
        <div class="row">


            <div class="col-lg-7">
                <div class="eg-card product-card">

                    <div class="form-inner mb-35">
                        <label><?php echo e(translate('Name')); ?> <span class="text-danger">*</span></label>
                        <input type="text" class="username-input"
                            value="<?php echo e(old('name', $productSingle->getTranslation('name', $lang))); ?>" name="name"
                            placeholder="<?php echo e(translate('Enter Name')); ?>">
                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="error text-danger"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-inner mb-35">
                        <label><?php echo e(translate('SKU')); ?> <span class="text-danger">*</span></label>
                        <input type="text" class="username-input" value="<?php echo e(old('sku', $productSingle->sku)); ?>"
                            name="sku" placeholder="<?php echo e(translate('Enter SKU')); ?>">
                        <?php $__errorArgs = ['sku'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="error text-danger"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-inner mb-25">
                        <label><?php echo e(translate('Short Descriptions')); ?> <span class="text-danger">*</span></label>
                        <textarea rows="5" name="short_desc" placeholder="<?php echo e(translate('Enter Short Descriptions')); ?>"><?php echo e(old('short_desc', $productSingle->getTranslation('short_desc', $lang))); ?></textarea>
                        <?php $__errorArgs = ['short_desc'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="error text-danger"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-inner mb-25">
                        <label><?php echo e(translate('Long Descriptions')); ?> <span class="text-danger">*</span></label>
                        <textarea id="summernote" name="long_desc"><?php echo e(clean( $productSingle->getTranslation('long_desc', $lang))); ?></textarea>
                        <?php $__errorArgs = ['long_desc'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="error text-danger"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-inner mb-25">
                        <div class="mb-3 row">
                            <div class="col-md-6">
                                <label><?php echo e(translate('Specifications')); ?></label>
                            </div>
                        </div>

                    </div>
                    <?php
                        $locale = get_setting('DEFAULT_LANGUAGE', 'en');
                    ?>
                    <div class="form-inner">
                        <?php if($locale == $lang): ?>
                            <div id="specifiction_product">
                                <?php $__currentLoopData = $specifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $specification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="mb-3 row g-3 inputFormRow">
                                        <div class="col-md-6">
                                            <input type="text" name="specifications[<?php echo e($key); ?>][label]"
                                                class="m-input"
                                                value="<?php echo e($specification->getTranslation('label', $lang)); ?>"
                                                autocomplete="off">
                                        </div>
                                        <div class="col-md-6 d-flex justify-content-center gap-2">
                                            <input type="text" name="specifications[<?php echo e($key); ?>][value]"
                                                class="n-input"
                                                value="<?php echo e($specification->getTranslation('value', $lang)); ?>"
                                                autocomplete="off">
                                            <button id="removeRow" type="button" class="eg-btn btn--red rounded px-3">
                                                <i class="bi bi-x"></i></button>
                                        </div>

                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                            <div class="add-btn-area d-flex jusify-content-center pt-4">
                                <button id="addRow" type="button" class="eg-btn btn--dark mx-auto"> <img
                                        src="<?php echo e(asset('backend/images/icons/add-icon.svg')); ?>"
                                        alt="<?php echo e(translate('Add New')); ?>"> <?php echo e(translate('Add New')); ?></button>
                            </div>
                        <?php else: ?>
                            <div id="specifiction_product">
                                <?php $__currentLoopData = $specifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $specification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <input type="hidden" name="specifications[<?php echo e($key); ?>][specification_id]"
                                        class="m-input" value="<?php echo e($specification->id); ?>" autocomplete="off">
                                    <div class="mb-3 row g-3 inputFormRow">
                                        <div class="col-md-6">
                                            <input type="text" name="specifications[<?php echo e($key); ?>][label]"
                                                class="m-input"
                                                value="<?php echo e($specification->getTranslation('label', $lang)); ?>"
                                                autocomplete="off">
                                        </div>
                                        <div class="col-md-6 d-flex justify-content-center gap-2">
                                            <input type="text" name="specifications[<?php echo e($key); ?>][value]"
                                                class="n-input"
                                                value="<?php echo e($specification->getTranslation('value', $lang)); ?>"
                                                autocomplete="off">

                                        </div>

                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        <?php endif; ?>

                    </div>

                    <div class="row mt-3">
                        <div class="col-xl-12">
                            <div class="form-check">

                                <label class="form-check-label" for="seoProduct">
                                    <input class="form-check-input seo-page-checkbox" name="enable_seo"
                                        <?php echo e($productSingle->enable_seo ? 'checked' : ''); ?> type="checkbox"
                                        id="seoProduct">
                                    <b><?php echo e(translate('Allow SEO')); ?></b>
                                </label>
                            </div>
                        </div>

                        <div class="row mt-3 seo-content">
                            <div class="col-xl-12">
                                <div class="form-inner mb-35">
                                    <label> <?php echo e(translate('Meta Title')); ?> <span>*</span></label>
                                    <input type="text" class="username-input" name="meta_title"
                                        value="<?php echo e($productSingle->meta_title); ?>" />
                                </div>
                            </div>

                            <div class="col-xl-12">
                                <div class="form-inner mb-35">
                                    <label> <?php echo e(translate('Meta Keyward')); ?></label>
                                    <select class="username-input meta-keyward" name="meta_keyward[]"
                                        multiple="multiple">
                                        <?php if(isset($productSingle->meta_keyward) && count($productSingle?->meta_keyward) > 0): ?>
                                            <?php $__currentLoopData = $productSingle->meta_keyward; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $keyward): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($keyward); ?>" selected><?php echo e($keyward); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-xl-12">
                                <div class="form-inner mb-35">
                                    <label> <?php echo e(translate('Meta Description')); ?></label>
                                    <textarea name="meta_description"> <?php echo e($productSingle->meta_description); ?></textarea>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-5">
                <div class="eg-card product-card">
                    <div class="row">
                        <div class="col-12">
                            <div class="form-inner file-upload mb-35">
                                <div id="drag-drop-area">
                                    <h3 class="text-danger">NEED TO ADD IMAGE UPLOAD DRAG & DROP</h3>
                                </div>

                                <label class="control-label"><?php echo e(translate('Feature Image')); ?></label>

                                <div class="dropzone-wrapper">
                                    <div class="dropzone-desc">
                                        <i class="glyphicon glyphicon-download-alt"></i>
                                        <p><?php echo e(translate('Choose an image file or drag it here')); ?></p>
                                    </div>
                                    <input type="file" name="features_image" class="dropzone features_image">
                                </div>

                                <?php $__errorArgs = ['features_image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="error text-danger"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                                <div class="preview-zone hidden">
                                    <div class="box box-solid">
                                        <div class="box-header with-border">
                                            <div class="box-tools pull-right">
                                                <button type="button" class="btn btn-danger btn-xs remove-preview"
                                                    style="display:none;">
                                                    <i class="fa fa-times"></i>
                                                </button>
                                            </div>
                                        </div>
                                        <div class="box-body">
                                            <?php if($productSingle->features_image): ?>
                                                <img src="<?php echo e(asset('uploads/products/features/' . $productSingle->features_image)); ?>"
                                                    alt="<?php echo e($productSingle->name); ?>" width="100">
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-12">
                            <div class="form-inner img-upload mb-35">

                                <label class="control-label"><?php echo e(translate('Image Gallery')); ?></label>

                                <div class="dropzone-wrapper">
                                    <div class="dropzone-desc">
                                        <i class="glyphicon glyphicon-download-alt"></i>
                                        <p><?php echo e(translate('Choose image files or drag it here')); ?></p>
                                    </div>
                                    <input type="file" id="files" name="image[]" class="dropzone image_gal"
                                        multiple>
                                    <?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="error text-danger"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div class="gallery-preview-zone hidden">
                                    <div class="box box-solid">
                                        <div class="box-body">
                                            <?php if($galleries->count() > 0): ?>
                                                <?php $__currentLoopData = $galleries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <div class="img-thumb-wrapper card shadow"
                                                        id="gallery<?php echo e($gallery->id); ?>">
                                                        <span class="exist_remove"
                                                            data-gellery_id="<?php echo e($gallery->id); ?>">X</span>
                                                        <img class="img-thumb"
                                                            src="<?php echo e(asset('uploads/products/gallery/' . $gallery->image)); ?>"
                                                            title="<?php echo e($gallery->image); ?>">
                                                    </div>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php if (\Illuminate\Support\Facades\Blade::check('admin')): ?>
                            <div class="col-12">
                                <div class="form-inner mb-35">
                                    <label><?php echo e(translate('Author')); ?> <span class="text-danger">*</span></label>
                                    <select class="js-example-basic-single" name="author_id" required>
                                        <option value=""><?php echo e(translate('Select Option')); ?></option>
                                        <?php $__currentLoopData = $authors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $author): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($author->id); ?>"
                                                <?php echo e($productSingle->author_id == $author->id ? 'selected' : ''); ?>>
                                                <?php echo e($author->username); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    <?php $__errorArgs = ['author_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="error text-danger"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                        <?php endif; ?>
                        <div class="col-12">
                            <div class="form-inner mb-35">
                                <label><?php echo e(translate('Category')); ?> <span class="text-danger">*</span></label>
                                <select class="js-example-basic-single" name="category_id">
                                    <option value=""><?php echo e(translate('Select Option')); ?></option>
                                    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($category->id); ?>"
                                            <?php echo e(old('category_id', $productSingle->category_id) == $category->id ? 'selected' : ''); ?>>
                                            <?php echo e($category->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <?php $__errorArgs = ['category_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="error text-danger"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="col-12">
                            <div class="form-inner mb-35">
                                <label><?php echo e(translate('Quantity')); ?> <span class="text-danger">*</span></label>
                                <input type="number" name="quantity"
                                    value="<?php echo e(old('quantity', $productSingle->quantity)); ?>">
                                <?php $__errorArgs = ['quantity'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="error text-danger"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>

                        <input type="hidden" id="product_sale_type" value="<?php echo e($productSingle->sale_type); ?>">
                        <div class="col-12">
                            <div class="form-inner mb-35">
                                <label><?php echo e(translate('Type')); ?> <span class="text-danger">*</span></label>
                                <select class="js-example-basic-single auction_type_select" name="sale_type">
                                    <option selected disabled><?php echo e(translate('Select Option')); ?></option>
                                    <option value="1"
                                        <?php echo e(old('sale_type', $productSingle->sale_type) == 1 ? 'selected' : ''); ?>>
                                        <?php echo e('Auction Sale'); ?></option>
                                    <option value="2"
                                        <?php echo e(old('sale_type', $productSingle->sale_type) == 2 ? 'selected' : ''); ?>>
                                        <?php echo e('Direct Sale'); ?></option>
                                </select>
                                <?php $__errorArgs = ['sale_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="error text-danger"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>


                        <div class="col-12 pricing-area-schedule">
                            <div class="row">
                                <div class="col-xl-12 auction_type ">
                                    <div class="form-inner mb-35">
                                        <label><?php echo e(translate('Minimum Deposit')); ?> <span
                                                class="text-danger">*</span></label>
                                        <div class="input-with-btn style2 d-flex jusify-content-start align-items-strech">
                                            <input type="text" placeholder="0.00" name="min_deposit"
                                                value="<?php echo e(old('min_deposit', $productSingle->min_deposit)); ?>"
                                                <?php if($productSingle->sale_type == 1): ?> required <?php endif; ?>>
                                            <select class="js-example-basic-single" name="min_deposit_type"
                                                <?php if($productSingle->sale_type == 1): ?> required <?php endif; ?>>
                                                <option value="1"
                                                    <?php echo e(old('min_deposit_type', $productSingle->min_deposit_type) == 1 ? 'selected' : ''); ?>>
                                                    <?php echo e('Percent'); ?></option>
                                                <option value="2"
                                                    <?php echo e(old('min_deposit_type', $productSingle->min_deposit_type) == 2 ? 'selected' : ''); ?>>
                                                    <?php echo e('Fixed'); ?></option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-xl-6 direct_type">
                                    <div class="form-inner mb-35">
                                        <label><?php echo e(translate('Regular Price')); ?> </label>
                                        <div class="input-with-btn style2 d-flex jusify-content-start align-items-strech">
                                            <input type="text" class="price" placeholder="0.00" name="price"
                                                value="<?php echo e(old('price', $productSingle->price)); ?>">
                                            <button
                                                type="button"><?php echo e(currency_symbol(get_setting('default_currency'))); ?></button>
                                        </div>
                                        <?php $__errorArgs = ['price'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <div class="error text-danger"><?php echo e($message); ?></div>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>
                                <div class="col-xl-6 direct_type">
                                    <div class="form-inner mb-35">
                                        <label><?php echo e(translate('Sale Price')); ?> </label>
                                        <div class="input-with-btn style2 d-flex jusify-content-start align-items-strech">
                                            <input type="text" placeholder="0.00" name="sale_price"
                                                value="<?php echo e(old('sale_price', $productSingle->sale_price)); ?>">
                                            <button
                                                type="button"><?php echo e(currency_symbol(get_setting('default_currency'))); ?></button>
                                        </div>
                                        <?php $__errorArgs = ['sale_price'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <div class="error text-danger"><?php echo e($message); ?></div>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>
                                <div class="col-xl-12 auction_type">
                                    <div class="form-inner mb-35">
                                        <label><?php echo e(translate('Minimum Bid Price')); ?> <span
                                                class="text-danger">*</span></label>
                                        <div class="input-with-btn style2 d-flex jusify-content-start align-items-strech">
                                            <input type="text" placeholder="0.00" name="min_bid_price"
                                                value="<?php echo e(old('min_bid_price', $productSingle->min_bid_price)); ?>"
                                                <?php if($productSingle->sale_type == 1): ?> required <?php endif; ?>>
                                            <button
                                                type="button"><?php echo e(currency_symbol(get_setting('default_currency'))); ?></button>
                                        </div>
                                        <?php $__errorArgs = ['min_bid_price'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <div class="error text-danger"><?php echo e($message); ?></div>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>
                                <div class="col-xl-12 auction_type">
                                    <div class="form-inner mb-35">
                                        <label><?php echo e(translate('Schedule')); ?> <span class="text-danger">*</span></label>
                                        <select class="js-example-basic-single auction_schedule_type"
                                            name="schedule_type">
                                            <option value="1"
                                                <?php echo e($productSingle->schedule_type == 1 ? 'selected' : ''); ?>>
                                                <?php echo e('Yes'); ?></option>
                                            <option value="2"
                                                <?php echo e($productSingle->schedule_type == 2 ? 'selected' : ''); ?>>
                                                <?php echo e('No'); ?></option>
                                        </select>
                                        <?php $__errorArgs = ['schedule_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <div class="error text-danger"><?php echo e($message); ?></div>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>
                                <div class="col-xl-12 auction_type schedule_start_date">
                                    <div class="form-inner mb-35 position-relative">
                                        <label><?php echo e(translate('Start Date')); ?> <span class="text-danger">*</span></label>
                                        <input id="datepicker3" name="start_date" placeholder="Select Date & Time"
                                            value="<?php echo e(old('start_date', date('m/d/Y H:i', strtotime($productSingle->start_date)))); ?>"
                                            <?php if($productSingle->sale_type == 1 && $productSingle->schedule_type == 1): ?> required <?php endif; ?>>
                                        <img src="<?php echo e(asset('backend/images/icons/calendar2.svg')); ?>"
                                            class="datepicker-icon" alt="Calender">
                                    </div>
                                    <?php $__errorArgs = ['start_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="error text-danger"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <div class="col-xl-12 auction_type">
                                    <div class="form-inner mb-35 position-relative">
                                        <label><?php echo e(translate('End Date')); ?> <span class="text-danger">*</span></label>
                                        <input id="datepicker4" name="end_date" placeholder="Select Date & Time"
                                            value="<?php echo e(old('end_date', date('m/d/Y H:i', strtotime($productSingle->end_date)))); ?>"
                                            <?php if($productSingle->sale_type == 1): ?> required <?php endif; ?>>
                                        <img src="<?php echo e(asset('backend/images/icons/calendar2.svg')); ?>"
                                            class="datepicker-icon" alt="Calender">
                                    </div>
                                    <?php $__errorArgs = ['end_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="error text-danger"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                            </div>
                        </div>
                        <div class="col-xl-12 text-center">
                            <div class="button-group mt-15">
                                <?php if($productSingle->status == 1): ?>
                                    <button class="eg-btn btn--green medium-btn"
                                        type="submit"><?php echo e(translate('Update')); ?></button>
                                <?php else: ?>
                                    <button type="submit" class="radio-button">
                                        <input type="radio" id="status1" name="status" value="1" />
                                        <label class="eg-btn btn--green medium-btn"
                                            for="status1"><?php echo e(translate('Published')); ?></label>
                                    </button>
                                    <button type="submit" class="radio-button">
                                        <input type="radio" id="status2" name="status" value="2" />
                                        <label class="eg-btn btn--primary medium-btn"
                                            for="status2"><?php echo e(translate('Draft')); ?></label>
                                    </button>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\ServBay\www\bidout-update\resources\views/backend/products/edit.blade.php ENDPATH**/ ?>