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

Data {{ $title }}

@foreach($datas as $data) @foreach($data->detail as $detail)
Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 194

Warning: Attempt to read property "harga_barang" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 194

Warning: Attempt to read property "harga_jual" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 194

Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 194

Warning: Attempt to read property "diskon" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 194

Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 212

Warning: Attempt to read property "jumlah" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/penjualan/penjualan.blade.php on line 212
@endforeach @endforeach
No No penjualan Tanggal penjualan Pelanggan Keterangan (Metode Bayar, Bank, Kode Bank)
{{ $no++ }} {{ $data->no_penjualan }} {{ $data->tgl_penjualan }} {{ $data->nama_pelanggan }} {{ $data->cara_pembayaran }} @if($data->cara_pembayaran != 'Cash') - {{ @$data->bank->nm_bank }} - {{ @$data->kode_bank }} @endif
Kode Barang Nama Barang Kategori Harga Beli Harga Jual Disc Harga Setelah Di Diskon Jumlah Total Laba
{{ $detail->harga_barang->kd_barang }} {{ $detail->harga_barang->barang->nm_barang }} {{ $detail->harga_barang->barang->kategori->nm_kategori }} Rp.{{ number_format($detail->harga_barang->harga_beli) }} Rp.{{ number_format($detail->harga_barang->harga_jual) }} Rp.{{ number_format($detail->diskon) }} Rp.{{ number_format($hargaDiskon) }} {{ $detail->jumlah }} Rp.{{ number_format($detail->jumlah * $hargaDiskon) }} {{ number_format((@$hargaDiskon - @$detail->harga_barang->harga_beli) * $detail->jumlah) }}
Total Beli Total Jual Total Setelah Di Diskon Total QTY Grand Total Total Laba
Rp. {{ number_format($total_beli) }} Rp. {{ number_format($total_jual)}} Rp. {{number_format($total_diskon)}} {{ $total_jumlah}} Rp. {{number_format($total)}} Rp. {{number_format($total_laba)}}
@endsection