@php $grandTotal = 0; @endphp @forelse($data as $key => $item) @php $grandTotal += floatval($item->grand_total); @endphp @if($key != 0) @endif @foreach($item->selling_details as $itemDetail) @endforeach @empty @endforelse
Kode Tgl Pembayaran Pelanggan Pengguna Total Discount Ppn Grand Total
{{$item->code}} {{$item->date}} {{$item->transaction_type}} Pelanggan : {{$item->customer ? $item->customer->name : "-"}}
@if($item->customer) Sales : {{$item->customer->seller ? $item->customer->seller->name : "-"}} @endif
{{ $item->user ? $item->user->username : "-" }} {{ number_format($item->total ?? 0,2,',','.') }} @if($item->discount_type == "NOMINAL") ( RP ) @else ( % ) @endif {{ number_format($item->discount ?? 0,2,',','.') }} {{ number_format($item->tax ?? 0,2,',','.') }} {{ number_format($item->grand_total ?? 0,2,',','.') }}
Detail Transaksi
Kode Barang Nama Barang Satuan Harga Jumlah Total
{{$itemDetail->product ? $itemDetail->product->code : "-"}} {{$itemDetail->product ? $itemDetail->product->name : "-"}} {{$itemDetail->product ? $itemDetail->product->selling_unit : "-"}} {{ number_format($itemDetail->price ?? 0,2,',','.') }} {{ number_format($itemDetail->quantity ?? 0,2,',','.') }} {{ number_format($itemDetail->amount ?? 0,2,',','.') }}
Data tidak ditemukan
Total Penjualaan
{{ number_format($grandTotal ?? 0,2,',','.') }}