@extends('front.layouts.main') @section('content')
@if (Auth::user()->role =='supmin') @endif @foreach($listings as $key => $listing) @if (Auth::user()->role =='supmin') @endif @if (Auth::user()->role =='manager' || Auth::user()->role =='supmin') @endif @endforeach
ID Picture Name Quantity Costing Price Category Bar Code Sku or Model SuplierDeleteEdit
{{$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}} {{$listing->sku_or_model}} @php $suppliers = DB::table('supplier_details')->where('id', $listing->suppliers)->first(); @endphp {{$suppliers->supplier_name ?? ''}} Delete Edit
@endsection @section('js') @endsection @section('modal') @endsection