@extends('admin.layouts.master-soyuz') @section('title',__('Edit Template : :template | ',['template' => $template->template_name])) @section('body') @include('admin.layouts.topbar',$data)
@if ($errors->any()) @endif
{{ __('Edit Size chart ') }}
@csrf @method("PUT")
{{__("Enter option seprate it by comma (',')")}}

@php $count_preview = 0; $count_input = 0; $length = [1]; foreach($template->sizeoptions as $opt) { $length[] = count($opt->values); } $length = max($length); @endphp
@foreach ($template->sizeoptions as $option) @endforeach @if($template->sizeoptions()->count()) @endif @if(count($template->sizeoptions)) @for ($j = 0; $j < $length; $j++) @for($i=0;$i < count($template->sizeoptions); $i++) @endfor @php $count_input++; @endphp @endfor @endif
{{ $option->option }} #
@php $value = $template->sizeoptions[$i]->values[$count_input]['value']; @endphp
@endsection @section('custom-script') @endsection