@extends('admin.layouts.master-soyuz') @section('title',__('Manage All Options -')) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Manage All Options') }} @endslot @slot('menu2') {{ __("Manage All Options") }} @endslot @slot('button')
@can('pages.create') {{ __('Add Option') }} @endcan
@endslot ​ @endcomponent
{{ __('Manage All Options') }}
@foreach($pattr as $k => $pat) @endforeach
# {{ __("Options") }} {{ __("Values") }} {{ __("In Categories") }}
{{ $k+1 }} @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