@extends('admin::layouts.master') @push('styles') @endpush @section('content')
{{ translate('Edit Product') }}
@if (count($errors) > 0) @endif
{{ translate('Product Information') }}
@csrf
Customer need to purchase this minimum quantity for this product. Minimum should be 1.
Customer will be able to purchase this maximum quantity for this product. Default 0 for unlimited.
{{ translate('Product Images') }}
{{ translate('This image is visible in all product box. Use 300x300 sizes image. Keep some blank space around the main object of your image as we had to crop some edge in different devices to make it responsive.') }}
{{ translate("These images are visible in the product details page gallery. Use 600x600 or higher sizes images for better quality. But try to keep file size low as it'll increase page load time.") }}
Browse
Choose file
This image is visible in all product box. Use 300x300 sizes image. Keep some blank space around the main object of your image as we had to crop some edge in different devices to make it responsive.
{{ translate('Product price, stock') }}
productCountry->is_variant) style="display:none;" @endif>
{{-- Product Varients --}} @if ($productVariation->combinations == null) @else
productCountry->is_variant) style="display:none;" @endif>
{{ translate('Select an option for this product and then select choices of each option. Max 3 options') }}
@forelse (generate_variation_options($product->productCountry->variationCombinations, $langCode) as $key => $combination)
@php $attribute_values = Modules\Attribute\Entities\AttributeValue::where( 'attribute_id', $combination['id'], )->get(); $old_val = array_map(function ($val) { return $val['id']; }, $combination['values']); @endphp
@if ($key == 0)
@else
@endif
@empty
{{ translate('Select an option') }}
@endforelse
@if ($product->productCountry->is_variant) @include('product::partials.sku_combinations_edit', [ 'variations' => $product->productCountry->productVariations, ]) @endif
@endif
{{-- Product Discountzz --}}
{{ translate('Product Discount') }}
{{-- @php if ($product->productCountry->discount_start_date != '') { $startDate = date( 'd-m-Y H:i:s', strtotime($product->productCountry->discount_start_date), ); $endDate = date('d-m-Y H:i:s', strtotime($product->productCountry->discount_end_date)); $discountDate = $startDate . ' to ' . $endDate; } else { $discountDate = ''; } @endphp
--}} @if (!$product->productCountry->is_variant)
@endif @if ($product->productCountry->is_variant)
@endif
{{ translate('Product Description') }}
{{ translate('Product Attributes') }}
{{ translate('These attributes will be used only for filtering.') }}
@foreach ($product->attributes as $productAttribute)
@php $attributeValues = \Modules\Attribute\Entities\AttributeValue::where( 'attribute_id', $productAttribute->id, )->get(); @endphp
@endforeach
{{ translate('Product Status') }}
{{ translate('Delivery Days') }}
{{ translate('Product Category') }}
    @foreach (\Modules\Category\Entities\Category::activeParent()->with('childrenRecursive')->active()->get() as $category)
  • @if (count($category->childrenRecursive) > 0) @include('product::partials.child_category_edit', [ 'recursiveChildren' => $category->childrenRecursive, ]) @endif
  • @endforeach
{{ translate('Search Tags') }}
@foreach (\Modules\SearchTag\Entities\SearchTag::whereIn('id', $product->tags->pluck('id'))->get() as $tags) {{ $tags->name }} @endforeach
{{ translate('These will be used for product search.') }}
{{ translate('VAT & Tax') }}
@php $taxes = \Modules\Tax\Entities\Tax::active() ->where('country_id', auth()->user()->country_id) ->get(); @endphp @php // dd($product->productcountry->productTax); @endphp
{{ translate('Cancel') }}
@endsection @section('modal') @include('admin::modals.delete_modal') @include('admin::modals.confirm_modal') @endsection @section('script') @include('product::scripts.index_scripts') @endsection