@extends('layouts.backend') @section('mainContentArea')

Update Article - {{ !empty($article->name) ? $article->name : ''}} Edit Back

@section('extraCss') @endsection @php $addNew = '     Add'; @endphp @php $reqsubsub = !empty($article->id) ? $article->category_id : 0; $existingClasses = []; $existingColors = []; $existingSizes = []; $acolor = []; if(!empty($article->id) && $article->itemCodes->count() > 0): foreach($article->itemCodes as $iCode): $cls = ''; $colTemp = ''; $sizeTemp = ''; foreach($sizes as $tempSize) { if($tempSize->code == $iCode->size) { $sizeTemp = $tempSize->id; $existingSizes[] = $sizeTemp; break; } } foreach($colorFamilies as $colorFamily) { if(!empty($colorFamily->colors) && $colorFamily->colors->count() > 0) { foreach($colorFamily->colors as $col) { if($col->name == $iCode->color) { $acolor[$col->id] = $col->name; $colTemp = $col->id; $existingColors[] = $colTemp; break; } } } if($colTemp != '') { break; } } $cls = '_'.$sizeTemp.'_'.$colTemp; $clsCol = '_Col'.'_'.$colTemp; $clsSize = '_Size'.'_'.$sizeTemp; $existingClasses[] = $cls; endforeach; endif; @endphp {{--
--}} id)) action="{{ route('articles-update', ['id' => $article->id]) }}" @else action="{{ route('articles-store') }}" @endif > @csrf @isset($exitsarticle->id) {{ method_field('PUT') }} @endisset
Basic Details

code)) readonly @else onblur="if(jQuery.trim(this.value) != '' && jQuery.inArray( this.value, allArticles) >= 0){toastr.error('Article already exists!'); this.value='';this.focus();$('.mixerDiv').hide();return false;} else {$('.mixerDiv').show();}" @endif >
Description

Attributes

Add more attributes to products.

{{-- ATTRIBUTE MASTERS HERE --}} @php $existProductMasterValues = []; if(!empty($article->mastervalues)): $tempMastervals = $article->mastervalues; foreach( $tempMastervals as $tempMasterval) { $existProductMasterValues[$tempMasterval->master_id][] = $tempMasterval->master_value_id; } endif; @endphp @foreach($masters as $master)
@endforeach {{-- ATTRIBUTE MASTERS HERE --}}
Variations

Select Both Colors and size to make the variations.

Price

@include("backend.articles.product-combinationsnew")
Component Details

{{-- --}}
{{--
--}}

{{-- --}} @php $count = 0; @endphp @if(!empty($article->components) && count($article->components) > 0) @foreach($article->components as $key => $value) @php $count = $key +1 ; @endphp {{-- --}} @endforeach @endif
Component Qty FabricFabric DetailsDelete
Suggested Cordinates



@php $count = 0;@endphp @if(!empty($article) && count($article->sugesCodes) > 0) @foreach($article->sugesCodes as $key => $value) @php $count = $key +1 ; @endphp @endforeach @endif
Master Color ARTICLE COLOR Delete
Article Images

@php $aimages = []; if(!empty($ArticleImg) && count($ArticleImg) > 0) { foreach($ArticleImg as $key => $value) { $aimages[$value->color_id] = array('id'=>$value->id,'color_id'=>$value->color_id,'color_name'=>$value->color_name,'imgname'=>$value->imgname,'code'=>$value->code); } } if(!empty($DraftArticleImg) && count($DraftArticleImg) > 0) { foreach($DraftArticleImg as $key => $value) { $aimages[$value->color_id] = array('id'=>$value->id,'color_id'=>$value->color_id,'color_name'=>$value->color_name,'imgname'=>$value->imgname,'code'=>$value->code); } } @endphp @foreach($acolor as $keys => $values) @if(!empty($aimages) && count($aimages) > 0) @if(array_key_exists($keys, $aimages)) @else @endif @else @endif @endforeach
Color Image Action
{{ $values }} color_name)}}" class="form-control" placeholder="Enter Image Color" required />
{{ $values }} No Image Uploaded
{{ $values }} No Image Uploaded

Cancel @if(!empty($article->code)) Print @endif
@section('extraJs') @endsection
@endsection