@php use App\Models\RequestBarang; use App\Models\InvoicePembelianDetail; use App\Models\ReturRequestBarang; @endphp
{{-- If your happiness depends on money, you will never be happy with yourself. --}}

Data Request Barang @if (session()->has('pesan')) {{ session('pesan') }} @endif


@if(Auth::user()->level == 'Warehouse') @endif @foreach ($request_barang as $row) @php $details = RequestBarangDetail::where( 'id_hrd_request', $row->id_hrd_request, ) ->where('status_barang', '!=', 'Gagal') ->get(); $total = 0; // Inisialisasi total @endphp @foreach ($details as $detail) @php $subtotal = $detail->harga_satuan * $detail->jumlah + $detail->ppn; $total += $subtotal; @endphp @endforeach @if(Auth::user()->level == 'Warehouse') @endif @endforeach
No No Surat/ Tgl PO Vendor Tujuan Catatan Status Purchase Order (PO) Invoice Pembelian Tgl. Pelunasan Status Finance Direktur ActionSend
Total PO (Rp) DP (Rp) Piutang (Rp) Invoice Pembayaran
{{ $loop->index + 1 }} {{ $row->no_surat }}
Tgl : {{ tgl_indo($row->tgl_request) }}
inventory.pt.mms@gmail.com
{{ $row->nama_vendor }} {{ $row->tujuan_po }} {!! $row->catatan !!}{{ number($total) }} @if ($row->nilai_dibayar) {{ number($row->nilai_dibayar) }}
{{ tgl_indo($row->tgl_nilai_dibayar) }} @else 0 @endif
@if ($row->nilai_dibayar) {{ number($row->belum_dibayar) }} @else 0 @endif @if ($row->tgl_setelment) {{ tgl_indo($row->tgl_setelment) }} @endif @if(!empty($row->jenis_rekening))
@else
@endif
@if($row->acc_finance_date) {{ tgl_indo($row->acc_finance_date) }} | {{ date('H:i', strtotime($row->acc_finance_date)) }} @endif
@if($row->acc_direktur_date) {{ tgl_indo($row->acc_direktur_date) }} | {{ date('H:i', strtotime($row->acc_direktur_date)) }} @endif
{{-- ini adalah tombol retur --}} @if ($session->level == 'Super Finance' || $session->nama_jabatan == 'Cashier' || $session->level == 'Super Admin') @endif

{{ $request_barang->links() }} Loading.....
@push('scripts') @endpush