@extends('layouts.app') @section('title', 'Laporan Barang') @section('content') @php $filterQuery = request()->only('category_id', 'division_id', 'status', 'date'); @endphp
Cetak PDF Export WhatsApp
@if (request('date')) {{ date('d/m/Y', strtotime(request('date'))) }} @endif
Bersihkan

Total Stok

{{ $totalStock }}

Total Nilai Barang

Rp {{ number_format($totalValue, 0, ',', '.') }}

@forelse ($items as $item) @empty @endforelse @if ($items->count() > 0) @endif
No Kode Nama Barang Kategori Divisi Stok Harga Total Nilai
{{ ($items->firstItem() ?? 1) + $loop->index }} {{ $item->code }} {{ $item->name }} {{ $item->category->name ?? '-' }} {{ $item->division->name ?? '-' }} {{ $item->stock }} Rp {{ number_format($item->price, 0, ',', '.') }} Rp {{ number_format($item->stock * $item->price, 0, ',', '.') }}
Belum ada data barang.
Total {{ $totalStock }} Rp {{ number_format($totalValue, 0, ',', '.') }}
@if ($items->hasPages())
{{ $items->links() }}
@endif @endsection