@extends('layouts.app') @section('title', 'Products') @section('page', 'Products') @section('content')

Products

Manage your product inventory

@can('create_products')
Add Product
@endcan
{{-- Filter Bar --}}
@canany(['edit_products', 'delete_products']) @endcanany @forelse($products as $product) @canany(['edit_products', 'delete_products']) @endcanany @empty @endforelse
Product Category Batch Cost Sell Promo Stock Expiry StatusActions
@if($product->image) @else
@endif
{{ $product->name }}

{{ $product->generic_name }}

{{ $product->category->name }} {{ $product->batch_no ?? '-' }} ${{ number_format($product->cost_price, 2) }} ${{ number_format($product->selling_price, 2) }} @if($product->isOnPromo()) ${{ number_format($product->promo_price, 2) }} @else - @endif @if($product->isLowStock()) {{ $product->quantity }} @else {{ $product->quantity }} @endif {{ displayDate($product->expiry_date) }} @if($product->isExpired()) Expired @endif @if($product->is_active) Active @else Inactive @endif
@can('edit_products') @endcan @can('delete_products')
@csrf @method('DELETE')
@endcan

No products found

{{ $products->links() }}
{{-- Import Modal --}} @endsection