You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
<div class="panel-body table-responsive">
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ trans('product.name') }}</th>
|
|
<th>{{ trans('product.unit') }}</th>
|
|
<th>{{ trans('product.price') }} ({{ $draft->type }})</th>
|
|
<th>{{ trans('app.action') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($queriedProducts as $product)
|
|
<tr>
|
|
<td>{{ $product->name }}</td>
|
|
<td>{{ $product->unit->name }}</td>
|
|
<td>{{ formatRp($draft->type == 'cash' ? $product->cash_price : $product->credit_price) }}</td>
|
|
<td>
|
|
<form action="{{ route('cart.add-draft-item', [$draft->draftKey, $product->id]) }}" method="post" style="display:inline">
|
|
{{ csrf_field() }}
|
|
<input type="number" id="qty-{{ $product->id }}" style="width:50px" name="qty" value="1" min="1">
|
|
<input type="submit" id="add-product-{{ $product->id }}" value="Tambah">
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="3">
|
|
Produk tidak ditemukan dengan keyword : <strong><em>{{ request('query') }}</em></strong>
|
|
</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|