@foreach ($request_lists as $item) {{-- @php $tax = $item->unit_price * 0.25 / 100; @endphp --}} @php $pph_nominal = 0; $total = $item->unit_price; if($item->customer_group == "B2B") { $total_exlude = $item->unit_price; $tax = round($item->unit_price * 0.0025); } else { $total_exlude = $item->unit_price; } @endphp @if($item->customer_group == "B2B") @php $pph_nominal = $total + $tax; @endphp {{-- --}} @else @endif @endforeach
reference number invoice Customer Group Customer lokasi awal created at Invoice Date notes notes 2 Value 2 status brand pecahan certificate total before tax tax total after tax Invoice Sell User Input
{{ $item->reference_number }} {{ $item->invoice }} {{ $item->customer_group }} {{ $item->customer }} {{ $item->lokasi }} {{ $item->created_at }} {{ $item->invoice_date }} {{ $item->notes }} {{ $item->notes_2 }} {{ $item->value_2 }} {{ $item->status }} {{ $item->brand }} {{ $item->pecahan }} {{ $item->certificate }}{{ $total_exlude}} {{ $pph_nominal}} ({{$tax}}){{$tax}} {{ $pph_nominal }} - {{ $total_exlude }}{{ $item->invoice_sell }} {{ $item->user }}