Daftar Penjualan
@if(session('success'))
{{ session('success') }}
@endif
No |
No. Nota |
Tanggal |
Nama Pembeli |
No. Telp |
Alamat |
Daftar Produk |
Total |
DP |
Bayar |
Sisa Bayar |
Kembalian |
Metode |
Status Pembayaran |
Status Pengiriman |
Aksi |
@php $no = 1; @endphp
@foreach ($penjualan as $item)
{{ $no++ }} |
{{ $item->notajual }} |
{{ date('d-m-Y', strtotime($item->tanggalpenjualan)) }} |
{{ $item->namapembeli ?? '-' }} |
{{ $item->notelp ?? '-' }} |
{{ $item->alamat ?? '-' }} |
Nama Produk |
Jumlah |
Harga |
@foreach ($item->penjualandetail as $detail)
{{ $detail->namaproduk }} |
{{ $detail->jumlah_pembelian }} |
{{ rupiah($detail->harga) }} |
@endforeach
|
{{ rupiah($item->grandtotal) }} |
{{ rupiah($item->dp ?? 0) }} |
{{ rupiah($item->bayar ?? 0) }} |
{{ rupiah($item->sisabayar ?? 0) }} |
{{ rupiah($item->kembali ?? 0) }} |
{{ $item->metodepembayaran }} |
{{ $item->statuspembayaran }} |
|
@if($item->statuspembayaran == 'DP' && $item->sisabayar > 0)
@else
Tuntas
@endif
{{-- --}}
|
@endforeach
{{-- Modal Pelunasan
@foreach ($penjualan as $item)
@if($item->statuspembayaran == 'DP' && $item->sisabayar > 0)
@endif
{{-- Modal Ubah Status Pengiriman
@endforeach --}}