@extends('layouts.app') @push('scripts') @endpush @section('content')

Data {{ $title }}

@foreach($datas as $data) @foreach($data->pembelian->detail as $detail)
Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Attempt to read property "harga_barang" on null in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Attempt to read property "harga_beli" on null in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Attempt to read property "harga_barang" on null in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Attempt to read property "harga_beli" on null in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206

Warning: Attempt to read property "diskon" on null in /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/laporan/pembelian/realisasi_pembelian.blade.php on line 206
@php $gttl += $hargaDiskon * $detail->jumlah; $ttlb += $detail->jumlah; @endphp @endforeach @endforeach
No No Pembelian Supplier Tanggal Pembelian Tanggal Realisasi Prepared By Approved By Reviewed By Keterangan
{{ $no++ }} {{ $data->no_pembelian }} {{ $data->pembelian->supplier->nm_supplier }} {{ $data->pembelian->tgl_pembelian }} {{ $data->tgl_realisasi }} {{ $data->prepared->name }} {{ ($data->approved->name) ?? "-" }} {{ ($data->reviewed->name) ?? "-" }} {{ $data->keterangan }}
Kode Barang Nama Barang Harga Jumlah Disc Total
{{ $detail->harga_barang->kd_barang }} {{ $detail->harga_barang->barang->nm_barang }} Rp.{{ number_format($detail->harga_barang->harga_beli) }} {{ $detail->jumlah }} {{ $detail->diskon }}% Rp.{{ number_format($hargaDiskon * $detail->jumlah) }}
Grand Total : Rp. {{ number_format($gttl) }}
Total Qty : {{ $ttlb }}
@endsection