| {{ $no }} |
{{ Form::open(['route' => ['cart.update-draft-item', $draft->draftKey], 'method' => 'patch']) }}
{{ Form::hidden('item_key', $key) }}
{{ Form::text('description', $item->description, ['id' => 'description-' . $key]) }} |
{{ Form::number('amount', $item->amount, ['id' => 'amount-' . $key]) }}
|
{{ 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]) !!}
|
@empty
@endforelse
|
{{ Form::open(['route' => ['cart.add-draft-item', $draft->draftKey]]) }}
{{ Form::text('description', null, ['id' => 'description']) }} |
{{ Form::number('amount', null, ['id' => 'amount']) }}
|
{{ Form::submit('add-item', ['class' => 'btn btn-primary']) }} |
{{ Form::close() }}