{{ trans('invoice.items') }} ({{ $draft->getItemsCount() }} Item)
@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 {{ Form::open(['route' => ['cart.add-draft-item', $draft->draftKey]]) }} {{ Form::close() }}
# Deskripsi Biaya Action
{{ $no }} {{ Form::text('description', $item->description, ['id' => 'description-' . $key]) }} {{ Form::number('amount', $item->amount, ['id' => 'amount-' . $key]) }} {!! 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]) !!}
{{ Form::text('description', null, ['id' => 'description']) }} {{ Form::number('amount', null, ['id' => 'amount']) }} {{ Form::submit('add-item', ['class' => 'btn btn-primary']) }}
{{ trans('invoice.amount') }} : {{ formatRp($draft->getTotal()) }}