

<?php $__env->startSection('title', 'داکیومنت وب سرویس'); ?>

<?php $__env->startSection('content'); ?>
<div class="card mb-3">
    <div class="card-body d-flex justify-content-between align-items-center flex-wrap gap-2">
        <div>
            <h5 class="mb-1">Swagger API Documentation</h5>
            <small class="text-muted">نمایش کامل وب‌سرویس‌های پروژه از فایل محلی `docs/swagger.yaml`</small>
        </div>
        <div class="d-flex gap-2">
            <a href="<?php echo e(route('admin.webservice-docs.yaml')); ?>" target="_blank" class="btn btn-outline-primary">
                <i class="fas fa-file-code me-1"></i>
                مشاهده فایل YAML
            </a>
            <a href="#/RMTO" class="btn btn-outline-success" onclick="setTimeout(() => window.location.hash = '#/RMTO', 100);">
                <i class="fas fa-network-wired me-1"></i>
                API های RTMO
            </a>
        </div>
    </div>
</div>

<div class="alert alert-success mb-3">
    <i class="fas fa-info-circle me-1"></i>
    وب‌سرویس‌های RTMO به‌صورت مجزا با تگ <strong>RMTO</strong> در Swagger اضافه شده‌اند.
</div>

<div class="card">
    <div class="card-body p-0">
        <div id="swagger-ui" style="min-height: 75vh;"></div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('styles'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/vendor/swagger-ui/swagger-ui.css')); ?>">
<style>
    .swagger-ui .topbar { display: none; }
    .swagger-ui { direction: ltr; }
</style>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('scripts'); ?>
<script src="<?php echo e(asset('assets/vendor/swagger-ui/swagger-ui-bundle.js')); ?>"></script>
<script src="<?php echo e(asset('assets/vendor/swagger-ui/swagger-ui-standalone-preset.js')); ?>"></script>
<script>
    window.addEventListener('DOMContentLoaded', function () {
        SwaggerUIBundle({
            url: '<?php echo e(route('admin.webservice-docs.yaml')); ?>',
            dom_id: '#swagger-ui',
            deepLinking: true,
            presets: [
                SwaggerUIBundle.presets.apis,
                SwaggerUIStandalonePreset,
            ],
            layout: 'BaseLayout',
            docExpansion: 'list',
            displayRequestDuration: true,
        });
    });
</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH S:\wamp\www\sabok\temp-laravel\resources\views/admin/webservice-docs/index.blade.php ENDPATH**/ ?>