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/newdaycollection.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@newdayCollection'], '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>
            @if(count($feeheads)>0)
            <div class="body table-responsive">
                <table class="table table-bordered table-striped table-hover dataTable">
                    <thead>
                        <tr>
                            <th>Ec No.</th>
                            <th>Name</th>
                            <th>Class</th>
                            @foreach($feeheads as $var)
                            <th>{{$var->headerName}}</th>
                            @endforeach
                            <th>Fine</th>
                            <th>Total</th>
                            <th>Discount</th>
                            <th>Net</th>
                            <th>Receipt No</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($transactions as $t)
                        <tr>
                            <td>{{$t->ecNo}}</td>
                            <td>{{$t->Name}}</td>
                            <td>{{$t->class}} {{$t->section}}</td>
                            @foreach($feeheads as $var)
                            <td>
                                <?php $fd = \App\DailyTransactionDetail::where('idDailyTransaction','=',$t->idDailyTransaction)
                                        ->where('headerName','=',$var->headerName)->first();?>
                                @if($fd!=null)
                                {{$fd->amountPaid}}
                                @endif
                            </td>
                            @endforeach
                            <td>{{$t->totalFine}}</td>
                            <td>{{$t->totalfeePaid }}</td>
                            <td>{{$t->totalDiscount}}</td>
                            <td>{{$t->netAmount}}</td>
                            <td>{{$t->receiptNo}}</td>
                        </tr>
                        @endforeach
                    </tbody>
                    <tfoot>
                        <tr>
                            <th></th>
                            <th></th>
                            <th>Exemption:</th>
                            @foreach($feeheads as $var)
                            <th>{{$var->discountTotalFeehead}}</th>
                            @endforeach
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                        </tr>
                        <tr>
                            <th></th>
                            <th></th>
                            <th>Total:</th>
                            @foreach($feeheads as $var)
                            <th>{{$var->feeheadPaidTotal}}</th>
                            @endforeach
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                        </tr>
                    </tfoot>
                </table>
                @endif
            </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