<?php $__env->startSection('content'); ?>
    <div class="sl-mainpanel">
        <nav class="breadcrumb sl-breadcrumb">
            <a class="breadcrumb-item" href="admin_home.php">HOME</a>
            <span class="breadcrumb-item active">Category Manage</span>
        </nav>
        <div class="sl-pagebody">
            <div class="container mt-3">
                <div class="card">
                    <div class="card-body">
                        <h4 class="card-title">Category Manage Form</h4>
                        <form action="<?php echo e(url('category')); ?>" method="post" enctype="multipart/form-data"
                            class="row g-3 needs-validation p-1 m-1">
                            <?php echo csrf_field(); ?>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label for="validationCustom01" class="form-label">Category Name Bangla</label>
                                    <input type="text" class="form-control" id="name" name="name"
                                        placeholder="Enter Category Name Bangla" required/>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label for="validationCustom01" class="form-label">Category Name English</label>
                                    <input type="text" class="form-control" id="name_eng" name="name_eng"
                                        placeholder="Enter Category Name English" required/>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label for="validationCustom01" class="form-label">Status</label>
                                    <select name="status" id="status" class="form-control" required>
                                        <option value="0">Active</option>
                                        <option value="1">Inactive</option>
                                    </select>
                                </div>
                            </div>

                            <div class="col-12 text-center mt-4">
                                <button class="btn btn-primary" type="submit">SUBMIT</button><br>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div><!-- sl-pagebody -->
        <div class="sl-pagebody">
            <div class="container mt-3">
                <div class="row">
                    <div class="col-12">
                        <div class="card-box table-responsive">
                            <table id="datatable" class="table table-bordered table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th>SN</th>
                                        <th>Category Name Bangla</th>
                                        <th>Category Name English</th>
                                        <th>Status</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <style>
                                    td{
                                        color: #000;
                                    }
                                </style>
                                <tbody id="searchTable">
                                    <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($loop->iteration); ?></td>
                                            <td><?php echo e($item->name); ?></td>
                                            <td><?php echo e($item->name_eng); ?></td>
                                            <td>
                                                <?php if($item->status == 0): ?>
                                                    <?php echo e('Active'); ?>

                                                <?php else: ?>
                                                    <?php echo e('Inactive'); ?>

                                                <?php endif; ?>
                                            </td>
                                            <td style="width:150px;">
                                                <a href="<?php echo e(url('category/'. $item->id . '/edit')); ?>" class="btn btn-primary">
                                                    <i class="fa-solid fa-pen-to-square"></i>
                                                </a>
                                                
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div><!-- sl-pagebody -->
    </div><!-- sl-mainpanel -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\All Project\SAWebSoft\Laravel Project\news-portal-laravel-web\resources\views/admin/category/index.blade.php ENDPATH**/ ?>