{!! Form::open(['url' => action([\Modules\Crm\Http\Controllers\ScheduleLogController::class, 'update'], ['id' => $schedule_log->id]), 'method' => 'put', 'id' => 'schedule_log_form' ]) !!}

@lang('crm::lang.edit_schedule_log')

{!! Form::label('subject', __('crm::lang.subject') . ':*') !!} {!! Form::text('subject', $schedule_log->subject, ['class' => 'form-control', 'required']); !!}
{!! Form::label('log_type', __('crm::lang.log_type') .':*') !!} {!! Form::select('log_type', ['call' => __('crm::lang.call'), 'sms' => __('crm::lang.sms'), 'meeting' => __('crm::lang.meeting'), 'email' => __('business.email')], $schedule_log->log_type, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required', 'style' => 'width: 100%;']); !!}
{!! Form::label('start_datetime', __('crm::lang.start_datetime') . ':*' )!!} {!! Form::text('start_datetime', !empty($schedule_log->start_datetime) ? @format_datetime($schedule_log->start_datetime) : '', ['class' => 'form-control datetimepicker', 'required', 'readonly']) !!}
{!! Form::label('end_datetime', __('crm::lang.end_datetime') . ':*' )!!} {!! Form::text('end_datetime', !empty($schedule_log->end_datetime) ? @format_datetime($schedule_log->end_datetime) : '', ['class' => 'form-control datetimepicker', 'required', 'readonly']) !!}
{!! Form::label('description', __('lang_v1.description') . ':') !!} {!! Form::textarea('description', $schedule_log->description, ['class' => 'form-control ', 'id' => 'description']); !!}

{!! Form::label('status', __('crm::lang.schedule_status') .':') !!} {!! Form::select('status', $statuses, $schedule->status, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'style' => 'width: 100%;']); !!}
{!! Form::close() !!}