| {{ $no }} |
{{ Form::open(['route' => ['invoices.items.update', $invoice], '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(__('app.update'), ['id' => 'update-item-'.$key, 'class' => 'btn btn-success btn-xs pull-right']) }}
|
{{ Form::close() }}
{!! FormField::delete([
'route' => ['invoices.items.destroy', $invoice],
'class' => '',
], 'x', ['id' => 'remove-item-'.$key, 'class' => 'btn btn-danger btn-xs show-on-hover', 'title' => __('invoice.item_remove')], ['item_index' => $key]) !!}
|
@endforeach
{{ Form::open(['route' => ['invoices.items.store', $invoice]]) }}
|
{!! FormField::textarea(
'new_item_description',
['id' => 'new_item_description', 'label' => false, 'placeholder' => __('invoice.item_description')]
) !!}
|
{!! FormField::price(
'new_item_amount',
[
'id' => 'new_item_amount',
'label' => false,
'placeholder' => __('invoice.item_amount'),
'currency' => Option::get('money_sign', 'Rp')
]
) !!}
{{ Form::submit(__('invoice.add_item'), ['class' => 'btn btn-primary btn-block']) }}
|
{{ Form::close() }}