| {{ $no }} |
{{ Form::open(['route' => ['invoice-drafts.update-draft-item', $draft->draftKey], 'method' => 'patch']) }}
{{ Form::hidden('item_key['.$key.']', $key) }}
{!! FormField::textarea(
'description['.$key.']',
['id' => 'description-'.$key, 'value' => $item->description, 'label' => false]
) !!}
|
{!! FormField::price(
'amount['.$key.']',
[
'id' => 'amount-'.$key,
'value' => $item->amount,
'label' => false,
'currency' => Option::get('money_sign', 'Rp')
]
) !!}
{{ Form::submit('Update', ['id' => 'update-item-'.$key, 'class' => 'btn btn-success btn-xs pull-right']) }}
|
{{ Form::close() }}
{!! FormField::delete([
'route' => ['invoice-drafts.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]) !!}
|
@endforeach
{{ Form::open(['route' => ['invoice-drafts.add-draft-item', $draft->draftKey]]) }}
|
{!! FormField::textarea(
'new_item_description',
['id' => 'new_item_description', 'label' => false, 'placeholder' => trans('invoice.item_description')]
) !!}
|
{!! FormField::price(
'new_item_amount',
[
'id' => 'new_item_amount',
'label' => false,
'placeholder' => trans('invoice.item_amount'),
'currency' => Option::get('money_sign', 'Rp')
]
) !!}
{{ Form::submit(trans('invoice.add_item'), ['class' => 'btn btn-primary btn-block']) }}
|
{{ Form::close() }}