IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/north/transaction/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/north/transaction/daywise_collection.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>Daywise Collection Report </strong></h2>
            </div>
            <div class="body">
                {!! Form::open(['method' => 'GET',  'action' => ['School\NorthTransactionReportController@daywiseFeeCollection'], 'class' => 'form-horizontal']) !!}
                <div class="row clearfix">
                    <div class="col-sm-2"></div>
                    <div class="col-sm-2 form-control-label">
                        <label for="classname">Select Date</label>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            {!! Form::text('date',null,['class' => 'form-control dateselector']) !!}
                        </div>
                    </div>
                    <div class="col-sm-2">
                        {!! Form::submit('SHOW',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
                    </div>
                </div>
                {!!Form::close()!!}
            </div>
            <div class="body table-responsive">
                <table class="table table-bordered table-striped table-hover js-exportable dataTable">
                    <thead>
                        <tr>
                            <th>Receipt No</th>
                            <th>Date</th>
                            <th>Ec No.</th>
                            <th>Name</th>
                            <th>Class</th>
                            <th>Section</th>
                            <!--<th>Total Fee</th>-->
                            <th>Total Discount</th>
                            <th>Total Fine</th>
                            <th>Total Paid</th>
                            <!--<th>Balance</th>-->
                            <th>Payment Mode</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $grandtotal = 0; $discount_total = 0; $fine_total = 0;?>
                        @foreach($fulltransaction as $det)
                        <tr>
                            <td>{{$det->receiptNo}}</td>
                            <td>{{$det->paymentDate}}</td>
                            <td>{{$det->ecNo}}</td>
                            <td>{{$det->firstName}} {{$det->middleName}} {{$det->lastName}}</td>
                            <td>{{$det->className}}</td>
                            <td>{{$det->sectionName}}</td>
                            <!--<td></td>-->
                            <td>
                                {{$det->discountTotal}}
                                <?php $discount_total = $discount_total + $det->discountTotal;?>
                            </td>
                            <td>
                                {{$det->fineTotal}}
                                <?php $fine_total = $fine_total + $det->fineTotal;?>
                            </td>
                            <td>
                                {{$det->totalpaid}}
                                <?php $grandtotal = $grandtotal + $det->totalpaid;?>
                            </td>
                            <td>{{$det->paymentMode}}</td>
                        </tr>
                        @endforeach
                    </tbody>
                    <tfoot>
                        <tr>
                            <th colspan="6" style="text-align: center;">Grand Total : </th>
                            <th>{{$discount_total}}</th>
                            <th>{{$fine_total}}</th>
                            <th>{{$grandtotal}}</th>
                            <th></th>
                        </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </div>
</div>
@stop
@section('script')
<script>
$('.dateselector').datepicker({
      autoclose: true,
      autoWidth: false,
      format: 'dd-mm-yyyy',
      endDate: '+0d',
      orientation: 'auto'
});
$('#tableexp').DataTable({
        dom: 'Bfrtip',
         scrollY:        "500px",
        scrollX:        true,
        scrollCollapse: true,
        fixedColumns:   {
            left: 1
        },
        lengthMenu: [[25,50,100,-1], [25,50,100, "All"]],
        buttons: [
            {
                extend: 'pdfHtml5',
                orientation: 'landscape',
                pageSize: 'LEGAL',
                title: '{{$school->schoolName}}',
                footer: true 
            },
            { extend: 'excelHtml5', footer: true , title: '{{$school->schoolName}}'},
        ]
    });
</script>
@stop

Copyright © 2021 - 2025 IMMREX7