@extends('layouts.app') @section('title', 'Laporan Stok') @section('page-title', 'Laporan Stok Produk') @section('content')
{{-- Summary Cards --}}
NILAI STOK (MODAL)
Rp {{ number_format($stockValue->total_value ?? 0, 0, ',', '.') }}
NILAI STOK (JUAL)
Rp {{ number_format($stockValue->potential_value ?? 0, 0, ',', '.') }}
POTENSI PROFIT
Rp {{ number_format(($stockValue->potential_value ?? 0) - ($stockValue->total_value ?? 0), 0, ',', '.') }}
TOTAL PRODUK
{{ $products->total() }}
{{-- Filter --}}
Reset
{{-- Tabel Stok --}}
@forelse($products as $p) @empty @endforelse
Produk Kategori Harga Modal Harga Jual Stok Min. Stok Nilai Modal Nilai Jual Status
{{ $p->name }}
{{ $p->sku }}
{{ $p->category?->name ?? '—' }} Rp {{ number_format($p->cost_price, 0, ',', '.') }} Rp {{ number_format($p->selling_price, 0, ',', '.') }} @if(!$p->track_stock) @else {{ $p->stock }} {{ $p->unit }} @endif {{ $p->min_stock }} Rp {{ number_format($p->cost_price * $p->stock, 0, ',', '.') }} Rp {{ number_format($p->selling_price * $p->stock, 0, ',', '.') }} @if($p->is_low_stock) ⚠️ Menipis @else ✅ Aman @endif
Tidak ada data produk
{{ $products->withQueryString()->links() }}
@endsection