!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/smabpro.picotech.app/public_html/storage/framework/views/   drwxrwxr-x
Free 28.45 GB of 117.98 GB (24.12%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     9d0bb6346ad2e71140420968857f63a264010994.php (13.34 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.reservations')); ?>

<?php $__env->startSection('css'); ?>
    <link href="<?php echo e(asset('vendor/datatables/css/jquery.dataTables.min.css')); ?>" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap4.min.css">
    <link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.7/css/responsive.bootstrap4.min.css">
    <script>
        let orderDataTable = '';
    </script>
<style>
    .dropdown-menu{
        max-width: 30rem !important;
    }
    .text-uper-class{
        text-transform: capitalize;
    }
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-content'); ?>
    <div class="row page-titles mx-0">
        <div class="col-sm-6 p-md-0">
            <div class="welcome-text">
                <h4><?php echo e(trans('layout.reservations')); ?></h4>
                <p class="mb-0"><?php echo e(trans('layout.reservations')); ?></p>
            </div>
        </div>
        <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#"><?php echo e(trans('layout.home')); ?></a></li>
                <li class="breadcrumb-item active"><a href="javascript:void(0)"><?php echo e(trans('layout.reservations')); ?></a></li>
            </ol>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <div class="row">
                        <div class="col-lg-12">
                            <h4 class="card-title"><?php echo e(trans('layout.list')); ?></h4>
                            <form action="">
                                <div class="row mt-3">
                                    <div class="col-5">
                                        <select name="restaurant_id" id="restaurants" class="form-control"
                                                title="<?php echo e(trans('Select Restaurants')); ?>">
                                            <option <?php echo e(request()->get('restaurant_id')=='all'?'selected':''); ?> value="all"><?php echo e(trans('layout.all')); ?></option>
                                            <?php if(isset($restaurants)&& $restaurants): ?>
                                                <?php $__currentLoopData $restaurants$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $restaurant): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                    <option
                                                        <?php echo e(request()->get('restaurant_id')==$restaurant->id?'selected':''); ?> value="<?php echo e($restaurant->id); ?>"><?php echo e($restaurant->name); ?>

                                                    </option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                        </select>
                                    </div>
                                    <div class="col-5">
                                        <select name="status" id="status" class="form-control"
                                                title="<?php echo e(trans('layout.select_status')); ?>">
                                            <option <?php echo e(request()->get('status')=='all'?'selected':''); ?> value="all"><?php echo e(trans('layout.all')); ?></option>
                                            <option <?php echo e(request()->get('status')=='approved'?'selected':''); ?> value="approved"><?php echo e(trans('layout.approved')); ?></option>
                                            <option <?php echo e(request()->get('status')=='rejected'?'selected':''); ?> value="rejected"><?php echo e(trans('layout.rejected')); ?></option>
                                            <option <?php echo e(request()->get('status')=='pending'?'selected':''); ?> value="pending"><?php echo e(trans('layout.pending')); ?></option>
                                        </select>
                                    </div>
                                    <div class="col-2 pt-2">
                                        <button type="submit" class="btn btn-sm btn-primary"><?php echo e(trans('layout.submit')); ?></button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <?php if(auth()->user()->type == 'restaurant_owner'): ?>
                    <div class="pull-right">
                        <a href="<?php echo e(route('reservation.create')); ?>" class="btn btn-sm btn-primary">
                            <?php echo e(trans('layout.create')); ?>

                        </a>
                    </div>
                    <?php endif; ?>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table dt-responsive nowrap w-100" id="orderTable">
                            <thead>
                            <tr>
                                <th><strong><?php echo e(trans('layout.customer_details')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.reservation_details')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.restaurant')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.status')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.action')); ?></strong></th>
                            </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData $reservations$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reservation): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                    <tr>
                                        <th>
                                            <p><b><?php echo e(trans('layout.name')); ?> : </b> <?php echo e($reservation->user->name); ?></p>
                                            <p><b><?php echo e(trans('layout.email')); ?> : </b> <?php echo e($reservation->user->email); ?></p>
                                            <p><b><?php echo e(trans('layout.number')); ?> : </b> <?php echo e($reservation->contact_number); ?></p>
                                        </th>
                                        <th>
                                            <p><b><?php echo e(trans('layout.date')); ?> : </b> <?php echo e($reservation->date); ?></p>
                                            <p><b><?php echo e(trans('layout.party_size')); ?> : </b> <?php echo e($reservation->party_size); ?></p>
                                            <p><b><?php echo e(trans('layout.restaurant_name')); ?> : </b> <?php echo e($reservation->restaurant->name); ?></p>
                                            <p><b><?php echo e(trans('layout.location')); ?> : </b> <?php echo e($reservation->restaurant->location); ?></p>
                                        </th>
                                        <th>
                                            <p><?php echo e($reservation->restaurant->email); ?></p>
                                            <p><?php echo e($reservation->restaurant->phone_number); ?></p>
                                        </th>
                                        <th>
                                            <?php if(auth()->user()->type == 'reservation_owner' || auth()->user()->type == 'customer'): ?>
                                                <?php if($reservation->status == 'approved'): ?>
                                                    <span class="badge light badge-success text-uper-class"><?php echo e($reservation->status); ?></span>
                                                <?php elseif($reservation->status == 'rejected'): ?>
                                                    <span class="badge light badge-danger text-uper-class"><?php echo e($reservation->status); ?></span>
                                                <?php else: ?>
                                                    <span class="badge light badge-warning text-uper-class"><?php echo e($reservation->status); ?></span>
                                                <?php endif; ?>
                                            <?php else: ?>
                                            <div class="dropdown">
                                                <?php
                                                    $btnClass 
