!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/resources/views/admin/session/   drwxr-xr-x
Free 29.42 GB of 117.98 GB (24.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     session_manager.blade.php (5.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('admin.navigation')
   
@section('content')

<?php 

use App\Models\Session;

$current_session get_school_settings(auth()->user()->school_id)->value('running_session');
$running_session Session::find($current_session);

?>
<div class="mainSection-title">
    <div class="row">
        <div class="col-12">
            <div
              class="d-flex justify-content-between align-items-center flex-wrap gr-15"
            >
                <div class="d-flex flex-column">
                    <h4>{{ get_phrase('Session Manager') }}</h4>
                    <ul class="d-flex align-items-center eBreadcrumb-2">
                        <li><a href="#">{{ get_phrase('Home') }}</a></li>
                        <li><a href="#">{{ get_phrase('Settings') }}</a></li>
                        <li><a href="#">{{ get_phrase('Session Manager') }}</a></li>
                    </ul>
                </div>
                <div class="export-btn-area">
                    <a href="javascript:;" class="export_btn" onclick="rightModal('{{ route('admin.create.session') }}', '{{ get_phrase('Create Session') }}')"><i class="bi bi-plus"></i>{{ get_phrase('Add Session') }}</a>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-12">
        <div class="eSection-wrap">
            <div class="eMain">
                <div class="row">
                    <div class="col-md-6 pb-3">
                        <div class="eAlert eBtn-blueish" role="alert">
                            {{ get_phrase('Active session ') }}
                            <span class="text-white eBtn-green p-1" id="active_session">{{ $running_session->session_title }}</span>
                        </div>
                        <div class="row">
                            <div class="col-9">
                                <select class="form-select eForm-select eChoice-multiple-with-remove" id="session_dropdown">
                                    <option value = "">{{ get_phrase('Select a session') }}</option>
                                    @foreach($sessions as $session)
                                        <option value="{{ $session->id }}" {{ $session->status == 1 ? 'selected':'' }}>{{ $session->session_title }}</option>
                                    @endforeach
                                </select>
                            </div>
                            <div class="col-3">
                                <button type="button" class="eBtn eBtn btn-secondary" onclick="makeSessionActive()"> <i class="mdi mdi-check"></i>{{ get_phrase('Activate') }}</button>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 pb-3">
                        <table id="basic-table" class="table eTable">
                            <thead>
                                <tr>
                                    <th>{{ get_phrase('Session title') }}</th>
                                    <th>{{ get_phrase('Status') }}</th>
                                    <th class="text-center">{{ get_phrase('Options') }}</th>
                                </tr>
                            </thead>
                            <tbody class="table_body">
                                <?php
                                
foreach($sessions as $session):?>
                                <tr>
                                    <td><strong>{{ $session['session_title'] }}</strong></td>
                                    <td>
                                        <?php if($session['status'] == 1): ?>
                                            <span class="eBadge ebg-success">{{ get_phrase('Active') }}</span>
                                        <?php else: ?>
                                            <span class="eBadge ebg-danger">{{ get_phrase('Deactive') }}</span>
                                        <?php endif; ?>
                                    </td>
                                    <td class="text-start">
                                        <div class="adminTable-action">
                                            <button
                                              type="button"
                                              class="eBtn eBtn-black dropdown-toggle table-action-btn-2"
                                              data-bs-toggle="dropdown"
                                              aria-expanded="false"
                                            >
                                              {{ get_phrase('Actions') }}
                                            </button>
                                            <ul
                                              class="dropdown-menu dropdown-menu-end eDropdown-menu-2 eDropdown-table-action"
                                            >
                                              <li>
                                                <a class="dropdown-item" href="javascript:;" onclick="rightModal('{{ route('admin.edit.session', ['id' => $session->id]) }}', '{{ get_phrase('Edit Session') }}')">{{ get_phrase('Edit') }}</a>
                                              </li>
                                              <li>
                                                <a class="dropdown-item" href="javascript:;" onclick="confirmModal('{{ route('admin.session.delete', ['id' => $session->id]) }}', 'undefined');">{{ get_phrase('Delete') }}</a>
                                              </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">

  "use strict";

    function makeSessionActive() {
        var session_id = $('#session_dropdown').val();
        let url = "{{ route('admin.session_manager.active_session', ['id' => ":session_id"]) }}";
        url = url.replace(":session_id", session_id);
        $.ajax({
            type : 'GET',
            url: url,
            processData: false,
            contentType: false,
            dataType: 'json',
            success : function(response) {
                (response.status === true) ? toastr.success(response.notification) : toastr.error(response.notification);
                location.reload();
            }
        });
    }
</script>

@endsection

:: 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.0047 ]--