@extends('admin.main') @section('content') @if (auth()->guard('admins')->user()->can('manager product'))
@include('admin.block.btn')
@if (count($groups) > 0) @foreach ($groups->all() as $item) @if (!empty($item->products) && $item->products->count()) @foreach ($item->products->all() as $_item) @endforeach @endif @endforeach @endif
Product Name Type
Group Name: {{ $item->name }}
@method('delete') @csrf
{{ $_item->name }} {{ $_item->Type->name }} @if (auth()->guard('admins')->user()->can('delete product'))
@csrf @method('delete')
@endif
@else
Access Denied - You are not assigned to any Product management department
@endif @endsection