<?php $__env->startSection('subtitle'); ?>
    Kelola User
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <h5> Tambah User </h5>
    <div class="form-tambah">
        <form method="POST" action="<?php echo e(url('kelola/user/tambah')); ?>" enctype="multipart/form-data">
            <?php echo e(csrf_field()); ?>

            <div class="input-group">
                <input type="text" name="namaAsli" placeholder="Nama Asli">
            </div>
            
            <div class="input-group">
                <input type="text" name="username" placeholder="Username">               
            </div>
            
            <div class="input-group">
                
            </div>
            
            <div class="input-group">
                <input type="password" name="password" placeholder="Password">
            </div>
            
            <div class="input-group">
                <input type="submit" value="Tambah">
            </div>
        </form>    
    </div>
    <hr>
    
    <h4>Daftar User</h4>
    <table class="table">
      <thead class="thead-dark">
        <tr>
            <th scope="col">Nama Asli</th>
            <th scope="col">Username</th>
            <th scope="col">Password</th>
            <th scope="col">Action</th>
        </tr>
      </thead>
      <tbody>
        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($user->nama_asli); ?></td>
                <td><?php echo e($user->username); ?></td>
                <td><?php echo e($user->password); ?></td>
                <td>
                    <a href="<?php echo e(url('kelola/user/'.$user->id.'/edit')); ?>" class="btn btn-warning">Edit</a>
                    <a href="<?php echo e(url('kelola/user/'.$user->id.'/delete')); ?>" class="btn btn-danger">Delete</a>
                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </tbody>
    </table>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('index', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>