HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/be.naniguide.com/storage/framework/views/5ae05e9b2bf99aac60a2cac349934fc7.php
<?php $__env->startSection('title', trans('messages.api_token')); ?>

<?php $__env->startSection('page_script'); ?>
    <script type="text/javascript" src="<?php echo e(AppUrl::asset('assets/js/plugins/forms/styling/uniform.min.js'), false); ?>"></script>
    <script type="text/javascript" src="<?php echo e(AppUrl::asset('js/validate.js'), false); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_header'); ?>

    <div class="page-title">
        <ul class="breadcrumb breadcrumb-caret position-right">
            <li class="breadcrumb-item"><a href="<?php echo e(action("Admin\HomeController@index"), false); ?>"><?php echo e(trans('messages.home'), false); ?></a></li>
            <li class="breadcrumb-item active"><?php echo e(trans('messages.api_token'), false); ?></li>
        </ul>
        <h1>
            <span class="text-semibold"><span class="material-symbols-rounded">person_outline</span> <?php echo e(Auth::user()->admin->displayName(), false); ?></span>
        </h1>
    </div>

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

<?php $__env->startSection('content'); ?>

    <?php echo $__env->make("admin.account._menu", [
        'menu' => 'api',
    ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <h4 class="text-semibold"><?php echo e(trans('messages.api_docs'), false); ?></h4>

    <p style="margin-bottom: 30px"><code style="font-size: 18px;">
        <a target="_blank" href="<?php echo e(action("Admin\ApiController@doc"), false); ?>"><?php echo e(action("Admin\ApiController@doc"), false); ?> <span class="material-symbols-rounded">link</span></a></code></p>

    <h4 class="text-semibold"><?php echo e(trans('messages.api_endpoint'), false); ?></h4>

    <p style="margin-bottom: 30px" class="d-flex align-items-center">
		<code style="font-size: 18px" class="api-enpoint"><?php echo e(url('api/v1'), false); ?></code>
		<button class="btn btn-secondary api-copy-button ml-4"><i class="material-symbols-rounded me-2">content_copy</i><?php echo e(trans('messages.copy'), false); ?></button>
	</p>

    <h4 class="text-semibold mt-20"><?php echo e(trans('messages.your_api_token'), false); ?></h4>

    <p style="margin-bottom: 30px" class="d-flex align-items-center"><code class="api-token" style="font-size: 18px">
		<?php echo e(Auth::user()->api_token, false); ?></code>
		
		<button class="btn btn-secondary api-token-copy-button ml-4"><i class="material-symbols-rounded me-2">content_copy</i><?php echo e(trans('messages.copy'), false); ?></button>
	</p>
    <p class="alert alert-info"><?php echo trans('messages.api_token_guide', ["link" => action("Api\MailListController@index", ["api_token" => "YOUR_API_TOKEN"])]); ?></p>

    <a class="btn btn-info bg-teal-600" href="<?php echo e(action("Admin\AccountController@renewToken"), false); ?>"><?php echo e(trans('messages.renew_token'), false); ?></a>
    
    <script>
		$('.api-copy-button').on('click', function() {
			var code = $('.api-enpoint').html().trim();

			copyToClipboard(code);

			notify('success', '<?php echo e(trans('messages.notify.success'), false); ?>', '<?php echo e(trans('messages.api_endpoint.copied'), false); ?>');
		});
		$('.api-token-copy-button').on('click', function() {
			var code = $('.api-token').html().trim();

			copyToClipboard(code);

			notify('success', '<?php echo e(trans('messages.notify.success'), false); ?>', '<?php echo e(trans('messages.api_token.copied'), false); ?>');
		});
	</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.core.backend', [
    'menu' => 'api',
], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/xedaptot/be.naniguide.com/resources/views/admin/account/api.blade.php ENDPATH**/ ?>