IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/library/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/library/generate_barcode.blade.php

@extends('schools.school_layout')

@section('content')

<div class="row clearfix">

    <div class="col-sm-12">

        <div class="card">

            <div class="header">

                <h2><strong>Barcode Generator</strong></h2>

            </div>

            <div class="body">

                {!! Form::open(['method' => 'GET',  'action' => ['School\Library\BarcodeController@index'],'class' => 'form-horizontal']) !!}

                <div class="row clearfix">

                    <div class="col-sm-2 form-control-label required">

                        <label for="classname">Type Of Label</label>

                    </div>

                    <div class="col-sm-3">

                        <div class="form-group">

                            {!! Form::select('label',['Barcode'=>'Barcode','RFID'=>'RFID Sticker'],null,['class' => 'form-control show-tick ms','required'=>'required']) !!}

                        </div>

                    </div>

                    <div class="col-sm-1 form-control-label required">

                        <label for="classname">For</label>

                    </div>

                    <div class="col-sm-3">

                        <div class="form-group">

                            {!! Form::select('type',[''=>'---Select---','student'=>'Student','book'=>'Book','employee'=>'All Other Employee Category'],null,['class' => 'form-control show-tick ms','required'=>'required']) !!}

                        </div>

                    </div>

                    <div class="col-sm-2">

                        {!! Form::submit('SHOW',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}

                        {!!Form::close()!!}

                    </div>

                </div>

            </div>

        </div>

    </div>

</div>

@if(count($students)>0)

<div class="row clearfix">

    <div class="col-sm-12">

        <div class="card">

            <div class="header">



                <h2><strong>Select Students to Generate BARCODE</strong></h2>



                {!! Form::open(['url' => 'school/barcodes','class'=>'form-horizontal','id'=>'form']) !!}

            </div>

            <div class="body table-responsive">

                <div class="row clearfix">

                    @if ($errors->has('student'))

                    <label id="minmaxlength-error" class="error" for="minmaxlength">

                        <strong>{{ $errors->first('student') }}</strong>

                    </label>

                    @endif

                    <div class="col-sm-2"></div>

                    <div class="col-sm-2 form-control-label required">

                        <label for="classname">No Of Columns</label>

                    </div>

                    <div class="col-sm-3">

                        <div class="form-group">

                            {!! Form::select('columnNo',[''=>'---select---','2'=>'2','3'=>'3','4'=>'4','5'=>'5'],null,['class' => 'form-control show-tick ms','required'=>'required']) !!}

                            @if ($errors->has('columnNo'))

                            <label id="minmaxlength-error" class="error" for="minmaxlength">

                                <strong>{{ $errors->first('columnNo') }}</strong>

                            </label>

                            @endif

                        </div>

                    </div>

                     <div class="col-sm-1 form-control-label required">
                        <label for="classname">Skip</label>
                    
                    </div>

                    <div class="col-sm-1">
                        <div class="form-group">
                            <input class="form-control" required="required" name="skip" type="text" value="0">
                        </div>
                    </div>

                    <div class="col-sm-1">

                        <input type="submit" value="Generate" name="generate" class="btn btn-raised btn-primary btn-round waves-effect">

                    </div>

<!--                    <div class="col-sm-1">

                        {!! Form::submit('Print',['class' => 'btn btn-raised btn-success btn-round waves-effect']) !!}

                    </div>-->

                </div>

                <table class="table table-bordered table-striped table-hover dataTable">

                    <thead>

                        <tr>

                            <th><input type="checkbox"  class="selectAll"></th>

                            <th>Ec.No.</th>

                            <th>Name</th>

                            <th>Father</th>

                            <th>Mobile</th>

                            <th>Class</th>

                            <th>Section</th>

                        </tr>

                    </thead>

                    <tbody>

                        @foreach($students as $std)

                        <tr>

                            <td><input type="checkbox" name="students[]" value="{{$std->ecNo}}"></td>

                            <td>{{$std->ecNo}}</td>

                            <td>{{$std->firstName}} {{$std->middleName}} {{$std->lastName}}</td>

                            <td>{{$std->father_fname}} {{$std->father_lname}}</td>

                            <td>{{$std->father_mobile}}</td>

                            <td>{{$std->className}}</td>

                            <td>{{$std->sectionName}}</td>

                        </tr>

                        @endforeach

                    </tbody>

                </table>

                {!!Form::close()!!}

            </div>

        </div>

    </div>

</div>

@endif

@if(count($employees)>0)

<div class="row clearfix">

    <div class="col-sm-12">

        <div class="card">



            <div class="body table-responsive">



                <table class="table table-bordered table-striped table-hover js-basic-example dataTable">

                    <thead>

                        <tr>

                            <th></th>

                            <th>Ec.No.</th>

                            <th>Name</th>

                            <th>Mobile</th>

                            <th>Department</th>

                            <th>Designation</th>

                        </tr>

                    </thead>

                    <tbody>

                        @foreach($employees as $emp)

                        <tr>

                            <td></td>

                            <td>{{$emp->enrollmentNo}}</td>

                            <td>{{$emp->firstName}} {{$emp->middleName}} {{$emp->lastName}}</td>

                            <td>{{$emp->mobile}}</td>

                            <td>{{$emp->departmentName}}</td>

                            <td>{{$emp->designationName}}</td>

                        </tr>

                        @endforeach

                    </tbody>

                </table>



            </div>

        </div>

    </div>

</div>

@endif



@if(count($books)>1)

<div class="row clearfix">

    <div class="col-sm-12">

        <div class="card">

            <div class="header">



                <h2><strong>Select Books to Generate BARCODE</strong></h2>



                {!! Form::open(['url' => 'school/barcodes','class'=>'form-horizontal','id'=>'form']) !!}

            </div>

            <div class="body table-responsive">

                <div class="row clearfix">

                    @if ($errors->has('book'))

                    <label id="minmaxlength-error" class="error" for="minmaxlength">

                        <strong>{{ $errors->first('book') }}</strong>

                    </label>

                    @endif

                    <div class="col-sm-2"></div>

                    <div class="col-sm-2 form-control-label required">

                        <label for="classname">No Of Columns</label>

                    </div>

                    <div class="col-sm-3">

                        <div class="form-group">

                            {!! Form::select('columnNo',[''=>'---select---','2'=>'2','3'=>'3','4'=>'4','5'=>'5'],null,['class' => 'form-control show-tick ms','required'=>'required']) !!}

                            @if ($errors->has('columnNo'))

                            <label id="minmaxlength-error" class="error" for="minmaxlength">

                                <strong>{{ $errors->first('columnNo') }}</strong>

                            </label>

                            @endif

                        </div>

                    </div>

                    <div class="col-sm-1 form-control-label required">
                        <label for="classname">Skip</label>
                    
                    </div>

                    <div class="col-sm-1">
                        <div class="form-group">
                            <input class="form-control" required="required" name="skip" type="text" value="0">
                        </div>
                    </div>

                    <div class="col-sm-1">

                        <input type="submit" value="Generate" name="generate" class="btn btn-raised btn-primary btn-round waves-effect">

                    </div>

                 </div>

            <div class="body table-responsive">



                <table class="table table-bordered table-striped table-hover dataTable">

                    <thead>

                        <tr>

                            <th><input type="checkbox"  class="selectAll"></th>

                            <th>Book Type</th>

                            <th>Accession No</th>

                            <th>RFID</th>

                            <th>Title</th>

                            <th>Entry Date</th>

                        </tr>

                    </thead>

                    <tbody>

                        @foreach($books as $book)

                        <tr>

                            <td><input type="checkbox" name="students[]" value="{{$book->accessionNo}}"></td>

                            <td>{{$book->boookType->typeName}}</td>

                            <td>{{$book->accessionNo}}</td>

                            <td>{{$book->rfid}}</td>

                            <td>{{$book->title}}</td>

                            <td>{{$book->entryDate}}</td>

                        </tr>

                        @endforeach

                    </tbody>

                </table>

                {!!Form::close()!!}

            </div>

        </div>

    </div>

</div>

@endif

@stop

@section('script')

<script>

    $('.selectAll').on('click', function () {

        var checkAll = this.checked;

        if (checkAll === true) {

            $('input[type=checkbox]').each(function () {

                this.checked = checkAll;

            });

        } else {

            $('input[type=checkbox]').each(function () {

                this.checked = checkAll;

            });

        }

    });

</script>

@stop

Copyright © 2021 - 2025 IMMREX7