@extends('accounts.nav') @section('content') @parent {!! Former::open($url)->method($method) ->rules(['product_key' => 'required|max:20']) ->addClass('col-md-8 col-md-offset-2 warn-on-exit') !!}

{!! $title !!}

@if ($product) {{ Former::populate($product) }} {{ Former::populateField('cost', number_format($product->cost, 2, '.', '')) }} @endif {!! Former::text('product_key')->label('texts.product') !!} {!! Former::textarea('notes')->data_bind("value: wrapped_notes, valueUpdate: 'afterkeydown'") !!} {!! Former::text('cost') !!}
{!! Former::actions( Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/company/products'))->appendIcon(Icon::create('remove-circle')), Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) ) !!} {!! Former::close() !!} @stop