@extends('components.layout.master') @section('title', ' Product') @section('module-icon', 'fab fa-product-hunt') @section('breadcrumb') @endsection @section('content')

@if ($prodcutList->isEmpty()) @else @foreach ($prodcutList as $product) {{-- @dd($product->category); --}} @endforeach @endif
No. Product Name Category Type Product Image Status Action
No records found.
{{ $loop->iteration }} {{ $product->name }} {{ $product->category->name ?? '' }} @if ($product->productType->isNotEmpty())
@foreach ($product->productType as $type) {{ $type->type }} @endforeach
@else - @endif
@if (!empty($product->imageName)) {{ $product->name }} @else @endif @if ($product->status == 0) Inactive @elseif ($product->status == 1) Active @endif
@include('components.footertext')
@endsection @push('script') @endpush