@extends('seller.layouts.app') @section('panel_content')

{{ translate('Update Your Product') }}

@if ($errors->any())
@endif
@csrf
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('This is used for search. Input those words by which cutomer can find this product.')}}
{{translate('Images')}}
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('These images are visible in product details page gallery. Use 600x600 sizes images.')}}
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('This image is visible in all product box. Use 300x300 sizes image. Keep some blank space around main object of your image as we had to crop some edge in different devices to make it responsive.')}}
{{translate('Meta Tags')}}
{{ translate('Browse')}}
{{ translate('Choose File') }}
{{translate('Price')}}
@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 @php $date_range = ''; if($product->discount_start_date){ $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); $date_range = $start_date.' to '.$end_date; } @endphp
{{-- Frequently Bought Products --}}
{{ translate('Frequently Bought') }}
frequently_bought_selection_type == 'product') checked @endif >
frequently_bought_selection_type == 'category') checked @endif >
@php $fq_bought_products = $product->frequently_bought_products()->where('category_id', null)->get(); @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->frequently_bought_product->getTranslation('name') }}

{{ $fQBproduct->frequently_bought_product->main_category->name ?? translate('Category Not Found') }}
@endif
{{-- Select Category for Frequently Bought Product --}}
@php $fq_bought_product_category_id = $product->frequently_bought_products()->where('category_id','!=', null)->first(); $fqCategory = $fq_bought_product_category_id != null ? $fq_bought_product_category_id->category_id : null; @endphp
{{ 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
@endsection @section('modal') @include('modals.product_select_modal') @endsection @section('script') @endsection