@php $grandTotal = 0; @endphp @forelse($data as $key => $item) @php $grandTotal += floatval($item->grand_total); @endphp @if($key != 0) @endif @foreach($item->purchaseing_details as $itemDetail) @endforeach @empty @endforelse
Kode Tgl Pembayaran Supplier Pengguna Total Discount Ppn Grand Total
{{$item->code}} {{$item->date}} {{$item->transaction_type}} {{$item->supplier ? $item->supplier->name : "-"}} {{ $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
Nama Barang Satuan Harga Jumlah Total
{{$itemDetail->product ? $itemDetail->product->name : "-"}} {{$itemDetail->product ? $itemDetail->product->purchase_unit : "-"}} {{ number_format($itemDetail->price ?? 0,2,',','.') }} {{ number_format($itemDetail->quantity ?? 0,2,',','.') }} {{ number_format($itemDetail->amount ?? 0,2,',','.') }}
Data tidak ditemukan
Total Pembelian
{{ number_format($grandTotal ?? 0,2,',','.') }}