@extends('header') @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_TAX_RATES]) {!! Former::open($url)->method($method) ->rules([ 'name' => 'required', 'rate' => 'required' ]) ->addClass('warn-on-exit') !!}

{!! $title !!}

@if ($taxRate) {{ Former::populate($taxRate) }} {{ Former::populateField('is_inclusive', intval($taxRate->is_inclusive)) }} @endif {!! Former::text('name')->label('texts.name') !!} {!! Former::text('rate')->label('texts.rate')->append('%') !!} {!! Former::radios('is_inclusive')->radios([ trans('texts.exclusive') => array('name' => 'is_inclusive', 'value' => 0), trans('texts.inclusive') => array('name' => 'is_inclusive', 'value' => 1), ])->inline() ->check(0) ->label('type') !!}
{!! Former::actions( Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/settings/tax_rates'))->appendIcon(Icon::create('remove-circle')), Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) ) !!} {!! Former::close() !!} @stop