@extends('admin.layouts.master-soyuz') @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())
@foreach($errors->all() as $error)
{{ $error}}
×
@endforeach
@endif
{{ __('Edit template : ') }} {{ $template->template_name }}
@csrf @method("PUT")
{{ __('Template name:') }}
*
{{ __('Template code:') }}
*
{{ __('Template options:') }}
*
{{__("Enter option seprate it by comma (',')")}}
{{ __('Status:') }}
status == 1 ? "checked" : "" }}>
@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
{{ __('View preview') }}
{{__("Update")}}
{{__('Preview')}}
×
@endsection @section('custom-script') @endsection