@extends('backend.layouts.app') @section('content')

{{ translate('Edit Product') }}

{{-- --}}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
{{ translate('Product Information') }}
{{ translate("You can choose a brand if you'd like to display your product by brand.") }}
{{ translate('The minimum quantity needs to be purchased by your customer.') }}
{{ translate('This is used for search. Input those words by which cutomer can find this product.') }}
@if (addon_is_activated('pos_system'))
@endif
{{ translate('Product Category') }}
{{ translate('Select Main') }} {{ translate('This will be used for commission based calculations and homepage category wise product Show.') }}
@php $old_categories = $product ->categories() ->pluck('category_id') ->toArray(); @endphp
    @foreach ($categories as $category)
  • {{ $category->getTranslation('name') }}
  • @foreach ($category->childrenCategories as $childCategory) @include( 'backend.product.products.child_category', ['child_category' => $childCategory] ) @endforeach @endforeach
@if (addon_is_activated('refund_request'))
{{ translate('Refund') }}
@if ($product->refundNote != null)
{{ $product->refundNote->getTranslation('description') ?? '' }}
@endif
@endif @if(env('ENABLE_FEATURED_PRODUCT') == true || env('ENABLE_IS_ONLINE_PRODUCT') == true || env('ENABLE_TODAY_DEAL_PRODUCT') == true || env('ENABLE_TRY_ON') == true || env('ENABLE_LENSES') == true)
{{ translate('Status') }}
@if(env('ENABLE_FEATURED_PRODUCT') == true)
{{ translate('If you enable this, this product will be granted as a featured product.') }}
@endif @if(env('ENABLE_IS_ONLINE_PRODUCT') == true)
{{ translate('If you enable this, this product will be granted as online product.') }}
@endif @if(env('ENABLE_TODAY_DEAL_PRODUCT') == true)
{{ translate('If you enable this, this product will be granted as a todays deal product.') }}
@endif @if(env('ENABLE_TRY_ON') == true)
{{ translate('Enable this to let users virtually try this product on their face. Make sure to upload a transparent background image for this feature to work correctly.') }}
@endif @if(env('ENABLE_LENSES') == true)
{{ translate('Enable this option to activate lenses-related functionality on the frontend. When turned ON (value = 1), lenses features will be visible and functional.') }}
@endif
@endif @if(env('ENABLE_FLASH_DEAL') == true)
{{ translate('Flash Deal') }} ({{ translate('If you want to select this product as a flash deal, you can use it') }})
@php $productFlashDealId = $product->flash_deal_products->last()->flash_deal_id ?? null; @endphp
@endif @if(env('ENABLE_VAT_TAX') == true)
{{ translate('Vat & TAX') }}
@foreach (\App\Models\Tax::where('tax_status', 1)->get() as $tax) @php $tax_amount = 0; $tax_type = ''; foreach ($tax->product_taxes as $row) { if ($product->id == $row->product_id) { $tax_amount = $row->tax; $tax_type = $row->tax_type; } } @endphp
@endforeach
@endif
{{ translate('Product Files & Media') }}
{{ translate('Browse') }}
{{ translate('Choose File') }}
{{ translate('These images are visible in product details page gallery. Minimum dimensions required: 900px width X 900px height.') }}
{{ translate('Browse') }}
{{ translate('Choose File') }}
{{ translate('This image is visible in all product box. Minimum dimensions required: 195px width X 195px height. Keep some blank space around main object of your image as we had to crop some edge in different devices to make it responsive.') }}
@if(env('ENABLE_VIDEO_PROVIDER_PRODUCT') == true)
@endif @if(env('ENABLE_VIDEO_LINK_PRODUCT') == true)
{{ translate("Use proper link without extra parameter. Don't use short share link/embeded iframe code.") }}
@endif @if(env('ENABLE_PDF_SPECIFICATION_PRODUCT') == true)
{{ translate('Browse') }}
{{ translate('Choose File') }}
@endif
{{ translate('Product price & stock') }}