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