@extends('admin.layouts.app') @section('title','Product / Inventory Report') @section('breadcrumb') / Reports / Products @endsection @section('content')
Total Products
{{ $summary['total'] }}
Total Stock In
{{ $summary['total_in'] }}
Total Stock Out
{{ $summary['total_out'] }}
Low / Out of Stock
{{ $summary['low_stock'] }} / {{ $summary['out_of_stock'] }}
Product Records
{{ $products->count() }} records
@forelse($products as $p) @php $stockColor = $p->current_quantity == 0 ? 'danger' : ($p->current_quantity < 10 ? 'warning' : 'success'); @endphp @empty @endforelse
CodeNameCategoryUnitCurrent StockTransactionsStatus
{{ $p->product_code }} {{ $p->product_name }} {{ $p->category ?? '—' }} {{ $p->unit ?? '—' }} {{ $p->current_quantity }} {{ $p->stockTransactions->count() }} {{ ucfirst($p->status) }}
No products found
@endsection @push('scripts') @endpush