KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/leadai/leadai.co.in/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/leadai/leadai.co.in/storage/framework/views/68b611279e1d17de2e8ecd59af74c060117f525c.php
<?php $__env->startSection('content'); ?>

    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">
            <!-- begin::page header -->
            <div class="page-header">
                <h3><?php echo e(__('message.library')); ?> Books</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.list')); ?></li>
                    </ol>
                </nav>
            </div>

            <!-- end::page header -->
            <?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
            <?php if($errors->any()): ?>
                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php echo e($error); ?>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>

            <div class="card">
                <div class="card-header">
                    <form method="GET" action="<?php echo e(asset('library')); ?>">
                        <div class="row">
                            <div class="col-md-2">
                                <select class="form-control select2" id="entry" name="entry">
                                    <option value="" disabled selected>25</option>
                                    <option value="50" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '50') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>50</option>
                                    <option value="100" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '100') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>100</option>
                                    <option value="1000" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '1000') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>1000</option>
                                    <option value="5000" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '5000') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>5000</option>

                                </select>
                            </div>

                            <div class="col-md-4">
                                <input type="text" id="search" name="search" class="form-control"
                                    value="<?php echo e(Request::has('search') ? Request::get('search') : ''); ?>"
                                    placeholder="Search by Type...">
                            </div>
                            <div class="col-md-6">
                                
                                <button type="submit" class="btn btn-success">
                                    <i class="fa fa-search fa-lg"></i></button>

                                
                                <a href="<?php echo e(asset('library')); ?>" class="btn btn-primary text-white">
                                    <i class="fa fa-recycle fa-lg"></i>
                                </a>

                                <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('add-library')){ ?>
                                <a href="<?php echo e(route('library.add')); ?>" class="btn btn-info text-white"> <i
                                        class="fa fa-plus fa-lg mr-2"></i>Book</a>
                                <?php } ?>

                                <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('delete-library')){ ?>

                                
                                <a id="delete-multiple" href="javascript:;" class="btn btn-danger text-white pull-right"> <i
                                        class="fa fa-trash-o fa-lg"></i></a>
                                <?php } ?>

                            </div>
                        </div>
                    </form>
                </div>

                <div class="card-body">
                    <?php if(isset($libraries)): ?>
                        <div class="table-responsive">
                            <table id="students" class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>
                                            <input type="checkbox" id="checkAll">
                                        </th>
                                        <th><?php echo e(__('message.si')); ?></th>
                                        <th><?php echo e(__('message.bookname')); ?></th>
                                        <th><?php echo e(__('message.bookisbn')); ?></th>
                                        <th><?php echo e(__('message.author')); ?></th>
                                        <th><?php echo e(__('message.bookpublisher')); ?></th>
                                        <th><?php echo e(__('message.booksubject')); ?></th>
                                        <th><?php echo e(__('message.bookrack')); ?></th>

                                        <th><?php echo e(__('message.bookedition')); ?></th>
                                        <th><?php echo e(__('message.image')); ?></th>


                                        <th><?php echo e(__('message.action')); ?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php if(!empty($libraries)): ?>
                                        <?php $__currentLoopData = $libraries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $libr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td>
                                                    <input class="parentids" type="checkbox" value="<?php echo e($libr->id); ?>"
                                                        name="enquireids[]">
                                                </td>


                                                <td>
                                                    <span class="font-size-13"><?php echo e($key + 1); ?></span>
                                                </td>



                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->book_name); ?></span>
                                                </td>

                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->book_isbn); ?></span>
                                                </td>




                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->author); ?></span>
                                                </td>

                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->book_publisher); ?></span>
                                                </td>

                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->subject); ?></span>
                                                </td>

                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->book_rack); ?></span>
                                                </td>

                                                <td>
                                                    <span class="font-size-13"><?php echo e($libr->book_edition); ?></span>
                                                </td>





                                                <td>
                                                    <image style="width: 100px;height:100px;"
                                                        src="<?php echo e(asset('public/library/' . $libr->image)); ?>">
                                                </td>









                                                <td>
                                                    
                                                    <div class="dropdown">
                                                        <button class="btn btn-sm btn-dark dropdown-toggle" type="button"
                                                            data-toggle="dropdown">
                                                            <?php echo e(__('message.action')); ?>

                                                        </button>
                                                        <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('edit-library')){ ?>
                                                            <a class="dropdown-item"
                                                                href="<?php echo e(route('library.edit', $libr->id)); ?>"><?php echo e(__('message.edit')); ?></a>
                                                            <?php } ?>
                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('delete-library')){ ?>
                                                            <a class="dropdown-item delete-confirm"
                                                                link="<?php echo e(route('library.destroy', $libr->id)); ?>"
                                                                href="javascript:;"><?php echo e(__('message.delete')); ?></a>
                                                            <?php } ?>
                                                        </div>
                                                    </div>
                                                </td>


                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php else: ?>
                                        <h1>No Record Found!!</h1>
                                    <?php endif; ?>
                                </tbody>
                            </table>
                        </div>
                        
                        <div class="pagination-block">
                            <?php echo e($libraries->appends(request()->query())->links('includes.paginationlinks')); ?>

                            <label>Showing total <?php echo $libraries->total(); ?> results</label>
                        </div>
                    <?php endif; ?>
                </div>



            </div>
        </div>
    </main>

    <!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
    <script src="<?php echo e(asset('public/admin/vendors/dataTable/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.bootstrap4.min.js')); ?>"></script>
    <script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.responsive.min.js')); ?>"></script>

    <script>
        $(document).on("click", ".change-password", function() {
            $(".modal-body #user_unique_id").val($(this).data('user_unique_id'));
            $('#changepasswordModal').modal('show');
        });

        $("#checkAll").click(function() {
            $('.parentids').not(this).prop('checked', this.checked);
        });

        // Delete Multiple
        $("#delete-multiple").click(function() {
            var URL = "<?php echo e(asset('library/multidelete')); ?>";

            var parent_ids = [];
            $('.parentids:checkbox:checked').each(function() {
                parent_ids.push($(this).val());
            });


            swal({
                title: 'Are you sure?',
                text: 'Once deleted, you will not be recover!',
                icon: 'warning',
                dangerMode: true,
                buttons: ["Cancel", "Yes!"],
            }).then(function(value) {


                if (value) {
                    $.ajaxSetup({
                        headers: {
                            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                        }
                    });

                    $.ajax({
                        type: "post",
                        data: {
                            "student_ids": parent_ids
                        },
                        url: URL,
                        dataType: "html",
                        success: function(result) {

                        }
                    });
                    swal("success!", "Successfully deleted!", "success");
                    window.location.reload();
                }
            });

        });
    </script>

    <?php if(!empty(Request::get('type'))): ?>
        <script>
            $("#type").val("<?php echo e(Request::get('type')); ?>").trigger('change');
        </script>
    <?php endif; ?>

    <!-- end::dataTable -->
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\school_saas_erp\resources\views/library/list.blade.php ENDPATH**/ ?>

Anon7 - 2021