@extends('apps::dashboard.layouts.app') @section('title', __('catalog::dashboard.products.routes.update')) @inject('productFlags', 'Modules\Catalog\Enums\ProductFlag') @section('css') {{-- --}} @endsection @section('content')

@permission('add_products') @endpermission
@csrf @method('PUT')
@if (config('setting.products.toggle_variations') == 1)
@foreach ($productFlags::getConstList() as $flag) @endforeach
@else @endif {{-- RIGHT SIDE --}} {{-- PAGE CONTENT --}}
{{-- UPDATE FORM --}}
{{--

{{__('catalog::dashboard.products.form.tabs.general')}}

--}}
@foreach (config('translatable.locales') as $code)
user()->can('edit_products_title')? '': 'disabled' }} value="{{ $product->getTranslation('title', $code) }}">
{{--
--}}
@endforeach
{{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}}
@if (config('setting.other.is_multi_vendors') == 1)
@endif
@if (auth()->user()->can('edit_products_image')) @include('core::dashboard.shared.file_upload', [ 'image' => $product->image, ]) @else @endif
status == 1 ? ' checked="" ' : '' }}>
@permission('pending_products_for_approval')
pending_for_approval == 1 ? ' checked="" ' : '' }}>
@endpermission {{-- @if (auth()->user()->hasRole('admins'))--}} {{--
--}} {{-- --}} {{--
--}} {{-- featured == 1 ? ' checked="" ' : '' }}>--}} {{--
--}} {{--
--}} {{--
--}} {{-- @endif--}} @if ($product->trashed())
@endif
{{--
@include('catalog::dashboard.products.components.categories-tree.tree')
--}}
@include('catalog::dashboard.tree.products.edit', [ 'mainCategories' => $mainCategories, ])
{{--

{{__('catalog::dashboard.products.form.tabs.stock')}}

--}}
user()->can('edit_products_price')? '': 'disabled' }} value="{{ $product->price }}">
user()->can('edit_products_qty')? '': 'disabled' }} style="display: {{ !is_null($product->qty) ? 'block' : 'none' }}" value="{{ $product->qty }}">

{{ __('catalog::dashboard.products.form.offer') }}

offer) {{ $product->offer->status == 1 ? ' checked="" ' : '' }} @endif onclick="checkFunction()"> offer) {{ $product->offer->status == 1 ? ' disabled ' : '' }} @endif>
@if (config('setting.products.toggle_variations') == 1)
{{--

{{__('catalog::dashboard.products.form.tabs.variations')}}

--}} {{-- option to add --}}
@foreach ($options as $option)
@endforeach

@include('catalog::dashboard.products.html.tabs_variations')
@endif
{{--

{{__('catalog::dashboard.products.form.tabs.images')}}

--}}
{{-- --}} @if (auth()->user()->can('edit_products_gallery')) @endif
@if (count($product->images) > 0) @foreach ($product->images as $k => $img)
@if (auth()->user()->can('edit_products_gallery'))
{{ __('catalog::dashboard.products.form.browse_image') }}
@endif image preview
@endforeach @else
@if (auth()->user()->can('edit_products_gallery'))
{{ __('catalog::dashboard.products.form.browse_image') }}
@endif
@endif
{{--

{{__('catalog::dashboard.products.form.tabs.tags')}}

--}}
{{--

{{__('catalog::dashboard.products.form.tabs.search_keywords')}}

--}}
{{--

{{__('catalog::dashboard.products.form.tabs.seo')}}

--}}
@foreach (config('translatable.locales') as $code)
@endforeach
{{-- END UPDATE FORM --}}
{{-- PAGE ACTION --}}
@include('apps::dashboard.layouts._ajax-msg')
{{ __('apps::dashboard.general.back_btn') }}
@stop @section('scripts') @endsection