@extends('user.layout') @if (!empty($item->language) && $item->language->rtl == 1) @section('styles') @endsection @endif @section('content')
Edit Item
Back
{{-- Slider images upload start --}}
@if (!is_null($item->sliders)) @foreach ($item->sliders as $key => $img) @endforeach @endif
Item Image
@csrf
@if ($errors->has('image'))

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

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

{{-- thumbnail image end --}} {{-- START: slider Part --}}
{{-- END: slider Part --}}
@if ($item->type == 'physical' && count($item->itemVariations) == 0)

{{ 'This stock will be checked, only if the item has no variation' }}

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

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

Only zip file is allowed.

@if (!empty($item->download_file)) {{ __('Download Uploaded File') }} @endif
@endif

@if ($item->type == 'physical')

@endif

@foreach ($languages as $language) @php $postData = $language ->itemInfo() ->where('item_id', $item->id) ->first(); @endphp
@php $categories = App\Models\User\UserItemCategory::where('language_id', $language->id) ->where('user_id', Auth::guard('web')->user()->id) ->where('status', 1) ->orderBy('name', 'asc') ->get(); @endphp
@php $currLang = $language; @endphp @foreach ($languages as $lang) @continue($lang->id == $currLang->id)
@endforeach
@endforeach
@endsection @section('scripts') @if ($item->type == 'digital') @endif {{-- dropzone --}} @php $test = $languages->pluck('code')->toArray(); // dump($test); @endphp @endsection