| # | Nama Item | Harga Satuan | Diskon per Item | Qty | Subtotal | Action |
|---|---|---|---|---|---|---|
| {{ $no }} |
{{ $item->name }} ({{ $item->unit }}) |
{{ format_rp($item->price) }} | {{ Form::open(['route' => ['cart.update-draft-item', $draft->draftKey], 'method' => 'patch']) }} {{ Form::hidden('item_key', $key) }}{{ Form::text('item_discount', $item->item_discount, [ 'id' => 'item_discount-' . $key, 'style' => 'width:80px;text-align:right'] ) }} | {{ Form::number('qty', $item->qty, [ 'id' => 'qty-' . $key, 'style' => 'width:50px;text-align:center', 'min' => 1 ]) }} | {{ format_rp($item->subtotal) }} | {{ Form::submit('update-item-' . $key, ['style'=>'display:none']) }} {{ Form::close() }}{!! FormField::delete([ 'route' => ['cart.remove-draft-item', $draft->draftKey], 'onsubmit' => 'Yakin ingin menghapus Item ini?', 'class' => '', ], 'x', ['id' => 'remove-item-' . $key, 'class' => 'btn btn-danger btn-xs show-on-hover','title' => 'Hapus item ini'], ['item_index' => $key]) !!} |
| {{ trans('transaction.subtotal') }} : | {{ format_rp($draft->getSubtotal()) }} | |||||
| {{ trans('transaction.discount_total') }} : | {{ format_rp($draft->getDiscountTotal()) }} | |||||
| {{ trans('transaction.total') }} : | {{ format_rp($draft->getTotal()) }} | |||||