@extends('layouts/fams_layout') @section('title', '| Product Name') @section('content')

PRODUCT NAME LIST

@foreach($productNames as $productName) @php $isBelongToProduct = DB::table('fams_product')->where('productNameId',$productName->id)->value('id'); @endphp @endforeach
SL# Name Code Group Category Sub Category Product Type Action
{{++$no}} {{$productName->name}} {{$productName->productNameCode}} @php $groupName = DB::table('fams_product_group')->where('id',$productName->productGroupId)->value('name'); @endphp {{$groupName}} @php $categoryName = DB::table('fams_product_category')->where('id',$productName->productCategoryId)->value('name'); @endphp {{$categoryName}} @php $subCategoryName = DB::table('fams_product_sub_category')->where('id',$productName->productSubCategoryId)->value('name'); @endphp {{$subCategoryName}} @php $productTypeName = DB::table('fams_product_type')->where('id',$productName->productTypeId)->value('name'); @endphp {{$productTypeName}} id}} data-toggle="modal" data-target="#edit-modal-{{$productName->id}}" >   0){echo "style=\"pointer-events: none;cursor: not-allowed;\"";} @endphp>
@foreach($productNames as $prodName) {{-- Edit Modal --}}