@extends('admin.layouts.master-soyuz') @section('title',__('Edit Option - :option | ',['option' => $proattr->attr_name])) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Edit Option') }} @endslot @slot('menu2') {{ __("Edit Option") }} @endslot @slot('button')
{{ __("Back")}}
@endslot ​ @endcomponent
@if ($errors->any()) @endif
{{ __('Edit Option - :option | ',['option' => $proattr->attr_name]) }}
{{ csrf_field() }}


@php $all_values = App\Category::pluck('id','title')->toArray(); $old_values = $proattr->cats_id; $diff_values = array_diff($all_values,$old_values); @endphp @if(isset($old_values) && count($old_values) > 0) @foreach($old_values as $old_value) @php $getcatname = App\Category::where('id',$old_value)->first(); @endphp @if(isset($getcatname)) @endif @endforeach @endif @if(isset($diff_values)) @foreach($diff_values as $orivalue) @php $getcatname = App\Category::where('id',$orivalue)->first(); @endphp @if(isset($getcatname)) @endif @endforeach @endif
@endsection @section('custom-script') @endsection