@extends("admin/layouts.master") @section('title',"Edit Option - $proattr->attr_name -") @section("body")
Edit 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