@extends('template.app') @section('title', 'Daftar Pembelian') @section('css') @endsection @section('breadcrumb') @endsection @section('content')
@include('components.toast-notification')
@foreach($purchaseTransactions as $transaction) @endforeach
No. Referensi Tanggal Pembelian Nama Supplier Metode Pembayaran Status Pembayaran Status Pembelian Total Pembelian Sisa Pembayaran Nama Toko Aksi
{{ $transaction->reference_no }} Tanggal Pembelian {{ $transaction->supplier_name }} @php $paymentMethodBadges = [ 'cash' => 'Tunai', 'bank_transfer' => 'Transfer', 'tempo' => 'Tempo' ]; @endphp {!! $paymentMethodBadges[$transaction->payment_method] ?? 'Lainnya' !!}
@if($transaction->payment_status == 'lunas') Lunas @else {{ $transaction->payment_status }} @endif @if($transaction->isreturn == 'yes') @endif
DIPESAN / DITERIMA ? Rp. {{ number_format($transaction->total_purchase, 0, ',', '.') }} Rp. {{ number_format($transaction->remaining_payment, 0, ',', '.') }} {{ $transaction->store_name }}
@endsection @section('js') @endsection