@extends('header') @section('onReady') $('input#name').focus(); @stop @section('content') {{ Former::open($url)->addClass('col-md-10 col-md-offset-1 main_form')->method($method)->rules(array( 'name' => 'required', 'email' => 'email' )); }} @if ($payment) {{ Former::populate($payment) }} @endif
@if ($payment) {{ Former::legend('Edit Payment') }} @else {{ Former::legend('New Payment') }} @endif {{ Former::text('name') }} {{ Former::text('work_phone')->label('Phone') }} {{ Former::textarea('notes') }}
{{ Button::lg_primary_submit('Save') }}  |  {{ link_to('payments/' . ($payment ? $payment->public_id : ''), 'Cancel') }}
{{ Former::close() }} @stop