관리-도구
편집 파일: 20f8a154fc4a659d46b5e8159928ab9908ec388e.php
<?php $__env->startPush('styles'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>View Users <a href="<?php echo e(route('users.create')); ?>" class="btn btn-primary">Create User</a></h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Home</a></li> <li class="breadcrumb-item active">User</li> </ol> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.container-fluid --> </div> <!-- /.content-header --> <!-- Main content --> <section class="content"> <div class="container-fluid"> <?php if(session('success')): ?> <div class="col-sm-12"> <div class="alert alert-success alert-dismissible fade show" role="alert"> <?php echo e(session('success')); ?> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> </div> <?php endif; ?> <?php if(session('error')): ?> <div class="col-sm-12"> <div class="alert alert-danger alert-dismissible fade show" role="alert"> <?php echo e(session('error')); ?> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> </div> <?php endif; ?> <div class="card"> <div class="card-body table-responsive"> <table class="table table-bordered data-table text-center"> <thead class="thead-light"> <tr> <th>Name</th> <th>Email</th> <th width="100px">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->name); ?></td> <td><?php echo e($user->email); ?></td> <td> <?php $editurl = route('users.edit', $user->id); $deleteurl = route('users.destroy', $user->id); $csrf_token = csrf_token(); $btn = "<a href='$editurl' class='edit btn btn-primary btn-sm' title='Edit'><i class='fa fa-edit'></i></a> <button type='button' class='btn btn-danger btn-sm' data-toggle='modal' data-target='#deleteuser$user->id' data-toggle='tooltip' data-placement='top' title='Delete'><i class='fa fa-trash'></i></button> <!-- Modal --> <div class='modal fade text-left' id='deleteuser$user->id' tabindex='-1' role='dialog' aria-labelledby='exampleModalLabel' aria-hidden='true'> <div class='modal-dialog' role='document'> <div class='modal-content'> <div class='modal-header'> <h5 class='modal-title' id='exampleModalLabel'>Delete Confirmation</h5> <button type='button' class='close' data-dismiss='modal' aria-label='Close'> <span aria-hidden='true'>×</span> </button> </div> <div class='modal-body text-center'> <form action='$deleteurl' method='POST' style='display:inline-block;'> <input type='hidden' name='_token' value='$csrf_token'> <label for='reason'>Are you sure you want to delete??</label><br> <input type='hidden' name='_method' value='DELETE' /> <button type='submit' class='btn btn-danger' title='Delete'>Confirm Delete</button> </form> </div> </div> </div> </div> "; echo $btn; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <div class="mt-3"> <div class="row"> <div class="col-md-8"> <p class="text-sm"> Showing <strong><?php echo e($users->firstItem()); ?></strong> to <strong><?php echo e($users->lastItem()); ?> </strong> of <strong> <?php echo e($users->total()); ?></strong> entries <span> | Takes <b><?php echo e(round(microtime(true) - LARAVEL_START, 2)); ?></b> seconds to render</span> </p> </div> <div class="col-md-4"> <span class="pagination-sm m-0 float-right"><?php echo e($users->links()); ?></span> </div> </div> </div> </div> </div> </div><!-- /.container-fluid --> </section> <!-- /.content --> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <?php $__env->stopPush(); ?> <?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/nepaldsdforg/public_html/resources/views/backend/users/index.blade.php ENDPATH**/ ?>