48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
@include('components.theme.pages.header')
|
|
<section>
|
|
<!-- basic table -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
|
|
<!-- <div class="container"> -->
|
|
<h1>Pembelian Produk</h1>
|
|
<a href="{{ route('suppliers.create') }}" class="btn btn-success">Beli Produk</a>
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Nama Supplier</th>
|
|
<th>Nama Produk</th>
|
|
<th>Jumlah</th>
|
|
<th>Harga</th>
|
|
<th>Metode Pembayaran</th>
|
|
<th>Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($suppliers as $supplier)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $supplier->nama_supplier }}</td>
|
|
<td>{{ $supplier->nama_produk }}</td>
|
|
<td>{{ $supplier->jumlah }}</td>
|
|
<td>{{ $supplier->harga }}</td>
|
|
<td>{{ $supplier->payment_method}}</td>
|
|
<td>
|
|
@if ($supplier->payment_method == "hutang" && $supplier->status == 'unpaid')
|
|
<a href="{{ route('transaksi.hutang', $supplier->id) }}" class="btn btn-primary">Lunasi Hutang</a>
|
|
@else
|
|
<span class="badge badge-success">Lunas</span>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<!-- </div> -->
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
@include('components.theme.pages.footer') |