@extends('layouts.admin')
@section('title', 'Dashboard Admin - Barang Management')
@section('content')
@php
$breadcrumbs = [
['label' => 'Dashboard', 'url' => route('admin.dashboard')],
['label' => 'Master', 'url' => '#'],
['label' => 'Barang', 'url' => route('admin.master.materials.index')]
];
@endphp
Total Gabungan
{{ $totalItems ?? $combinedItems->total() }}
Aktif
{{ $activeItems ?? 0 }}
Stock Rendah
{{ $lowStockItems ?? 0 }}
Nonaktif
{{ $inactiveItems ?? 0 }}
| No | Gambar | Kode | Nama | Tipe | Brand | No Part | Stock | Unit | Harga | Status | Aksi | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $combinedItems->firstItem() + $loop->index }} |
@if($item['image_path'])
|
{{ $item['code'] }} |
{{ $item['name'] }}
@if(($item['damaged_stock'] ?? 0) > 0)
{{ number_format($item['damaged_stock'], 0, ',', '.') }}
@endif
|
{{ ucfirst($item['type']) }} | {{ $item['brand'] }} | {{ $item['part_number'] }} | {{ $item['stock'] }} | {{ $item['unit'] }} | Rp {{ number_format($item['price'], 0, ',', '.') }} | {{ $item['is_active'] ? 'Aktif' : 'Nonaktif' }} | ||
|
Belum ada data gabungan |
||||||||||||