IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/c01bcecb0b05a93eb4558e22257c5dabb1192b9f.php

<?php $__env->startSection('content'); ?>
<div class="row clearfix">
    <div class="col-lg-12 col-md-12 col-sm-12">
        <div class="body">
            <button class="btn btn-raised btn-warning btn-round waves-effect" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Advance Search</button>
            <div class="collapse" id="collapseExample">
                <div class="well">
                    <div class="row clearfix">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="card">
                                <div class="header">
                                    <h2><strong>Advance Search</strong></h2>
                                </div>
                                <div class="body">
                                    <?php echo Form::open(['method' => 'GET',  'action' => ['School\Library\BookEntryController@index'], 'class' => 'form-horizontal']); ?>

                                    <div class="row clearfix">
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Book Type</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idBookType',$booktypes,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Series</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idSeries',$series,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Location</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idLocation',$locations,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="row clearfix">
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Publisher</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idPublisher',$publishers,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Author</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idAuthor',$authors,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Vendor</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idVendor',$vendors,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="row clearfix">
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Language</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idLanguage',$languages,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Subject</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idBookSubject',$subjects,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-1 form-control-label">
                                            <label for="classname">Faculty</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::select('idFaculty',$faculties,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="row clearfix">
                                        <div class="col-sm-2 form-control-label required">
                                            <label for="classname">Bill Date</label>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::text('fromDate',null,['class' => 'form-control datepicker','required'=>'required']); ?>

                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="form-group">
                                                <?php echo Form::text('toDate',null,['class' => 'form-control datepicker','required'=>'required']); ?>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="row clearfix">
                                        <div class="col-sm-8 offset-sm-2">
                                            <?php echo Form::submit('Search',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>

                                            <?php echo Form::close(); ?> 
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>List Of Books</strong></h2>
            </div>
            <div class="body table-responsive">
                <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                    <thead>
                        <tr>
                            <th>S. No.</th>
                            <th>PHOTO</th>
                            <th>RFID</th>
                            <th>Title</th>
                            <th>Accession No.</th>
                            <th>Author</th>
                            <th>Publisher</th>
                            <th>Published Year</th>
                            <th>Status</th>
                            <th>Series</th>
                            <th>Location</th>
                            <th>Sub Class</th>
                            <th>Editor</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        <?php $__currentLoopData = $books; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($i); ?></td>
                            <td>
                                <?php if(isset($var->bookImage)): ?>
                                <img src="<?php echo e(asset('storage/schools/'.$var->idSchool.'/library/'.$var->bookImage)); ?>" height="60">
                                <?php else: ?>
                                <span>No Image</span>
                                <?php endif; ?>
                            </td>
                            <td><?php echo e($var->rfid); ?></td>
                            <td><?php echo e($var->title); ?></td>
                            <td><?php echo e($var->accessionNo); ?></td>
                            <td><?php echo e($var->authorName); ?></td>
                            <td><?php echo e($var->publisherName); ?></td>
                            <td><?php echo e($var->publicationYear); ?></td>
                            <td><?php echo e($var->bookStatus); ?></td>
                            <td><?php echo e($var->seriesName); ?></td>
                            <td><?php echo e($var->locName); ?></td>
                            <td><?php echo e($var->classNo); ?></td>
                            <td><?php echo e($var->editorName); ?></td>
                           
                            <td>
                                <a href='<?php echo e(url('/school/books/'.$var->idBook.'/edit')); ?>'  class="btn btn-sm btn-info"><i class="fa fa-edit"></i>Edit</a>
                                <button class="btn btn-sm btn-danger  js-sweetalert" data-id="<?php echo e($var->idBook); ?>" data-type="confirm">DELETE</button>
                            </td>
                        </tr>
                        <?php $i++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>

$(document).on('click', '.js-sweetalert', function (e) {
    $.ajaxSetup({
        headers: {
          'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    e.preventDefault();
    var id = $(this).data('id');
    swal({
            title: "Are you sure?",
            text: "Are You sure you want to delete this  Book!",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "Yes, delete it!",
            closeOnConfirm: true
        },
        function() {
         //   console.log('here');
            $.ajax({
                type: "DELETE",
                url: "<?php echo e(url('/school/books/')); ?>" +"/"+id,
                data: {id:id}
                       
            })
            .done(function(data) {
                swal({
                    title: "Deleted", 
                    text: "Book has been successfully deleted", 
                    type: "success"
                },function() {
                    location.reload();
                });
            })
            .error(function(data) {
              swal("Oops", "We couldn't connect to the server!", "error");
            });
            return false;
    });
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7