@extends('header') @section('content')
{{ Former::open($url)->method($method)->addClass('main_form')->rules(array( 'invoice_number' => 'required', 'invoice_date' => 'required' )); }} @if ($invoice) {{ Former::populate($invoice); }} {{ Former::populateField('invoice_date', fromSqlDate($invoice->invoice_date)); }} {{ Former::populateField('due_date', fromSqlDate($invoice->due_date)); }} @else {{ Former::populateField('invoice_date', date('m/d/Y')) }} @endif
{{ Former::hidden('items')->data_bind("value: ko.toJSON(items)") }}
Item | Description | Unit Cost | Quantity | Line Total |
---|---|---|---|---|
{{ Former::text('product_key')->useDatalist(Product::getProductKeys($products), 'key') ->raw()->data_bind("value: product_key, valueUpdate: 'afterkeydown'")->addClass('datalist') }} | ||||
Subtotal | ||||
Discount | ||||
Invoice Total |
{{ Former::close() }} @stop