<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12 margin-tb">
            <div class="pull-left text-center">
                <h3>Laravel 8 CRUD Operation Tutorial for Beginners</h3>
            </div>
            <div class="pull-right">
                <a class="btn btn-success" href="<?php echo e(route('students.create')); ?>"> Create Student</a>
				<a class="btn btn-success" href="<?php echo e(route('students.filtered')); ?>"> Select Filtered</a>
            </div><br>
        </div>
    </div>
    <?php if($message = Session::get('success')): ?>
    <div class="alert alert-success">
        <span><?php echo e($message); ?></span>
    </div>
    <?php endif; ?>
    <table class="table table-bordered">
        <tr>
            <th>Name</th>
            <th>Age</th>
            <th>Gender</th>
            <th>Weight</th>
        </tr>
        <?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
         
            <td><?php echo e($student->name); ?></td>
            <td><?php echo e($student->age); ?></td>
            <td><?php echo e($student->gender); ?></td>
			<td><?php echo e($student->weight); ?></td>
            <td><form action="<?php echo e(route('students.destroy',$student->id)); ?>" method="POST">
            <a class="btn btn-info" href="<?php echo e(route('students.show',$student->id)); ?>">Show</a>
            <a class="btn btn-primary" href="<?php echo e(route('students.edit',$student->id)); ?>">Edit</a>
            <?php echo csrf_field(); ?>
            <?php echo method_field('DELETE'); ?>
            <button type="submit" onclick="return confirm('Do you really want to delete student!')" class="btn btn-danger">Delete</button>
            </form></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </table>
<?php echo $students->links(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('students.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Student\students\resources\views/students/index.blade.php ENDPATH**/ ?>