@if (isset($meeting)) {!! Form::model($meeting, ['url' => $type . '/' . $opportunity->id. '/' . $meeting->id, 'id' => 'opportunity_meeting', 'method' => 'put', 'files'=> true]) !!} @else {!! Form::open(['url' => $type. '/' . $opportunity->id, 'id' => 'opportunity_meeting', 'method' => 'post', 'files'=> true]) !!} @endif
{!! Form::label('meeting_subject', trans('meeting.meeting_subject'), ['class' => 'control-label required']) !!}
{!! Form::text('meeting_subject', null, ['class' => 'form-control']) !!} {{ $errors->first('meeting_subject', ':message') }}
{!! Form::label('company_attendees', trans('meeting.company_attendees'), ['class' => 'control-label required']) !!}
{!! Form::select('company_attendees[]', $company_customer, (isset($meeting)?$company_attendees:null), ['id'=>'attendees','multiple'=>'multiple', 'class' => 'form-control select2']) !!} {{ $errors->first('company_attendees', ':message') }}
{!! Form::label('responsible_id', trans('salesteam.main_staff'), ['class' => 'control-label required']) !!}
{!! Form::select('responsible_id', $main_staff, null, ['id'=>'responsible_id', 'class' => 'form-control']) !!} {{ $errors->first('responsible_id', ':message') }}
{!! Form::label('staff_attendees', trans('meeting.staff_attendees'), ['class' => 'control-label']) !!}
{!! Form::select('staff_attendees[]', $staffs, (isset($meeting)?$staff_attendees:null), ['id'=>'staff_attendees','multiple'=>'multiple', 'class' => 'form-control select2']) !!} {{ $errors->first('staff_attendees', ':message') }}
{!! Form::label('starting_date', trans('meeting.starting_date'), ['class' => 'control-label required']) !!}
{!! Form::text('starting_date', isset($meeting) ? $meeting->meeting_starting_date : null, ['class' => 'form-control']) !!} {{ $errors->first('starting_date', ':message') }}
{!! Form::label('ending_date', trans('meeting.ending_date'), ['class' => 'control-label required']) !!}
{!! Form::text('ending_date', isset($meeting) ? $meeting->meeting_ending_date : null, ['class' => 'form-control']) !!} {{ $errors->first('ending_date', ':message') }}
{!! Form::label('location', trans('meeting.location'), ['class' => 'control-label required']) !!}
{!! Form::text('location', null, ['class' => 'form-control']) !!} {{ $errors->first('location', ':message') }}
{!! Form::label('meeting_description', trans('meeting.meeting_description'), ['class' => 'control-label']) !!}
{!! Form::textarea('meeting_description', null, ['class' => 'form-control resize_vertical']) !!} {{ $errors->first('meeting_description', ':message') }}
{!! Form::label('privacy', trans('meeting.privacy'), ['class' => 'control-label']) !!}
{!! Form::select('privacy', $privacy, null, ['class' => 'form-control']) !!} {{ $errors->first('privacy', ':message') }}
{!! Form::label('show_time_as', trans('meeting.show_time_as'), ['class' => 'control-label']) !!}
{!! Form::select('show_time_as', $show_times, null, ['class' => 'form-control']) !!} {{ $errors->first('show_time_as', ':message') }}
{{trans('table.back')}}
{!! Form::close() !!}
@section('scripts') @stop