$reservation->status == 'approved' 'btn-success' :
                                                                (
$reservation->status == 'rejected' 'btn-danger' 'btn-warning');
                                                
?>
                                                <?php if($reservation->status == 'pending'): ?>
                                                <button class="btn dropdown-toggle text-uper-class <?php echo e($btnClass); ?>" type="button" data-toggle="dropdown" aria-expanded="false">
                                                    <?php echo e($reservation->status); ?>

                                                </button>
                                                <?php else: ?>
                                                <button class="btn text-uper-class <?php echo e($btnClass); ?>" type="button">
                                                    <?php echo e($reservation->status); ?>

                                                </button>
                                                <?php endif; ?>
                                                <div class="dropdown-menu">
                                                    <?php if($reservation->status == 'pending'): ?>
                                                    <a class="dropdown-item change-status" data-id="<?php echo e($reservation->id); ?>" data-status="approved" href="#">Approved</a>
                                                    <a class="dropdown-item change-status" data-id="<?php echo e($reservation->id); ?>" data-status="rejected" href="#">Rejected</a>
                                                    <?php endif; ?>
                                                </div>
                                              </div>
                                              <?php endif; ?>
                                        </th>
                                        <th>
                                            <?php if($reservation->status == 'pending'|| auth()->user()->type == 'admin'): ?>
                                                <a href="<?php echo e(route('edit.reservation',[$reservation->id])); ?>" class="btn btn-primary btn-sm"><?php echo e(trans('layout.edit')); ?></a>
                                            <?php endif; ?>
                                        </th>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="statusModal" style="z-index: 9999">
        <div class="modal-dialog modal-md">
            <div class="modal-content">
                <div class="modal-header border-0 p-3">
                    <h4 class="modal-title"><?php echo e(trans('Item status changed')); ?></h4>
                    <button type="button" class="close" data-dismiss="modal">&times;
                    </button>
                </div>
                <form action="<?php echo e(route('change.reservation.status')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                <div class="modal-body">
                    <input type="hidden" id="reservation_id" name="reservation_id">
                    <input type="hidden" id="status_id" name="status">
                    <h5>Are you sure you want to <span class="status_name"></span> this reservation?</h5>
                </div>
                <div class="modal-footer p-2">
                    <button type="submit"
                            class="btn btn-primary"><?php echo e(trans('layout.confirm')); ?></button>
                </div>
            </form>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
<script>
    $(document).ready(function () {
        $('.change-status').click(function (e) {
            e.preventDefault();
            const reservationId = $(this).data('id');
            const status = $(this).data('status');
            $('#reservation_id').val(reservationId);
            $('#status_id').val(status);
            $('.status_name').text(status);
            $('#statusModal').modal('show');
        });
    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dashboard'\Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?><?php /**PATH /home/picotech/domains/qr.picotech.app/public_html/resources/views/reservation/index.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.0063 ]--