@extends('user.layout') @section('styles') @endsection @includeIf('user.partials.rtl-style') @section('content')
{{ __('Edit Item') }}
@php $aiUsage = \App\Http\Helpers\AiEngineHelper::getAiLimits(); $engineInfo = $aiUsage['engine']; @endphp
{{ __('Mode') }}: {{ $engineInfo['display'] }} {{ __('Tokens') }}: {{ $aiUsage['used_tokens'] }} / {{ $aiUsage['token_label'] }} {{ __('Images') }}: {{ $aiUsage['used_images'] }} / {{ $aiUsage['image_label'] }}
{{ __('Back') }}
    {{-- Slider images upload start --}}
    @if (!is_null($item->sliders)) @foreach ($item->sliders as $key => $img) @php $imgPath = public_path('assets/front/img/user/items/slider-images/' . $img->image); $imgSrc = file_exists($imgPath) ? asset('assets/front/img/user/items/slider-images/' . $img->image) : asset('assets/front/img/user/items/thumbnail/' . $img->image); @endphp @endforeach @endif
    {{ __('Drag and drop files here to upload') }}
    @csrf

    {{ __('Recommended Image Size : 800 x 800') }}

    @if ($errors->has('image'))

    {{ $errors->first('image') }}

    @endif
    {{-- Slider images upload end --}}
    @csrf
    {{-- thumbnail image start --}}
    ...

    {{-- thumbnail image end --}} @if ($item->type == 'physical')

    {{ __('If the item has variations, then set the stocks in the variations page') }}

    @endif @if ($item->type == 'digital')
    @endif
    @if ($item->type == 'digital')

    {{ __('Only zip file is allowed.') }}

    @endif @if ($item->type == 'physical')
    @endif
    @php $postData = $lang->itemInfo()->where('item_id', $item->id)->first(); $categories = App\Models\User\UserItemCategory::where('language_id', $lang->id) ->where('user_id', Auth::guard('web')->user()->id) ->where('status', 1) ->orderBy('name', 'asc') ->get(); @endphp
    {{ __('Changing the category may affect your product variations.') }}
    @php $allow_background_color = ['pet']; @endphp @if (in_array($userBs->theme, $allow_background_color))
    @endif
    @foreach ($languages as $language) @php $postData = $language->itemInfo()->where('item_id', $item->id)->first(); @endphp
    @php $currLang = $language; @endphp @foreach ($languages as $lang) @continue($lang->id == $currLang->id)
    @endforeach
    @endforeach
    {{-- thumbnail --}}

    {{-- thumbnail end --}} {{-- AI Slider Image Modal --}} @endsection @section('scripts') @endsection