/home/kueuepay/public_html/storage/framework/views/a03bd9cf5e403a0a320d0d2f8529dbbb07595fa6.php
<div class="header mini-sidebar">
    <div class="header-top">
        <div class="header-version-area header-btn">
            <button class="header-version-bar" title="<?php echo e(__("Version")); ?>">
                <i class="las la-moon"></i>
            </button>
        </div>
        <div class="header-search-area header-btn">
            <button class="header-search-bar header-link" title="<?php echo e(__("Search")); ?>">
                <i class="las la-search"></i>
            </button>
            <div class="header-search-wrapper">
                <div class="position-relative">
                    <input class="form-control sidebar-search-input" type="search" placeholder="<?php echo e(__("Search")); ?> . . . ." aria-label="Search">
                    <span class="las la-search"></span>
                </div>
                <div class="sidebar-search-result p-3"></div>
            </div>
        </div>
        <div class="header-fullscreen-area header-btn">
            <button class="header-fullscreen-bar header-link" title="<?php echo e(__("Fullscreen")); ?>">
                <i class="fullscreen-open las la-compress" onclick="openFullscreen();"></i>
                <i class="fullscreen-close las la-compress-arrows-alt" onclick="closeFullscreen();"></i>
            </button>
        </div>
        <div class="header-notification-area header-btn">
            <button class="header-notification-bar header-link" title="<?php echo e(__("Notification")); ?>">
                <i class="las la-bell"></i>
                <span class="bling-area d-none">
                    <span class="bling"></span>
                </span>
            </button>
            <div class="notification-wrapper">
                <div class="notification-header">
                    <h6 class="title"><?php echo e(__("Notification")); ?></h6>
                    <span class="sub-title"><a href="javascript:void(0)" class="notifications-clear-all-btn <?php if(count(get_admin_notifications()) == 0): ?> d-none <?php endif; ?>"><?php echo e(__("Clear All")); ?></a></span>
                </div>
                <ul class="notification-list">
                    <?php $__empty_1 = true; $__currentLoopData = get_admin_notifications(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <li>
                            <div class="thumb">
                                <img src="<?php echo e($item->message->image); ?>" alt="user">
                            </div>
                            <div class="content">
                                <h6 class="title"><?php echo e($item->message->title); ?></h6>
                                <span class="sub-title"><?php echo e($item->created_at->diffForHumans()); ?></span>
                            </div>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <div class="d-flex align-items-center not-found" style="height: 150px">
                            <div class=""><?php echo e(__("No new notification found!")); ?></div>
                        </div>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
        <?php if(admin_permission_by_name("admin.support.ticket.index")): ?>
            <div class="header-support-area header-btn">
                <button class="header-support-bar header-link" title="<?php echo e(__("Support")); ?>">
                    <i class="las la-headset"></i>
                    <?php if($pending_ticket_count > 0): ?>
                        <span class="bling-area">
                            <span class="bling"></span>
                        </span>
                    <?php endif; ?>
                </button>
                <div class="header-support-wrapper">
                    <ul class="header-support-list">
                        <?php
                            $span = "";
                            if($pending_ticket_count > 0) {
                                $span = "<span class='badge badge--info'>".$pending_ticket_count."</span>";
                            }
                        ?>
                        <?php echo $__env->make('admin.components.side-nav-mini.support.link',[
                            'links'     => [
                                [
                                    'title'     => __("Pending Ticket").$span,
                                    'route'     => "admin.support.ticket.pending",
                                ],
                                [
                                    'title'     => __("Active Ticket"),
                                    'route'     => "admin.support.ticket.active",
                                ],
                                [
                                    'title'     => __("Solved Ticket"),
                                    'route'     => "admin.support.ticket.solved",
                                ],
                                [
                                    'title'     => __("All Ticket"),
                                    'route'     => "admin.support.ticket.index",
                                ],
                            ],
                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </ul>
                </div>
            </div>
        <?php endif; ?>
    </div>
    <div class="header-bottom">
        <div class="header-settings-area header-btn">
            <button class="header-settings-bar header-link" title="<?php echo e(__("Settings")); ?>">
                <i class="las la-cog"></i>
            </button>
        </div>
        <div class="header-user-area header-btn">
            <button class="header-user-bar header-link" title="<?php echo e(__("Profile")); ?>">
                <img src="<?php echo e(get_image(Auth::user()->image,'admin-profile','profile')); ?>" alt="user">
            </button>
            <div class="header-user-wrapper">
                <ul class="header-user-list">
                    <li><a href="<?php echo e(setRoute('admin.profile.index')); ?>"><?php echo e(__("Admin Profile")); ?></a></li>
                    <li><a href="<?php echo e(setRoute('admin.profile.change.password')); ?>"><?php echo e(__("Change Password")); ?></a></li>
                </ul>
            </div>
        </div>
        <div class="header-power-area header-btn">
            <button class="header-power-bar header-link logout-btn">
                <i class="las la-power-off"></i>
            </button>
        </div>
    </div>
</div>

<?php $__env->startPush('script'); ?>
    <script>

        $(".notifications-clear-all-btn").click(function(){
            var URL = "<?php echo e(setRoute('admin.notifications.clear')); ?>";
            var formData = {
                '_token': laravelCsrf(),
            };
            $.post(URL,formData,function(response) {
            }).done(function(response){
                throwMessage(response.type,response.message.success);

                // Remove Blinking
                document.querySelector(".header-notification-area .bling-area").classList.add("d-none");

                var listOfNotifications = $(".notification-list li");
                $.each(listOfNotifications,function(index,item){
                    $(item).slideUp(300);
                    setTimeout(timeOutFunc,300,$(item));
                    function timeOutFunc(element) {
                        $(element).remove();
                    }
                });

                setTimeout(() => {
                    $(".notification-list").html(`<div class="d-flex align-items-center" style="height: 150px">
                            <div class=""><?php echo e(__("No new notification found!")); ?></div>
                        </div>`);
                    $(".notifications-clear-all-btn").addClass("d-none");
                }, 700);


            }).fail(function(response) {
              throwMessage(response.type,response.message.error);
            });
        });

        $(".header-notification-bar").click(function(){
            document.querySelector(".header-notification-area .bling-area").classList.add("d-none");
        });

    </script>
<?php $__env->stopPush(); ?><?php /**PATH D:\xampp\htdocs\git\nfcpay\resources\views/admin/partials/side-nav-mini.blade.php ENDPATH**/ ?>
Initiate Payment

Initiate Payment

Initiates a new payment transaction.

Endpoint: POST create-order
Parameter Type Details
amount decimal Your Amount , Must be rounded at 2 precision.
currency string Currency Code, Must be in Upper Case (Alpha-3 code)
success_url string Enter your return or success URL
cancel_url string (optional) Enter your cancel or failed URL
                    
                        Request Example (guzzle)
                        

<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', $base_url.'create-order', [
'headers' => [
  'Authorization' => 'Bearer '. $authorizationToken,
  'accept' => 'application/json',
  'content-type' => 'application/json',
 ],
'form_params' => [
  'amount' => '$amount',
  'currency' => 'currency',
  'success_url' => 'success_url',
  'cancel_url' => 'cancel_url',
 ],
]);
echo $response->getBody();
                    
                        
**Response: SUCCESS (200 OK)**
{
 "message": {
 "success": [
  "Order created successfully."
 ]
},
"data": {
 "redirect_url":"https://example.com/login/OISADFDFSDFSF",
 "order_details":{
 "amount" : "10",
 "fixed_charge" : 2,
 "percent_charge" : 1,
 "total_charge" : 3,
 "total_payable" : 13,
 "currency" : "USD",
 "expiry_time": "2024-04-25T06:48:35.984285Z",
 "success_url": "http://127.0.0.1/nfcpay/user/transaction/success",
 "cancel_url": "http://127.0.0.1/nfcpay/user/transaction/cancel"
}
},
"type": "success"
}
                    
                        
**Response: ERROR (400 FAILED)**
{
 "message": {
 "error": [
  "Invalid token."
 ]
},
"data": null,
"type": "error"
}