<?php $__env->startSection('title', 'Edit Role'); ?>
<?php $__env->startSection('content'); ?>
<div class="container">

    <div class="card-header bg-primary text-white py-3 mb-4">
        <h5 class="mb-0"><i class="fas fa-user-cog me-2"></i> Edit Role</h5>
    </div>

    <?php if($errors->any()): ?>
        <div class="alert alert-danger">
            <ul><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($error); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
        </div>
    <?php endif; ?>

    <form action="<?php echo e(route('roles.update', $role->id)); ?>" method="POST">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

      <div class="row mb-3">
      <div class="col-md-6">
                            <input type="text" name="roleName" id="roleName" class="form-control shadow" placeholder="Role Name" value="<?php echo e($role->name); ?>" required>
                        </div>

                        <div class="col-md-6">
                            <textarea name="description" id="description" class="form-control shadow" placeholder="Enter Your Description" rows="4" required><?php echo e($role->description); ?></textarea>
                        </div>
    </div>

        <button type="submit" class="btn btn-primary">Update Role</button>
        <a href="<?php echo e(route('roles.index')); ?>" class="btn btn-secondary">Back</a>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/melsoftzimco/public_html/demo/resources/views/roles/edit.blade.php ENDPATH**/ ?>