@extends('header')
@section('content')
@parent
@include('accounts.nav', ['selected' => ACCOUNT_PAYMENT_TERMS])
{!! Former::open($url)->method($method)
->rules([
'name' => 'required',
'num_days' => 'required'
])
->addClass('warn-on-exit') !!}
{!! $title !!}
@if ($paymentTerm)
{{ Former::populate($paymentTerm) }}
@endif
{!! Former::text('name')->label('texts.name') !!}
{!! Former::text('num_days')->label('texts.num_days') !!}
{!! Former::actions(
Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/settings/payment_terms'))->appendIcon(Icon::create('remove-circle')),
Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk'))
) !!}
{!! Former::close() !!}
@stop