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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/jiff_delivery/storage/framework/views/   drwxrwxrwx
Free 13.08 GB of 57.97 GB (22.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     536349e23f57392fa5f62812233cebfba6cc1430.php (19.22 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

<?php $__env->startSection('title'); ?> Requested Order <?php $__env->stopSection(); ?>
<?php $__env
->startSection('content'); ?>
<?php $__env
->startComponent('components.breadcrumb'); ?>
<?php $__env
->slot('li_1'); ?> Order <?php $__env->endSlot(); ?>
<?php $__env
->slot('title'); ?>Requested List <?php $__env->endSlot(); ?>
<?php 
echo $__env->renderComponent(); ?>

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <?php $__currentLoopData $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                        <span class="each-error"><?php echo e($error); ?> </span><br/>
                    <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                </div>
            <?php endif; ?>
            <?php if(session()->has('message')): ?>
                <div class="alert alert-success">
                    <?php echo e(session()->get('message')); ?>

                </div>
            <?php endif; ?>
            <div class="card-header  border-0">
                <div class="d-flex align-items-center">
                    <h5 class="card-title mb-0 flex-grow-1">Requested Orders List</h5>
                    <!-- <div class="flex-shrink-0">
                        <button type="button" class="btn btn-success add-btn"  data-bs-toggle="modal"
                            id="create-btn" data-bs-target="#addModal"><i
                                class="ri-add-line align-bottom me-1"></i> Create New
                        </button>
                    </div> -->
                </div>
            </div>
            <div class="card-body border border-dashed border-end-0 border-start-0">
                <form action="<?php echo e(route('requested_deliveries')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="row g-3">
                        <div class="col-xxl-2 col-sm-3">
                            <div class="search-box">
                                <?php
                                    $input_dt 
= (isset($search_input)) ? $search_input "";
                                
?>
                                <input type="text" id="search_input" name="search_input" value="<?php echo e($input_dt); ?>" class="form-control search"
                                    placeholder="Search by order id">
                                <i class="ri-search-line search-icon"></i>
                            </div>
                        </div>
                        <!--end col-->
                        <div class="col-xxl-2 col-sm-3">
                            <div>
                                <?php
                                    $dt
=date('d M, Y'strtotime("-1 month")) ." to ".date('d M, Y'strtotime("+0 days"));
                                    
$date_dt = (isset($date_range)) ? $date_range :$dt;
                                
?>
                                <input type="text" class="form-control" data-provider="flatpickr"
                                    data-date-format="d M, Y" data-range-date="true"
                                    id="demo-datepicker" data-deafult-date="<?php echo e($date_dt); ?>" name="date_range" placeholder="Select date">
                            </div>
                        </div>
                        <!--end col-->
                        <div class="col-xxl-2 col-sm-3" style="max-height:40px;">
                            <div>
                                <select class="js-example-basic-single form-control" 
                                    name="shop" id="idShop">
                                    <option value="" disabled>Select Shop</option>
                                    <option value="all" selected>All Shop</option>
                                    <?php
                                        $shop_dt 
= (isset($shop)) ? $shop "all";
                                    
?>
                                    <?php if(isset($shops)): ?>
                                        <?php $__currentLoopData $shops$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shop): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($shop->id); ?>"><?php echo e($shop->shop_name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                </select>
                            </div>
                        </div>
                        <!--end col-->
                        <div class="col-xxl-1 col-sm-3">
                            <div>
                                <button type="submit" class="btn btn-primary w-100"> <i
                                        class="ri-equalizer-fill me-1 align-bottom"></i>
                                    Filters
                                </button>
                            </div>
                        </div>
                        <!--end col-->
                    </div>
                    <!--end row-->
                </form>
            </div>
            <div class="card-body pt-3">
                <div class="">
                    <table id="requestedOrdersList" class="table dt-responsive align-middle table-hover table-bordered" style="width:100%">
                        <thead>
                            <tr>
                                <th>Order ID</th>
                                <th>Invoice No</th>
                                <th>Date</th>
                                <th>Receiver</th>
                                <th>Address</th>
                                <th>Shop</th>
                                <th>Address</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                                $i
=1;
                            
?>
                            <?php if(isset($deliveries)): ?>
                                <?php $__currentLoopData $deliveries$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                <?php
                                    $customer
json_decode($data->customer,true);
                                    
$vendorjson_decode($data->vendor,true);
                                    
$datedate('d M, Y H:i'strtotime($data->created_at));

                                
?>
                                <tr>
                                    <td>
                                        <a href="<?php echo e(route('order_details',['order_id'=>$data->sale_id])); ?>" class="fw-medium link-primary">
                                            <!-- <button class="btn btn-sm btn-soft-success text-uppercase"> -->
                                            <?php echo e($data->order_id); ?>                                       
                                            <!-- </button> -->
                                        </a>
                                    </td>      
                                   <td><?php echo e($data->invoice_no); ?></td>                              
                                    <td><?php echo e($date); ?></td>
                                    <td><?php echo e($customer['receiver_name']); ?></td>
                                    <td><?php echo e($customer['address']); ?></td>
                                    <td><?php echo e($vendor['shop_name']); ?></td>
                                    <td><?php echo e($vendor['address']); ?></td>
                                    <td>
                                        <li class="list-inline-item edit"
                                            data-bs-toggle="tooltip" data-bs-trigger="hover"
                                            data-bs-placement="top" title="Picked Up">
                                            <button class="btn btn-sm btn-soft-success text-uppercase"  onclick="pickedUp
                                                (<?php echo e($data); ?>,'<?php echo e($date); ?>' )">
                                                Pick Up                                            
                                            </button>                                           
                                        </li>
                                    </td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                            <?php endif; ?>
                            
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- Modal -->
            <div class="modal fade modal-lg" id="changeStatus_Modal" tabindex="-1"
                aria-labelledby="exampleModalLabel" aria-hidden="true">
                <div class="modal-dialog modal-dialog-centered">
                    <div class="modal-content">
                        <div class="modal-header bg-light p-3">
                            <h5 class="modal-title" id="exampleModalLabel">Update Status</h5>
                            <button type="button" class="btn-close" data-bs-dismiss="modal"
                                aria-label="Close" id="close-modal"></button>
                        </div>
                        <div class="col-lg-12">
                            <div class="card-body p-4">
                                <div class="row g-3">
                                    <div class="col-lg-3 col-6">
                                        <p class="text-muted mb-2 text-uppercase fw-semibold">Order Id</p>
                                        <h5 class="fs-14 mb-0"><span id="order_id"></span> </h5>
                                    </div>
                                    <div class="col-lg-3 col-6">
                                        <p class="text-muted mb-2 text-uppercase fw-semibold">Invoice No</p>
                                        <h5 class="fs-14 mb-0">#INV<span id="inv_no"></span></h5>
                                    </div>
                                    <div class="col-lg-3 col-6">
                                        <p class="text-muted mb-2 text-uppercase fw-semibold">Date</p>
                                        <h5 class="fs-14 mb-0"><span id="invoice-date"></span> <small class="text-muted" id="invoice-time"></small></h5>
                                    </div>
                                    <div class="col-lg-3 col-6">
                                        <p class="text-muted mb-2 text-uppercase fw-semibold">Total Amount</p>
                                        <h5 class="fs-14 mb-0">৳<span id="total-amount"> </span></h5>
                                    </div>
                                </div>
                                <div class="row g-3 pt-3">
                                    <div class="col-lg-3 col-6">
                                        <p class="text-muted mb-2 text-uppercase fw-semibold">No of items</p>
                                        <h5 class="fs-14 mb-0"><span id="no_of_items"></span></h5>
                                    </div>
                                    <div class="col-lg-3 col-6">
                                        <p class="text-muted mb-2 text-uppercase fw-semibold">Payment Status</p>
                                        <p id="payment-status"></p>
                                    </div>
                                </div>
                                <!--end row-->
                            </div>
                            <!--end card-body-->
                        </div>
                        <div class="col-lg-12">
                            <div class="card-body p-4 border-top border-top-dashed">
                                <div class="row g-3">
                                    <div class="col-6">
                                        <h6 class="text-muted text-uppercase fw-semibold mb-3">Customer Info</h6>
                                        <p class="fw-medium mb-2" id="customer-name"></p>
                                        <p class="text-muted mb-1" id="customer-address"></p>
                                        <p class="text-muted mb-1"><span>Phone: </span><span id="customer-phone"></span></p>
                                        <!-- <p class="text-muted mb-0"><span>Tax: </span><span id="billing-tax-no">12-3456789</span> </p> -->
                                    </div>
                                    <!--end col-->
                                    <div class="col-6">
                                        <h6 class="text-muted text-uppercase fw-semibold mb-3">Shop Info</h6>
                                        <p class="fw-medium mb-2" id="shop-name"></p>
                                        <p class="text-muted mb-1" id="shop-address"></p>
                                        <p class="text-muted mb-1"><span>Phone: +</span><span id="shop-phone"></span></p>
                                    </div>
                                    <!--end col-->
                                </div>
                                <!--end row-->
                            </div>
                            <!--end card-body-->
                        </div>

                        <form class="row p-3 needs-validation" id="picked_up_form" novalidate method="POST"
                                    action="<?php echo e(route('picked_up')); ?>">
                            <?php echo csrf_field(); ?>
                            <input type="hidden" id="delivery_id" name="delivery_id" />
                            <div class="modal-footer">
                                <div class="hstack gap-2 justify-content-end">
                                    <button type="button" class="btn btn-light"
                                        data-bs-dismiss="modal">Close</button>
                                    <button type="button" class="btn btn-success"
                                        id="add-btn" onClick="formSubmit()">Picked Up</button>
                                    <!-- <button type="button" class="btn btn-success"
                                        id="edit-btn">Update</button> -->
                                </div>
                            </div>
                        <!-- </form> -->
                    </div>
                </div>
            </div>  
        </div>
    </div>
    <!--end col-->
</div>
<!--end row-->

<?php $__env->stopSection(); ?>
<?php $__env
->startSection('script'); ?>
<script>
$(document).ready(function() {
    new DataTable('#requestedOrdersList', {
        "columns": [
                {"name": "Order ID", "orderable": false},
                {"name": "Invoice No", "orderable": false},
                {"name": "Date", "orderable": "true"},
                {"name": "Receiver", "orderable": false},
                {"name": "Address", "orderable": false},
                {"name": "Shop", "orderable": false},
                {"name": "Address", "orderable": false},
                {"name": "Status", "orderable": false},
            ],
            "order": [],
            dom: 'Bfrtip',
            buttons: [
                'copy', 'csv', 'excel', 'pdf', 'print'
            ]
    });
    
    var shop = "<?php echo $shop_dt?>";
    $('#idShop').val(shop); 
    $('#idShop').trigger('change.select2');

});
let sale_data;
let invoice_no;
function pickedUp(data,date) {
    
    // console.log(data);
    var customer = JSON.parse(data.customer);
    var vendor = JSON.parse(data.vendor);
    sale_data=data.sale_data;
    // console.log(data);
    invoice_no=data.invoice_no;
    $('#inv_no').text(data.invoice_no); 
    $("#order_id").text(data.order_id);
    $('#invoice-date').text(date.slice(0,-6)); 
    $('#invoice-time').text(date.slice(-5)); 
    $('#no_of_items').text(sale_data.total_items);
    $('#total-amount').text(sale_data.grand_total);

    $('#customer-name').text(customer.receiver_name); 
    $('#customer-address').text(customer.address); 
    $('#customer-phone').text(customer.receiver_phone);

    $('#shop-name').text(vendor.shop_name); 
    $('#shop-address').text(vendor.address); 
    $('#shop-phone').text(vendor.phone);
    $("#payment-status").empty();
    if (sale_data.payment_status==1) {
        $("#payment-status").append('<span class="badge badge-soft-success fs-11" >Paid</span>');
    }else{
        $("#payment-status").append('<span class="badge badge-soft-warning fs-11" >Pending</span>');
    }
    $('#delivery_id').val(data.id); 

    $('#changeStatus_Modal').modal('toggle');

    // Swal.fire({
    //     title: `Are you sure? Order ${invoice_no} is picked up`,
    //     text: "You won't be able to revert this!",
    //     icon: "info",
    //     showCancelButton: true,
    //     confirmButtonColor: "#3085d6",
    //     cancelButtonColor: "#d33",
    //     confirmButtonText: "Yes, picked up!"
    //     }).then((result) => {
    //     if (result.isConfirmed) {
    //         $.ajax({
    //             type:'POST',
    //             url: '<?php echo e(route("picked_up")); ?>',
    //             data:{'_token': '<?php echo e(csrf_token()); ?>',"id":id,"invoice_no":invoice_no},
    //             success:function(data) {
    //                 Swal.fire({
    //                     title: `Order ${invoice_no} has been picked up`,
    //                     text: "",
    //                     icon: "success"
    //                 });
    //                 setTimeout(() => {
    //                     location.reload();
    //                 }, 1500);

    //             },
    //             error:function (data,status,error) {
    //                 Swal.fire({
    //                 title: `Oops...`,
    //                 text: "Something went wrong!. Please try again...",
    //                 icon: "error"
    //                 });
    //             }
    //         })

    //     }
    // });
}
function formSubmit() {
    Swal.fire({
        title: `Are you sure? Order ${invoice_no} is picked up`,
        text: "You won't be able to revert this!",
        icon: "info",
        showCancelButton: true,
        confirmButtonColor: "#3085d6",
        cancelButtonColor: "#d33",
        confirmButtonText: "Yes, Picked Up!"
        }).then((result) => {
        if (result.isConfirmed) {
            $("#picked_up_form").submit();
        }
    });
}
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master'\Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?><?php /**PATH /var/www/html/jiff_delivery/resources/views/pages/delivery/requested.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.0068 ]--