<?php if(!Auth::User()->perm('send_command', 'view')): ?>
    <div class="alert alert-danger" role="alert"><?php echo e(trans('front.dont_have_permission')); ?></div>
<?php else: ?>
    <div class="form-group">
        <?php echo Form::label('device_id[]', trans('validation.attributes.devices').':'); ?>

        <?php echo Form::select('device_id[]', $devices_gprs, (isset($device_id) ? $device_id : null), ['class' => 'form-control', 'multiple' => 'multiple', 'data-live-search' => true, 'data-actions-box' => true]); ?>

    </div>
    <div class="form-group send-command-type">
        <?php echo Form::label('type', trans('validation.attributes.type').':'); ?>

        <?php echo Form::select('type', $commands, (isset($command) ? $command : null), ['class' => 'form-control']); ?>

    </div>
    <div class="row attributes"></div>
<?php endif; ?>