|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3><?php echo e(__('message.collectfees')); ?></h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="<?php echo e(asset('superadmin/dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.collectfees')); ?></li>
</ol>
</nav>
</div>
<!-- end::page header -->
<?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
<div class="card">
<div class="card-header">
<form id="searchform" method="get">
<div class="form row">
<div class="col-md-3">
<label for="due_date"><?php echo e(__('message.date')); ?> (YYYY-MM-DD)</label>
<input data-input-mask="due_date" name="due_date" type="text"
class="date-picker form-control" id="due_date" value="" maxlength="10"
autocomplete="off">
</div>
<div class="col-md-3">
<div class="form-group">
<label for="class"><?php echo e(__('message.class')); ?><span
class="text-danger">*</span></label>
<select class="form-control select2" name="class" id="class">
<?php if(!empty($classes)): ?>
<option value="">--select-class--</option>
<?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $class): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option data-code="<?php echo e($class->code); ?>" value="<?php echo e($class->id); ?>">
<?php echo e($class->class); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label for="section"><?php echo e(__('message.section')); ?></label>
<select class="form-control select2" name="section" id="section">
</select>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label for="gender"><?php echo e(__('message.gender')); ?></label>
<select class="form-control select2" name="gender" id="gender">
<option value="">--select-gender--</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<select class="form-control select2" name="status" id="status">
<option value="">--select-status--</option>
<option value="paid">PAID</option>
<option value="unpaid">UNPAID</option>
</select>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<input type="text" placeholder="Search by rollno..." class="form-control"
value="<?php echo e($_GET['roll_no'] ?? ''); ?>" name="roll_no" id="roll_no">
</div>
</div>
<div class="col-md-6">
<a href="<?php echo e(asset('fees_collect/bulk_fees_import')); ?>"
class="btn btn-primary btn-square pull-right reset text-white">
<i class="fa fa-file-excel-o fa-lg pr-1"></i>Sample
</a>
<a href="<?php echo e(asset('fees_collect/export?') . Request::getQueryString()); ?>"
class="btn btn-warning btn-square reset pull-right text-white">
<i class="fa fa-download fa-lg pr-1"></i><?php echo e(__('message.export')); ?>
</a>
<button type="submit" class="btn btn-dark btn-square">
<i class="fa fa-search fa-lg"></i>
</button>
<a href="<?php echo e(asset('fees_collect')); ?>" class="btn btn-primary btn-square reset text-white">
<i class="fa fa-recycle fa-lg"></i>
</a>
</div>
</div>
</form>
</div>
<div class="card-body">
<div class="message"></div>
<?php if(!empty($students)): ?>
<div class="table-responsive font-size-12">
<table id="collectfees" class="table table-bordered">
<thead>
<tr>
<th>ROLL NO</th>
<th>CLASS</th>
<th>SECTION</th>
<th>FULLNAME</th>
<th>GENDER</th>
<th>FEES</th>
<th>STATUS</th>
<th>DUE_DATE</th>
<th>ACTION</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<button class="btn btn-info btn-sm waves-effect waves-button waves-light">
<?php echo e($item->enrollment_no); ?>
</button>
</td>
<td>
<?php if($item->class->count() > 0): ?>
<?php echo e($item->section()->with('class')->where('class_id', $item->section->first()->class_id)->first()->class->class); ?>
<?php else: ?>
NA
<?php endif; ?>
</td>
<td>
<?php if($item->section->count() > 0): ?>
<?php echo e($item->section->first()->section); ?>
<?php else: ?>
NA
<?php endif; ?>
</td>
<td><?php echo e($item->fullname); ?></td>
<td><?php echo e($item->gender); ?></td>
<td>
<span class="badge badge-primary">₹
<?php echo e($item->feesallot->where('id', $item->fees_id)->first()->amount); ?></span>
</td>
<td>
<?php if($item->feesallot->where('id', $item->fees_id)->last()->status == 'unpaid'): ?>
<span class="badge badge-danger">UNPAID</span>
<?php else: ?>
<span class="badge badge-success">PAID</span>
<?php endif; ?>
</td>
<td>
<?php echo e(date('d-m-Y', strtotime($item->feesallot->where('id', $item->fees_id)->last()->due_date))); ?>
</td>
<td>
<a target="_blank"
href="<?php echo e(asset('fees_collect/student') . '/' . $item->user_unique_id); ?>"
class="text-white btn btn-square btn-sm btn-dark">
₹ Collect Fees
</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<div class="pagination-block">
<?php echo e($students->appends($_GET)->links('includes.paginationlinks')); ?>
<label>Showing total <?php echo $students->total(); ?> results</label>
</div>
<?php endif; ?>
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<script src="<?php echo e(asset('public/admin/vendors/input-mask/jquery.mask.js')); ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<script>
$(document).ready(function() {
$('[data-input-mask="due_date"]').mask('0000-00-00');
$('.date-picker').daterangepicker({
"singleDatePicker": true,
"showDropdowns": true,
"maxYear": moment().format('YYYY'),
"autoApply": true,
"locale": {
"format": "YYYY-MM-DD",
"separator": " - ",
"applyLabel": "Apply",
"cancelLabel": "Cancel"
}
});
$('#due_date').val("<?php echo e(Request::get('due_date')); ?>");
toastr.options = {
timeOut: 0,
extendedTimeOut: 0,
tapToDismiss: true
}
$("#checkAll").click(function() {
$('.student').not(this).prop('checked', this.checked);
});
// Get Section
$("#class").on('change', function() {
var URL = "<?php echo e(asset('admission/get-section/')); ?>" + "/" + $(this).val();
$.ajax({
type: "GET",
url: URL,
dataType: "JSON",
beforeSend: function() {
$("#section").empty();
$("#section").append("<option value=''>--select-section--</option>");
},
success: function(data) {
$.map(data, function(item) {
$("#section").append("<option data-code='" + item.code +
"' value='" + item.id + "'>" + item.text +
"</option>");
});
},
complete: function() {
$('#section').val("<?php echo e(Request::get('section')); ?>").trigger('change');
}
});
});
$('#class').val("<?php echo e(Request::get('class')); ?>").trigger('change');
});
</script>
<?php if(!empty(Request::has('school'))): ?>
<script>
$('#schools').val("<?php echo e(Request::get('school')); ?>").trigger('change');
</script>
<?php endif; ?>
<?php if(!empty(Request::has('status'))): ?>
<script>
$('#status').val("<?php echo e(Request::get('status')); ?>").trigger('change');
</script>
<?php endif; ?>
<?php if(!empty(Request::has('gender'))): ?>
<script>
$('#gender').val("<?php echo e(Request::get('gender')); ?>").trigger('change');
</script>
<?php endif; ?>
<script>
$(document).ready(function() {
$('#allotment').on('click', function() {
var students = $(".student:checked").map(function() {
return $(this).val();
}).get();
var feesmasters = $(".feesmaster:checked").map(function() {
return $(this).val();
}).get();
$.ajax({
type: "POST",
url: "<?php echo e(asset('fees_master/assign')); ?>",
dataType: "JSON",
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: {
students: students,
feesmasters: feesmasters,
class: $('#class').val(),
section: $('#section').val(),
},
beforeSend: function() {
$('#allotment').prop('disabled', true);
$('#allotment').html(
'<i class="spinner-border spinner-border-sm mr-2"></i> Loading');
},
success: function(data) {
if (data.status) {
toastr.success(data.message);
$('.message').html('<div class="alert alert-success">' + data
.message + '</div>');
} else {
toastr.error(data.message);
}
},
complete: function() {
$('#allotment').prop('disabled', false);
$('#allotment').html(
'<i class="fa fa-share-square-o mr-1"></i>Allotment');
}
});
});
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\school_saas_erp\resources\views/fees_collect/assign.blade.php ENDPATH**/ ?>