@if (isset($contract)) {!! Form::model($contract, array('url' => $type . '/' . $contract->id, 'method' => 'put', 'files'=> true)) !!} @else {!! Form::open(array('url' => $type, 'method' => 'post', 'files'=> true)) !!} @endif
{!! Form::label('start_date', trans('contract.start_date'), array('class' => 'control-label required')) !!}
{!! Form::text('start_date', null, array('class' => 'form-control date')) !!} {{ $errors->first('start_date', ':message') }}
{!! Form::label('end_date', trans('contract.end_date'), array('class' => 'control-label required')) !!}
{!! Form::text('end_date', null, array('class' => 'form-control date')) !!} {{ $errors->first('end_date', ':message') }}
{!! Form::label('description', trans('contract.description'), array('class' => 'control-label required')) !!}
{!! Form::text('description', null, array('class' => 'form-control')) !!} {{ $errors->first('description', ':message') }}
{!! Form::label('company_id', trans('contract.company'), array('class' => 'control-label required')) !!}
{!! Form::select('company_id', $companies, null, array('id'=>'company_id', 'class' => 'form-control select2')) !!} {{ $errors->first('company_id', ':message') }}
{!! Form::label('resp_staff_id', trans('contract.resp_staff_id'), array('class' => 'control-label required')) !!}
{!! Form::select('resp_staff_id', $staffs, null, array('id'=>'resp_staff_id', 'class' => 'form-control select2')) !!} {{ $errors->first('resp_staff_id', ':message') }}
{!! Form::label('real_signed_contract_file', trans('contract.real_signed_contract'), array('class' => 'control-label')) !!}
@if(isset($contract->real_signed_contract)) Signed @endif
{{trans('dashboard.select_image')}} {{trans('dashboard.change')}} {{trans('dashboard.remove')}}
{{ $errors->first('real_signed_contract_file', ':message') }}
{{trans('table.back')}}
{!! Form::close() !!}
@section('scripts') @stop