{{ trans('transaction.items') }} ({{ $draft->getItemsCount() }} Item, {{ $draft->getTotalQty() }} Pcs)
@forelse($draft->items() as $key => $item) {{ Form::open(['route' => ['cart.update-draft-item', $draft->draftKey], 'method' => 'patch']) }} {{ Form::hidden('item_key', $key) }} {{ Form::submit('update-item-' . $key, ['style'=>'display:none']) }} {{ Form::close() }} @empty @endforelse
# Nama Item Harga Satuan Diskon per Item Qty Subtotal Action
{{ $key + 1 }} {{ $item->name }}
({{ $item->unit }})
{{ formatRp($item->price) }} {{ 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 ]) }} {{ formatRp($item->subtotal) }} {!! 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') }} : {{ formatRp($draft->getSubtotal()) }}
{{ trans('transaction.discount_total') }} : {{ formatRp($draft->getDiscountTotal()) }}
{{ trans('transaction.total') }} : {{ formatRp($draft->getTotal()) }}