@if($obj->id)
@if(auth()->user()->can($permissions['create']))
@endif
Edit Product
@elseCreate new Product
@endif
@include('admin._partials.notifications')
@if($obj->id)
@php
$attribute_name = App\Models\Attribute::where('product_id',$obj->id)->pluck('name');
$attribute_slug = App\Models\Attribute::where('product_id',$obj->id)->pluck('slug');
$attribute_id = App\Models\Attribute::where('product_id',$obj->id)->pluck('id');
$attributes = App\Models\Attribute::where('product_id',$obj->id)->select('id','name','slug','priority')->get();
@endphp
@if($obj->id)
@endif
List Attributes
Name | Slug | Priority | Add Values |
---|---|---|---|
{{$item->name}} | {{$item->slug}} | {{$item->priority}} | Add |