<?php $__env->startSection('title', 'Crea Ruolo'); ?>
<?php $__env->startSection('page_title', 'Crea Nuovo Ruolo'); ?>

<?php $__env->startSection('breadcrumbs'); ?>
    <li class="breadcrumb-item"><a href="/admin/ruoli">Admin</a></li>
    <li class="breadcrumb-item"><a href="/admin/ruoli">Ruoli</a></li>
    <li class="breadcrumb-item active">Nuovo</li>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-8">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title">Nuovo Ruolo</h3>
            </div>
            <div class="card-body">
                <form method="POST" action="/admin/ruoli">
                    <?php echo csrf_field(); ?>
                    <div class="form-group">
                        <label>Nome *</label>
                        <input type="text" name="name" class="form-control" required maxlength="50" placeholder="es. Segretario">
                    </div>
                    <div class="form-group">
                        <label>Descrizione</label>
                        <input type="text" name="description" class="form-control" maxlength="255" placeholder="es. Accesso per segretari">
                    </div>

                    <h5 class="mt-4">Permessi</h5>
                    <table class="table table-sm">
                        <thead>
                            <tr>
                                <th>Modulo</th>
                                <th>Nessuno</th>
                                <th>Lettura</th>
                                <th>Completo</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = ['individui', 'gruppi', 'eventi', 'documenti', 'mailing', 'viste']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><strong><?php echo e(ucfirst($module)); ?></strong></td>
                                <td class="text-center"><input type="radio" name="permissions[<?php echo e($module); ?>]" value="0" checked></td>
                                <td class="text-center"><input type="radio" name="permissions[<?php echo e($module); ?>]" value="1"></td>
                                <td class="text-center"><input type="radio" name="permissions[<?php echo e($module); ?>]" value="2"></td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>

                    <div class="mt-4">
                        <button type="submit" class="btn btn-primary">
                            <i class="fas fa-save"></i> Salva
                        </button>
                        <a href="/admin/ruoli" class="btn btn-secondary">Annulla</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/glastree/resources/views/admin/ruoli/create.blade.php ENDPATH**/ ?>