
<?php $__env->startSection('title'); ?>
    পোস্ট সেটিং
<?php $__env->stopSection(); ?>
<?php $__env->startSection('default-post-setting'); ?>
    active
<?php $__env->stopSection(); ?>
<?php $__env->startSection('default-post-setting'); ?>
    active
<?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin_content'); ?>
    <!-- BEGIN: Content-->
    <div class="app-content content ">
        <div class="card">
            <div class="card-header">
                <div class="head-label">
                    <h4>পোস্ট সেটিং</h4>
                </div>
                <div class="dt-action-buttons text-right">
                    <div class="dt-buttons d-inline-flex">
                        <a href="<?php echo e(route('default-post-setting.create')); ?>" class="btn btn-primary">নতুন পোস্ট সেটিং</a>
                    </div>
                </div>
            </div>
            <div class="card-body">
                <div class="table-responsive custom-table-modify">
                <table id="commonTable" class="table table-bordered">
                    <thead>
                        <tr>
                            <th scope="col">সিরিয়াল নং</th>
                            <th scope="col">শ্রেণী</th>
                            <th scope="col">বিভাগ</th>
                            <th scope="col">বিষয়</th>
                            <th scope="col">অধ্যায়</th>
                            <th scope="col">স্টেটাস</th>
                            <th scope="col">একশন</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $defaultPostData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if(isset($data) && $data != null): ?>
                                <tr>
                                    <td>1</td>
                                    <td><?php echo e($data->classData->class_name); ?></td>
                                    <td><?php echo e($data->departmentData->department_name); ?></td>
                                    <td><?php echo e($data->subjectData->subject_name); ?></td>
                                    <td><?php echo e($data->chapterData->chapter_name); ?></td>
                                    <td>
                                        <?php if($data->status == true): ?>
                                            <span class="badge badge-light-primary">Active</span>
                                        <?php else: ?>
                                            <span class="badge badge-light-danger">Inactive</span>
                                        <?php endif; ?>
                                    </td>

                                    <td>
                                        <div class="dropdown">
                                            <button type="button" class="btn btn-sm dropdown-toggle hide-arrow py-0"
                                                data-bs-toggle="dropdown">
                                                <i data-feather="more-vertical"></i>
                                            </button>
                                            <div class="dropdown-menu dropdown-menu-end">
                                                <?php if($data->status == false): ?>
                                                    <a class="dropdown-item" href="<?php echo e(route('default-post-setting.active', $data->id)); ?>">
                                                        <i data-feather="check" class="me-50"></i>
                                                        <span>Active</span>
                                                    </a>
                                                <?php else: ?>
                                                    <a class="dropdown-item" href="<?php echo e(route('default-post-setting.inactive', $data->id)); ?>">
                                                        <i data-feather="x" class="me-50"></i>
                                                        <span>InActive</span>
                                                    </a>
                                                <?php endif; ?>
                                                <a class="dropdown-item" href="<?php echo e(route('default-post-setting.edit', $data->id)); ?>">
                                                    <i data-feather="edit-2" class="me-50"></i>
                                                    <span>Edit</span>
                                                </a>

                                                <form method="POST" action="<?php echo e(route('default-post-setting.destroy', $data->id)); ?>" class="d-inline">
                                                    <?php echo csrf_field(); ?>
                                                    <?php echo method_field('delete'); ?>
                                                    <button type="submit" title="delete" class="bg-transparent border-0 dropdown-item w-100 delete-confirm">
                                                        <i data-feather="trash" class="me-50"></i>
                                                        <span>Delete</span>
                                                    </button>
                                                </form>
                                            </div>
                                        </div>
                                    </td>


                                </tr>
                            <?php else: ?>
                                <tr></tr>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
                </div>
            </div>
        </div>

    </div>
    <!-- END: Content-->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\testpaper-final\resources\views/admin/setting/post/index.blade.php ENDPATH**/ ?>