Data {{ $title }}
@if (isset($_GET['user_id']) && $_GET['user_id'] !== '')
@else
@endif
Nama Karyawan : {{$user->name}}
No | Penjualan | Barang | Keterangan | Tanggal penjualan | Harga Seluruh Barang |
---|---|---|---|---|---|
{{ $loop->iteration }} | {{$p->no_penjualan}} | @foreach ($p->detail as $dd) @php $hargaDiskon = $dd->harga_barang->harga_jual - $dd->diskon; $ttl += $dd->jumlah * $dd->harga_barang->harga_jual; $laba += $ttl-($dd->harga_barang->harga_beli * $dd->jumlah); @endphp {{$dd->hasHargaBarang->barang->nm_barang}} {{ count($p->detail) == $loop->iteration ? '' : ',' }} @endforeach | {{$p->keterangan}} | {{$p->tgl_penjualan}} | @php $total_seluruh = 0; @endphp @foreach ($p->detail as $dd) @php $disc = $dd->harga_barang->harga_jual - $dd->diskon; $total_seluruh += $dd->jumlah * $dd->harga_barang->harga_jual; @endphp @endforeach {{ 'Rp. ' . number_format($total_seluruh)}} |
Total Harga + Diskon | {{ 'Rp ' . number_format($ttl) }} |
No | Nama | Waktu Dibuat | Pendapatan |
---|---|---|---|
{{ $no++ }} | {{ $data->name }} | {{ date('Y-m-d',strtotime($data->created_at)) }} | @foreach($data->penjualan as $p) @foreach($p->detail as $dd)Rp.{{ number_format($ttl) }} |