@php $total_tagihan = 0; $total_pembayaran = 0; $total_potongan = 0; @endphp @foreach ($invoice as $row) @php $total_tagihan += $row->gross_amount; $total_pembayaran += $diterima; $total_potongan += $row->fee_admin; @endphp @endforeach
No Tgl. Invoice No. Invoice Pelanggan Produk Harga Tax Tagihan Status Potongan Pendapatan Metode Bayar Tgl. Transaksi
{{ $loop->index + 1 }} {{ tgl_indo($row->tgl_invoice) }} {{ $row->no_invoice }} {{ $row->jenis_customer }} {{ $row->nama }} {{ $row->item_details_name }} {{ rupiah($row->item_details_price) }} {{ rupiah($row->tax) }} {{ rupiah($row->gross_amount) }} @if ($row->status_invoice == 'settlement') Lunas @elseif ($row->status_invoice == 'Belum Dibayar') Belum Dibayar @else {{ $row->status_invoice }} @endif {{ rupiah($row->fee_admin) }} {{ rupiah($diterima=$row->gross_amount - $row->fee_admin) }} @if ($row->payment_type == 'gopay') Gopay @elseif ($row->payment_type == 'bank_transfer') Bank Transfer @elseif ($row->payment_type == 'cstore') Alfamart @elseif ($row->payment_type == 'echannel') Bank Mandiri @else {{ $row->payment_type }} @endif @if (!empty($row->tgl_pembayaran)) {{ tgl_indo($row->tgl_pembayaran) }} - {{ $row->jam_pembayaran }}WIB @endif
{{ rupiah($total_tagihan) }} {{ rupiah($total_potongan) }} {{ rupiah($total_pembayaran) }}