@extends('admin.layouts.sellermastersoyuz') @section('title',__('Edit Template :template',['template' => $template->template_name ])) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Edit Template') }} @endslot ​ @slot('menu2') {{ __("Edit Template") }} @endslot @slot('button')
{{ __("Back")}}
@endslot @endcomponent
@if ($errors->any()) @endif
{{ __('Edit template : ') }} {{ $template->template_name }}
@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