IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/164cb1dd8c31a46dd88b84560e5a154078a89a2e.php

<?php $__env->startSection('content'); ?>
<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>List of Applied Leaves</strong></h2>
            </div>
            <?php if($checkLeave == null): ?>
            <div class="body table-responsive">
                <p> Unfortunately, You currently do not have the necessary permissions to complete this action or provide the information you're asking for.

If you'd like to grant the required permissions, reach out to the appropriate administrator.</p>
            </div>
            <?php else: ?>
            <div class="body table-responsive">
            <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                    <thead>
                        <tr>
                            <th>EC No.</th>
                            <th>Name</th>
                            <th>Department</th>
                            <th>Designation</th>
                            <th>From Date</th>
                            <th>To Date</th>
                            <th>Leave Type</th>
                            <th>Message</th>
                            <th>Document</th>
                            <th>Issued By</th>
                            <th colspan="2">Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $empleaves; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(isset($value->employee)): ?>
                        <tr>
                            <td><?php echo e($value->employee->enrollmentNo); ?></td>
                            <td><?php echo e($value->employee->firstName); ?> <?php echo e($value->employee->middleName); ?> <?php echo e($value->employee->lastName); ?></td>
                            <td><?php echo e($value->employee->department->departmentName); ?></td>
                            <td><?php echo e($value->employee->designation->designationName); ?></td>
                            <td><?php echo e(Carbon\Carbon::parse($value->leave_from)->format("d-m-Y")); ?></td>
                            <td><?php echo e(Carbon\Carbon::parse($value->leave_to)->format("d-m-Y")); ?></td>
                            <td><?php echo e($value->leave_type); ?></td>
                            <td><?php echo e($value->leave_message); ?></td>
                            <td> <?php if(isset($value->documents)): ?> <a href="<?php echo e(url('/teacher/leave-document/' . $value->idLeave.'/view')); ?>" target="_blank">View Document</a> <?php else: ?> NA <?php endif; ?></td>
                            <td>
                                <?php $emp = \App\Employee::where('idEmployee', '=', $value->updated_by)->first(); ?>
                                <?php if($emp != null): ?> <?php echo e($emp->name); ?> <?php endif; ?>
                                <?php if($value->name != null): ?> <?php echo e($value->name); ?> <?php endif; ?>
                            </td>
                            <td><?php if($value->status != null): ?> <?php echo e($value->status); ?> <?php endif; ?></td>
                            <td><?php if($value->status != null): ?> <?php echo e($value->remarks); ?> <?php else: ?> <a class="btn btn-sm btn-success" href="<?php echo e(url('/teacher/leave-window/'.$value->idLeave)); ?>" target="_blank">Update Status</a> <?php endif; ?></td>
                        </tr>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('teachers.teacher_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7