@extends('seller.layouts.app') @section('panel_content') @php CoreComponentRepository::instantiateShopRepository(); CoreComponentRepository::initializeCache(); @endphp
{{translate('Update Product Information')}}
@if ($errors->any())
@endif
@csrf @method('PUT')
{{-- Product Name --}}
{{translate('Enter a descriptive name for the product. [e.g. "Wireless Bluetooth Headphones"]')}}
{{-- Brand --}}
{{ translate('Choose the product\'s brand from the list. [e.g. "Sony"]') }}
{{-- Unit --}}
{{translate('Specify the unit of measurement for the product. [e.g. "Piece" or "kg"]')}}
{{-- Minimum Purchase Qty --}} {{-- Tags --}}
{{translate('Add keywords to help customers find this product. [e.g. "wireless, headphones, audio"]')}}
{{-- Barcode --}} @if (addon_is_activated('pos_system'))
{{translate('Enter the product’s barcode or SKU for inventory tracking. [e.g. "1234567890123"]')}}
@endif
{{translate('Product Files & Media')}}
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('Upload multiple images, each 600x400 pixels. [e.g. Images showing products from different angles.]')}}
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('Upload a primary image at 300x300 pixels for quick preview. [e.g. A front view of the product.]')}}
{{translate('Select the video platform hosting the product video. [e.g. "YouTube"]')}}
{{ translate('Provide the link to the product video. [e.g. "https://www.youtube.com/watch?v=12345"]') }}
{{translate('Product Description')}}
{{translate('Write a detailed overview of the product, including features. [e.g. "These wireless Bluetooth headphones offer premium sound quality, noise cancellation, and a comfortable design for all-day use."]')}}
{{translate('Product Price & Discounts')}}
{{translate('Enter the price per unit. [e.g. "$49.99"]')}}

{{translate('Specify the required prepayment amount for pre-orders. [e.g. "$10.00"]')}}

@php $start_date = date('d-m-Y H:i:s', $product->discount_start_date); $end_date = date('d-m-Y H:i:s', $product->discount_end_date); @endphp
discount_start_date && $product->discount_end_date) value="{{ $start_date.' to '.$end_date }}" @endif placeholder="{{translate('Select Date')}}" data-time-picker="true" data-format="DD-MM-Y HH:mm:ss" data-separator=" to " autocomplete="off"> {{translate('Choose start and end dates for a discount period. [e.g. "01/01/2024 - 01/15/2024"]')}}
{{translate('Specify the discount percentage or amount. [e.g. "10%" or "$5.00"]')}}

{{translate('Generate ')}}
@php $start_date = date('d-m-Y H:i:s', $coupon?->coupon_start_date); $end_date = date('d-m-Y H:i:s', $coupon?->coupon_end_date); @endphp
coupon_start_date && $coupon?->coupon_end_date) value="{{ $start_date.' to '.$end_date }}" @endif placeholder="{{translate('Select Date')}}" data-time-picker="true" data-format="DD-MM-Y HH:mm:ss" data-separator=" to " autocomplete="off"> {{translate('Choose start and end dates for a coupon discount period. [e.g. "01/01/2024 - 01/15/2024"]')}}
{{translate('Specify the coupon amount percentage or amount. [e.g. "10%" or "$5.00"]')}}
{{translate('SEO Meta Tags')}}
{{translate('Add a title for SEO purposes to improve search visibility. [e.g. "Premium Wireless Bluetooth Headphones"]')}}
{{translate('Provide a short SEO-friendly description. [e.g. "High-quality Bluetooth headphones with noise cancellation."]')}}
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('Upload an image that represents the product in search engines. [e.g. A high-resolution image of the product.]')}}
{{-- Right side --}}
{{ 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
{{translate('Product Settings')}}
{{translate('Upload an image that represents the product in search engines. [e.g. A high-resolution image of the product.]')}}
{{translate('Indicate if the product is in stock and ready to ship.')}}
{{translate('Set a date when the product will become available. Example: "01/20/2024"')}}
@if (addon_is_activated('refund_request'))
{{translate('Refund')}}
show_refund_note == 1 ? 'checked' : '' }}>
@if($refund?->note != null)
{{ $refund->note->getTranslation('description') ?? '' }}
@endif
@endif
{{translate('Shipping')}}
{{translate('Shipping Configuration')}}
show_shipping_time == 1 ? 'checked' : ''}}>
show_shipping_note == 1 ? 'checked' : ''}}>
@if($shipping?->note != null)
{{ $shipping->note->getTranslation('description') ?? '' }}
@endif
{{translate('Cash On Delivery')}}
prepayment_needed == 1 ? 'checked' : '' }}>
show_cod_note == 1 ? 'checked' : '' }}>
@if($cod?->note != null)
{{ $cod->note->getTranslation('description') ?? '' }}
@endif
{{translate('VAT & Tax')}}
@foreach($taxes as $tax) @php @endphp
{{translate('Enter the vat & tax rate percentage for this product. [e.g. "8%"]')}}
@endforeach
{{translate('More Products to Preorder')}}

{{translate('This is a customised section in product description page where you can select end category or selected products as More Products to Preorder.')}}

@php $more_product_ids = json_decode($product->more_products, true); if (is_array($more_product_ids) && !empty($more_product_ids)) { $more_products = \App\Models\PreorderProduct::whereIn('id', $more_product_ids)->get(); } else { $more_products = collect(); // Empty collection if no valid IDs } @endphp @if(count($more_products) > 0)
@foreach($more_products as $more_product) @endforeach
{{ translate('Product Thumb') }} {{ translate('Product Name') }} {{ translate('Category') }} {{ translate('Options') }}

{{ translate('Image')}}

{{ $more_product->getTranslation('product_name') }}

{{ $more_product->main_category->name ?? translate('Category Not Found') }}
@endif
{{translate('Frequently Bought Products')}}

{{translate('This is a customised section in product description page where you can select end category or selected products as More Products to Preorder.')}}

frequently_bought_type == 'product') checked @endif >
frequently_bought_type == 'category') checked @endif >
@php $frequently_bought_product_ids = json_decode($product->frequently_bought_product, true); if (is_array($frequently_bought_product_ids) && !empty($frequently_bought_product_ids)) { $fq_bought_products = \App\Models\Product::whereIn('id', $frequently_bought_product_ids)->get(); } else { $fq_bought_products = collect(); // Empty collection if no valid IDs } @endphp @if(count($fq_bought_products) > 0)
@foreach($fq_bought_products as $fQBproduct) @endforeach
{{ translate('Product Thumb') }} {{ translate('Product Name') }} {{ translate('Category') }} {{translate('Options') }}

{{ translate('Image')}}

{{ $fQBproduct->getTranslation('name') }}

{{ $fQBproduct->main_category->name ?? translate('Category Not Found') }}
@endif
{{-- Select Category for Frequently Bought Product --}}
@php $fqCategory = $product->frequently_bought_category != null ? $product->frequently_bought_category : null; @endphp
@endsection @section('modal') @include('modals.product_select_modal') {{-- Pre Order Product Select Model --}} @include('preorder.common.models.pre_order_product_select_modal') {{-- Note Modal --}} @include('modals.note_modal') @endsection @section('script') @endsection