@extends('header') @section('content') {!! Former::open($url) ->addClass('col-md-10 col-md-offset-1 warn-on-exit') ->method($method) ->rules([ 'name' => 'required', ]) !!} @if ($category) {!! Former::populate($category) !!} @endif {!! Former::text('public_id') !!}

{!! trans('texts.category') !!}

{!! Former::text('name') !!}
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(url('/expense_categories'))->appendIcon(Icon::create('remove-circle')) !!} {!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!} @if ($category && Auth::user()->can('create', ENTITY_EXPENSE)) {!! Button::primary(trans('texts.new_expense'))->large() ->asLinkTo(url("/expenses/create/0/0/{$category->public_id}")) ->appendIcon(Icon::create('plus-sign')) !!} @endif
{!! Former::close() !!} @stop