Your IP : 216.73.216.79


Current Path : /var/www/html/bookstack/storage/framework/views/
Upload File :
Current File : /var/www/html/bookstack/storage/framework/views/6c353e9601d0727097cdb6a3120014c7b70d7bcd.php

<section class="card content-wrap auto-height" id="api_tokens">
    <div class="grid half mb-s">
        <div><h2 class="list-heading"><?php echo e(trans('settings.users_api_tokens')); ?></h2></div>
        <div class="text-right pt-xs">
            <?php if(userCan('access-api')): ?>
                <a href="<?php echo e(url('/api/docs')); ?>" class="button outline"><?php echo e(trans('settings.users_api_tokens_docs')); ?></a>
                <a href="<?php echo e($user->getEditUrl('/create-api-token')); ?>" class="button outline"><?php echo e(trans('settings.users_api_tokens_create')); ?></a>
            <?php endif; ?>
        </div>
    </div>
    <?php if(count($user->apiTokens) > 0): ?>
        <table class="table">
            <tr>
                <th><?php echo e(trans('common.name')); ?></th>
                <th><?php echo e(trans('settings.users_api_tokens_expires')); ?></th>
                <th></th>
            </tr>
            <?php $__currentLoopData = $user->apiTokens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $token): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td>
                        <?php echo e($token->name); ?> <br>
                        <span class="small text-muted italic"><?php echo e($token->token_id); ?></span>
                    </td>
                    <td><?php echo e($token->expires_at->format('Y-m-d') ?? ''); ?></td>
                    <td class="text-right">
                        <a class="button outline small" href="<?php echo e($user->getEditUrl('/api-tokens/' . $token->id)); ?>"><?php echo e(trans('common.edit')); ?></a>
                    </td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </table>
    <?php else: ?>
        <p class="text-muted italic py-m"><?php echo e(trans('settings.users_api_tokens_none')); ?></p>
    <?php endif; ?>
</section><?php /**PATH /var/www/html/bookstack/resources/views/users/api-tokens/parts/list.blade.php ENDPATH**/ ?>