@extends('layouts.backend') @section('extraCss') @endsection @php $existingColors = []; $existingSizes = []; 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[] = $iCode->size; break; } } foreach($colorFamilies as $colorFamily) { if(!empty($colorFamily->colors) && $colorFamily->colors->count() > 0) { foreach($colorFamily->colors as $col) { if($col->name == $iCode->color) { if(!in_array($iCode->color,$existingColors)) { $existingColors[] = $iCode->color; break; } } } } } endforeach; endif; @endphp @section('mainContentArea')

Edit Article Contant Back

@if (count($errors) > 0)
@endif
@csrf
Article Details

{{-- 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)

{{ $master->name }}

@endforeach {{-- ATTRIBUTE MASTERS HERE --}}
Variations

Images Details

@foreach($article->articleImages as $key => $value)
{{ str_replace("_", " ", $value->color_name)}}
@endforeach
@if($show === 1) @else @endif
@endsection @section('extraJs') @endsection