@extends('layouts.dashboard') @section('title', $staff->exists ? 'Edit staff ' : 'Add staff ' . Options::get('title') ) @section('content')

{{ $staff->exists ? 'Edit staff ' : 'Add staff' }}

{{ Form::model($staff, [ 'route' => $staff->exists ? 'dashboard.staffs.update' : 'dashboard.staffs.create', 'method' => 'post', 'id' => 'add_staffs_form' ]) }} @if( $staff->exists ) @endif
{{ Form::label('first_name') }} {{ Form::text('first_name', null, ['class' => 'form-control staff_first_name', 'placeholder' => 'John'])}}
{{ Form::label('email') }} {{ Form::email('email', null, ['class' => 'form-control staff_email', 'placeholder' => 'john@company.com'])}}
{{ Form::label('password') }} {{ Form::password('password', ['class' => 'form-control staff_password'])}}
{{ Form::label('department_id', 'Department') }} {{ Form::select('department_id', $departments, null, ['class' => 'form-control staff_department'])}}
{{ Form::label('role_name')}} {{ Form::text('role_name', null, ['class' => 'form-control staff_role', 'placeholder' => 'e.g. Support Developer'])}}
{{ Form::close() }}
@stop