Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/vhost/ats.isankalpa.org/resources/views/apk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhost/ats.isankalpa.org/resources/views/apk/index.blade.php
@extends('layouts.app')
@section('content')
<div class="admim-content-wrapper" id="main_container">
    <div class="wrapper">
		<div class="row">
            <?php echo show_flash_messages(); ?>
            <div class='main-bg white-bg label-inline-block clearfix margin-bottom-la'>
                <div class="menu-list">
                    <div class="col-la-12"> 
                        <div class="admin-content-header listing-page">
                                                
                            <div class="d-flex align-items-center justify-content-between">
                                <h1 >App History List</h1>
                                <div class="form-panel clearfix add_button_section">
                                    @foreach($menu_permit as $menu)
                                    <?php if($menu->s_link  == 'apk/add' ) { ?>
                                        <a href="{{ route('apk.add') }}" class="button button-la float-left"><i class="fas fa-download"></i> Add APK File</a>
                                    <?php } ?>
                                    @endforeach
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                          
                             @foreach($menu_permit as $menu)
                            <?php if($menu->s_link  == 'apk/add' ) { ?>
                                    <div class="table-responsive">
                                        <div class="float-right" style="margin: 10px;"></div>
                                            <table class="table-border sticky-header" id="apkTable">
                                                <thead>
                                                    <tr>
                                                        <th class="align-center text-nowrap">Release Date</th>
                                                        <th class="align-center text-nowrap">App Version</th>
                                                        <th class="align-center text-nowrap">Release Notes</th>
                                                        <th class="align-center text-nowrap">Apk URL</th>
                                                        @foreach($menu_permit as $menu)
                                                        <?php if($menu->s_link  == 'apk/status' ) { ?>
                                                        <th class="align-center text-nowrap">Action</th>
                                                        <?php } ?>
                                                        @endforeach
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    @foreach($getData as $detailVal)
                                                    
                                                        <tr class="catTr">
                                                            <td class="align-center">
                                                                {{date('d-m-Y', strtotime($detailVal->dt_release_date))}}
                                                            </td>
                                                            <td class="align-center">
                                                                {{$detailVal->s_version}}
                                                            </td>
                                                            <td class="align-left">
                                                                {!!$detailVal->s_version_release!!}
                                                            </td>
                                                            <td class="align-center">
                                                               
                                                                <a href="{{getSecureS3Url($detailVal->s_apk_link)}}" class="button"> <i class="fa fa-android"></i> Download</a>
                                                            </td>
                                                            @foreach($menu_permit as $menu)
                                                            <?php if($menu->s_link  == 'apk/status' ) { ?>
                                                            <td class="align-center">
                                                               
                                                                <form id="updateStatusForm{{ $detailVal->i_id }}" action="{{ route('apk.updateStatus', ['id' => $detailVal->i_id]) }}" method="post">
                                                                    @csrf
                                                                    <input name="releaseDate" type="hidden" value="{{$detailVal->dt_release_date}}">
                                                                    <input name="appVersion" type="hidden" value="{{$detailVal->s_version}}">
                                                                    <input name="appId" type="hidden" value="{{$detailVal->i_id}}">
                                                                    
                                                                    <!-- Add other form fields if needed -->
                                                                    <a href="#" class="btn btn-success update-active-btn button" onclick="updateStatusForm(event, '{{ $detailVal->i_id }}')">
                                                                        <i class="fas fa-trash" aria-hidden="true"></i> Delete
                                                                    </a>
                                                                    <!-- Display error messages -->
                                                                    <span id="appIdError{{ $detailVal->i_id }}" class="error-feedback"></span>
                                                                </form>
                                                               
                                                            </td>
                                                            <?php }?>
                                                            @endforeach
                                                        </tr>

                                                    @endforeach
                                                </tbody>
                                            </table>  
                                        </div>
                                    </div>
                                    <?php }?>
                                    @endforeach
            </div>
        </div>
        <script>
         function updateStatusForm(event, id) {
            event.preventDefault(); // Prevent the default link behavior

            // Display a simple confirmation using the built-in confirm dialog
            var userConfirmed = confirm('Are you sure you want to update the status?');

            if (userConfirmed) {
                // Clear previous error messages
                $('.error-feedback').text('');

                // Create a FormData object to handle form data
                var formData = new FormData($('#updateStatusForm' + id)[0]);
                
                
                // Make an AJAX request
                $.ajax({
                    type: 'POST',
                    url: $('#updateStatusForm' + id).attr('action'),
                    data: formData,
                    contentType: false,
                    processData: false,
                    dataType: 'json',
                    success: function (response) {
                        console.log('Success:', response);
                        location.reload();
                    },
                    error: function (xhr, status, error) {
                        console.error('Error:', xhr.responseText);
                        var errors = xhr.responseJSON.errors;

                        if (errors) {
                            $.each(errors, function (key, value) {
                                // Display error messages next to form fields
                                $('#' + key + 'Error' + id).text(value[0]);
                            });
                        } else {
                            // Handle other types of errors
                            alert('An error occurred. Please try again.');
                        }
                    },
                    complete: function () {
                        console.log('AJAX Request Complete');
                    }
                });

                console.log('After AJAX Request');
            }
        }

$(document).ready(function () {
      $('#apkTable').DataTable({
          "lengthChange": false,
          "paging": false,
          "searching": false,
          "info": false,
          "drawCallback": function(settings) {
            $(settings.nTable).css('border-bottom', 'none');
        }
      });
  });
        </script>
@endsection


Youez - 2016 - github.com/yon3zu
LinuXploit