@extends('layout') @section('title', 'Edit Job') @section('content') {{ Form::model($job, array('method' => 'PUT', 'route' => array('jobs.update', $job->id), 'id' => 'edit-job')) }}

Edit A Job

@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('jobnumber', 'Job Number') }} {{ Form::text('jobnumber', $job->jobnumber, array('class' => 'form-control')) }}
{{ Form::label('administrator', 'Administrator') }} {{ Form::select('administrator', $administrators, $job->administrator->id, array('class' => 'form-control')) }}
{{ Form::label('company', 'Company Name') }} {{ Form::select('company', Company::lists('name', 'id'), $job->contact->company->id, array('class' => 'form-control')) }}
{{ Form::label('contact', 'Contact Name') }} {{ Form::select('contact', Contact::where('company_id', $job->contact->company->id)->lists('name', 'id'), $job->contact->id, array('class' => 'form-control')) }}

Functions

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