@extends("admin/layouts.master-soyuz") @section('title','Manage All Options -') @section("body")
Manage All Options
Add Option
@foreach($pattr as $pat) @endforeach
# Options Values In Categories
{{ $i }} @php $k = '_'; @endphp @if (strpos($pat->attr_name, $k) == false) {{ $pat->attr_name }} @else {{str_replace('_', ' ',$pat->attr_name)}} @endif

Edit Option
@foreach($pat->provalues->all() as $t) @if(strcasecmp($t->unit_value, $t->values) !=0) @if($pat->attr_name == "Color" || $pat->attr_name == "Colour")
{{ $t->values }} @else {{ $t->values }}{{ $t->unit_value }}, @endif @else {{ $t->values }}, @endif @endforeach

Manage Values
@foreach($pat->cats_id as $cats) @php $getcatname = App\Category::where('id',$cats)->first(); @endphp {{ isset($getcatname) ? $getcatname->title : "-" }}, @endforeach
@endsection