@extends('header') @section('content') @parent {!! Former::open($url) ->method($method) ->autocomplete('off') ->rules(['product_key' => 'required|max:255']) ->addClass('col-lg-10 col-lg-offset-1 main-form warn-on-exit') !!} @if ($product) {{ Former::populate($product) }} {{ Former::populateField('cost', Utils::roundSignificant($product->cost)) }} @endif {!! Former::text('public_id') !!} {!! Former::text('action') !!}
{!! Former::text('product_key')->label('texts.product') !!} {!! Former::textarea('notes')->rows(6) !!} @include('partials/custom_fields', ['entityType' => ENTITY_PRODUCT]) {!! Former::text('cost') !!} @if ($account->invoice_item_taxes) @include('partials.tax_rates') @endif
@foreach(Module::getOrdered() as $module) @if(View::exists($module->alias . '::products.edit'))

{{ $module->name }}

@includeIf($module->alias . '::products.edit')
@endif @endforeach
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(HTMLUtils::previousUrl('/products'))->appendIcon(Icon::create('remove-circle')) !!} {!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!} @if ($product) {!! DropdownButton::normal(trans('texts.more_actions')) ->withContents($product->present()->moreActions()) ->large() ->dropup() !!} @endif
{!! Former::close() !!} @stop