@if (isset($call)) {!! Form::model($call, array('url' => $type . '/' . $opportunity->id . '/' . $call->id, 'method' => 'put', 'files'=> true)) !!} @else {!! Form::open(array('url' => $type. '/' . $opportunity->id , 'method' => 'post', 'files'=> true)) !!} @endif
{!! Form::label('date', trans('call.date'), array('class' => 'control-label required')) !!}
{!! Form::text('date', isset($call)?null:date('d.m.Y.',strtotime("now")), array('class' => 'form-control date')) !!} {{ $errors->first('date', ':message') }}
{!! Form::label('duration', trans('call.duration'), array('class' => 'control-label required')) !!}
{!! Form::input('number','duration',null, array('class' => 'form-control', 'min'=>'1')) !!} {{ $errors->first('duration', ':message') }}
{!! Form::label('call_summary', trans('call.summary'), array('class' => 'control-label required')) !!}
{!! Form::text('call_summary', null, array('class' => 'form-control')) !!} {{ $errors->first('call_summary', ':message') }}
{!! Form::label('company_id', trans('call.contact'), 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('call.responsible'), 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') }}
{{trans('table.back')}}
{!! Form::close() !!}