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

Daftar Penjualan

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