@extends('layouts.admin') @section('content')

Daftar Barang Masuk

@if (session('success'))
{{ session('success') }}
@endif
@if (auth()->user()->role == 'Admin') @endif @php $nomor = 1; $totalpengeluaran = 0; @endphp @foreach ($pembelian as $item) @if (auth()->user()->role == 'Admin') @endif @php $totalpengeluaran += $item->grandtotal; @endphp @endforeach @if (auth()->user()->role == 'Admin') @endif
No No. Nota Tanggal Barang Masuk Daftar Barang Total BelanjaAksi
{{ $nomor++ }} {{ $item->notabeli }} {{ date('d-m-Y', strtotime($item->tanggalpembelian)) }} @foreach ($pembeliandetail[$item->notabeli] as $barang) @endforeach
Produk Jumlah HPP
{{ $barang->namabarang }} {{ $barang->jumlah }} {{ number_format($barang->harga) }}
{{ number_format($item->grandtotal) }} Edit Hapus
Total Pengeluaran : {{ number_format($totalpengeluaran) }}
{{-- Modal status pembelian --}} @php $no = 1; @endphp @foreach ($pembelian as $item) @php $no++; @endphp @endforeach
@endsection @section('script') @once @endonce @endsection