IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<!--<div class="card">-->
<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>Return Report</strong></h2>
</div>
<div class="body">
<?php echo Form::open(['method' => 'GET', 'action' => ['School\Stock\StockReportController@amountReturnReport'], 'class' => 'form-horizontal']); ?>
<div class="row clearfix">
<div class="col-sm-2 form-control-label">
<label for="classname">From Date</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('fromDate',null,['class' => 'form-control datepicker']); ?>
</div>
</div>
<div class="col-sm-2 form-control-label">
<label for="classname">To Date</label>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::text('toDate',null,['class' => 'form-control datepicker']); ?>
</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>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Return Report</strong></h2>
</div>
<div class="body table-responsive">
<table class="table table-bordered table-striped table-hover" id="js-inventory">
<thead>
<tr>
<th>Invoice Date</th>
<th>Invoice No</th>
<th>Name</th>
<th>Ec No.</th>
<th>Invoice Amount</th>
<th>Return Amount</th>
<th>Created By</th>
<th>Paid Amount</th>
<th>Payment Date</th>
<th>UTR No.</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $invoice; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($var->invoiceDate); ?></td>
<td><?php echo e($var->invoiceNo); ?></td>
<?php if($var->customerType == "Customer"): ?>
<?php $customer = DB::table('customers')->where('idCustomer',$var->idCustomer)->first();?>
<td><?php echo e($customer->customerName); ?></td>
<td><?php echo e($customer->customerNumber); ?></td>
<?php else: ?>
<?php if($var->customerType == "Student"): ?>
<?php $customer = DB::table('students')->where('idStudent',$var->idCustomer)->first();?>
<td><?php echo e($customer->firstName); ?> <?php echo e($customer->lastName); ?></td>
<td><?php echo e($customer->ecNo); ?></td>
<?php else: ?>
<?php $customer = DB::table('employees')->where('idEmployee',$var->idCustomer)->first();?>
<td><?php echo e($customer->firstName); ?> <?php echo e($customer->lastName); ?></td>
<td><?php echo e($customer->enrollmentNo); ?></td>
<?php endif; ?>
<?php endif; ?>
<td><?php echo e($var->amountPayable); ?></td>
<td><?php echo e($var->return_amount); ?></td>
<td><?php if(isset($var->created_by)): ?> <?php echo e(fetchSchoolUser($var->created_by)); ?> <?php endif; ?></td>
<td><?php echo e($var->paid_amount ?? 0.00); ?></td>
<td><?php if(isset($var->paid_date)): ?> <?php echo e(\Carbon\Carbon::parse($var->paid_date)->format('d-m-Y')); ?> <?php endif; ?></td>
<td><?php echo e($var->utr_number ?? ''); ?></td>
<td>
<?php if(!isset($var->paid_date)): ?>
<a href="/school/manage-return-report?id=<?php echo e(\Illuminate\Support\Facades\Crypt::encryptString($var->id)); ?>" class="btn btn-primary">Manage Return</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$('#js-inventory').DataTable( {
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
} );
$(document).ready(function() {
});
$(document).on('click', '.select-all', 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>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -