@extends('layout') @section('title', 'Add a Company') @section('content') {{ Form::model($company, array('method' => 'PUT', 'route' => array('companies.update', $company->id))) }}

Edit A Company

@if(Session::has('message')) @endif

Go ahead and change the fields that you want to alter. Any fields left untouched will remain the same.

{{ Form::label('accountcode', 'Account Code') }} {{ Form::text('accountcode', $company->accountcode, array('class' => 'form-control')) }}
{{ Form::label('name', 'Company Name') }} {{ Form::text('name', $company->name, array('class' => 'form-control')) }}

Functions

{{ Form::submit('Update Company Details', array('class' => 'btn btn-success btn-block')) }}
{{ Form::close() }}
Cancel and go to detail view Cancel and go to companies
@stop