@extends('layouts.app') @section('content')

Product List

@if (auth()->user()->hasRole('wholeseller'))
 
 
@endif
{{-- --}}
@if (!empty($products) && $products->count()) @foreach ($products as $key => $product) @endforeach @else @endif
# Name Category Company Origin Avl Qty Exp Date Status Action
{{ $key + 1 }} @if ($product->image == null)
@else
@endif
{{ $product->name }}
{{ $product->category?->name ?? 'NA' }}
{{ $product->company ?? 'NA' }}
{{ $product->origin_country ?? 'NA' }} {{ $product->total_available_quantity ?? 'NA' }} {{ $product->expiery_date ?? 'NA' }} @if ($product->status == 0) id }} data-status="1" data-action="{{ route('change-status') }}">Inactive @else id }} data-status="0" data-action="{{ route('change-status') }}">Active @endif
No matching records found
{{ $products->links() }}
@endsection @push('script') @endpush