
<?php $__env->startSection('title'); ?>
    Admin | Team Member
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <?php echo $__env->make('back.parts.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="row justify-content-center">
            <div class="col-lg-10">
                <div class="card mb-4">
                    <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                        <h6 class="m-0 font-weight-bold text-primary">All Member</h6>
                    </div>
                    <div class="table-responsive">
                        <table class="table align-items-center table-flush">
                            <thead class="thead-light">
                            <tr>
                                <th class="text-center col__id">ID</th>
                                <th>Name</th>
                                <th>Designation</th>
                                <th class="text-center">Position</th>
                                <th>Photo</th>
                                <th class="col__action__body">Action</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?php $__currentLoopData = \App\Models\Member::orderBy('position','asc')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="text-center"><?php echo e($row->id); ?></td>
                                    <td><?php echo e($row->name); ?></td>
                                    <td><?php echo e($row->designation); ?></td>
                                    <td class="text-center"><?php echo e($row->position); ?> <?php echo $row->highlight ? '<span class="text-warning">HL</span>': ''; ?></td>
                                    <td><img src="<?php echo e(asset('/img/member/'.$row->photo)); ?>" width="80px"></td>
                                    <td class="col__action__body">
                                        <a href="<?php echo e(route('member.edit', ['id' => $row->id])); ?>"
                                           class="btn btn-info btn-sm">Edit</a>
                                        <a href="<?php echo e(route('member.destroy', ['id' => $row->id])); ?>"
                                           onclick="return confirm('Are you sure to delete this!')"
                                           class="btn btn-danger btn-sm">Delete</a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/HoteliersBD2/resources/views/back/member/index.blade.php ENDPATH**/ ?>