
<?php if($errors->has('commentable_type')): ?>
    <div class="alert alert-danger" role="alert">
        <?php echo e($errors->first('commentable_type')); ?>

    </div>
<?php endif; ?>
<?php if($errors->has('commentable_id')): ?>
    <div class="alert alert-danger" role="alert">
        <?php echo e($errors->first('commentable_id')); ?>

    </div>
<?php endif; ?>
<form method="POST" action="<?php echo e(route('comments.store')); ?>">
    <?php echo csrf_field(); ?>
    <?php echo view('honeypot::honeypotFormFields'); ?>
    <input type="hidden" name="commentable_type" value="\<?php echo e(get_class($model)); ?>" />
    <input type="hidden" name="commentable_id" value="<?php echo e($model->getKey()); ?>" />

    <h4>Poster un message</h4>
    <div class="row custom-frame pt-3">
        <div class="col form-group">
            <label for="message"><?php echo app('translator')->get('comments::comments.enter_your_message_here'); ?></label>
            <textarea class="form-control <?php if($errors->has('message')): ?> is-invalid <?php endif; ?>" name="message" rows="3"></textarea>
            <div class="invalid-feedback">
                <?php echo app('translator')->get('comments::comments.your_message_is_required'); ?>
            </div>
            <small class="form-text text-muted"><?php echo app('translator')->get('comments::comments.markdown_cheatsheet', ['url' => 'https://help.github.com/articles/basic-writing-and-formatting-syntax']); ?></small>
        </div>
    </div>

    <div class="row">
        <div class="col-12">
            <div class="form-group row text-right">
                <div class="col-sm-12">
                    <a href="<?php echo e(route('projets.index')); ?>" class="btn btn-outline-warning">Annuler</a>
                    <?php if(Auth::user()->can('edit_projet') && $editable): ?>
                        <button type="submit" class="btn btn-outline-success"><?php echo app('translator')->get('comments::comments.submit'); ?></button>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</form><?php /**PATH /var/www/html/resources/views/vendor/comments/_form.blade.php ENDPATH**/ ?>