@extends('front.layouts.main') @section('content')
| ID | Picture | Name | Quantity | Costing | Price | Category | Bar Code | Sku or Model | Suplier | @if (Auth::user()->role =='supmin')Delete | @endifEdit |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$key + 1}} | |
{{$listing->name}} | {{$listing->quantity}} | {{$listing->cost}} | {{$listing->price}} | @php $sub_name = DB::table('sub_categories')->where('id', $listing->sub_category_id)->first(); $category_name = DB::table('categories')->where('id',$sub_name->category_id)->first(); @endphp {{$category_name->category_name ?? ''}} | {{$listing->m_barcode}} | @if (Auth::user()->role =='supmin'){{$listing->sku_or_model}} | @php $suppliers = DB::table('supplier_details')->where('id', $listing->suppliers)->first(); @endphp {{$suppliers->supplier_name ?? ''}} | Delete | @endif @if (Auth::user()->role =='manager' || Auth::user()->role =='supmin')Edit | @endif