@extends('backend.layouts.app') @section('content')
{{ translate('Edit Digital Product') }}
@csrf
{{ translate('Browse') }}
{{ translate('Choose File') }}
{{ translate('Images') }}
{{ translate('Browse') }}
{{ translate('Choose File') }}
{{ translate('Browse') }}
{{ translate('Choose File') }}
{{ 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 $start_date = $product->discount_start_date ? date('d-m-Y H:i:s', $product->discount_start_date) : null; $end_date = $product->discount_end_date ? date('d-m-Y H:i:s', $product->discount_end_date) : null; @endphp
{{ translate('Description') }}
{{-- 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