@extends('header') @section('head') @parent @stop @section('content')
{{ Former::open($url)->method($method)->addClass('main_form')->rules(array( 'client' => 'required', 'invoice_number' => 'required', 'invoice_date' => 'required', 'product_key' => 'max:14', )); }} @if ($invoice) {{ Former::populate($invoice); }} {{ Former::populateField('id', $invoice->public_id); }} {{ Former::populateField('invoice_date', Utils::fromSqlDate($invoice->invoice_date)); }} {{ Former::populateField('due_date', Utils::fromSqlDate($invoice->due_date)); }} @else {{ Former::populateField('invoice_number', $invoiceNumber) }} {{ 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')->onkeyup('onChange()') ->raw()->data_bind("value: product_key, valueUpdate: 'afterkeydown'")->addClass('datalist') }} | ||||
Subtotal | ||||
Paid to Date | ||||
Discount | ||||
Invoice Total |
{{ Former::close() }} @stop