@extends('layouts.print') @section('title', 'Cetak Laporan Stok') @section('doc-title', 'Laporan Stok Barang') @section('doc-subtitle', 'Filter: ' . (request('type') == 'bahan_mentah' ? 'Bahan Mentah' : (request('type') == 'produk_jadi' ? 'Produk Jadi' : 'Semua Tipe')) . ' · Per ' . now()->locale('id')->isoFormat('D MMMM Y, HH:mm') ) @section('content') {{-- Summary Cards --}}
Total Barang
{{ $barangs->count() }}
Stok Menipis (≤10)
{{ $barangs->where('stock', '<=', 10)->where('stock', '>', 0)->count() }}
Stok Kosong
{{ $barangs->where('stock', 0)->count() }}
{{-- Tabel --}}
Rincian Status Stok Barang
@forelse($barangs as $i => $b) @empty @endforelse
# Nama Barang Tipe Satuan Stok Status
{{ $i + 1 }} {{ $b->name }} @if($b->type === 'bahan_mentah') Bahan Mentah @else Produk Jadi @endif {{ $b->satuan }} {{ number_format($b->stock) }} @if($b->stock == 0) Habis @elseif($b->stock <= 10) Menipis @else Aman @endif
Tidak ada data barang.
{{-- Area Tanda Tangan --}}
Mengetahui,
( _________________________ )
@endsection