Daftar Penjualan
No |
No. Nota |
Tanggal Penjualan |
Daftar Produk |
Total |
Diskon |
Total Belanja |
Metode Pembayaran |
{{-- Status Pembayaran | --}}
{{-- @if (auth()->user()->role != 'Kasir')
Status Pengiriman |
@endif
@if (auth()->user()->role != 'Owner')
Aksi |
@endif
--}}
@php
$nomor = 1;
$totalpemasukan = 0;
@endphp
@foreach ($penjualan as $item)
{{ $nomor++ }} |
{{ $item->notajual }} |
{{ date('d-m-Y', strtotime($item->tanggalpenjualan)) }} |
Produk |
Jumlah |
Harga |
@if (!empty($item->penjualandetail) && $item->penjualandetail->count() > 0)
@foreach ($item->penjualandetail as $detail)
{{ $detail->namabarang }} |
{{ $detail->jumlah }} |
{{ rupiah($detail->harga) }} |
@endforeach
@else
Tidak ada data |
@endif
|
@php
$total_sebelum_diskon =
$item->diskon > 0
? $item->grandtotal / (1 - $item->diskon / 100)
: $item->grandtotal;
$totalpemasukan += $item->grandtotal;
@endphp
{{ rupiah($total_sebelum_diskon) }} |
{{ $item->diskon }} % |
{{ rupiah($item->grandtotal) }} |
{{ $item->metodepembayaran }} |
{{--
@if ($item->statuspembayaran == 'Lunas')
@else
@endif
| --}}
{{-- @if (auth()->user()->role != 'Kasir')
|
@endif --}}
@if (auth()->user()->role != 'Owner')
Nota
{{-- Hapus --}}
|
@endif
@endforeach
Total Pemasukan : |
{{ rupiah($totalpemasukan) }} |
@foreach ($penjualan as $key => $item)
No |
Nama Barang |
Harga |
Jumlah |
Total Harga |
@php $no = 1; @endphp
@if ($item->penjualandetail && $item->penjualandetail->count() > 0)
@foreach ($item->penjualandetail as $detail)
{{ $no++ }} |
{{ $detail->namabarang }} |
{{ rupiah($detail->harga) }} |
{{ $detail->jumlah }} |
{{ rupiah($detail->total) }} |
@endforeach
@else
Tidak ada data |
@endif
@endforeach