add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php $__env->startSection('content'); ?>
<div class="md:flex md:items-center md:justify-between mb-6">
<div class="flex-1 min-w-0">
<h2 class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate">
Create Tenant
</h2>
</div>
</div>
<div class="mt-5 md:mt-0 md:col-span-2">
<form action="<?php echo e(route('super-admin.tenants.store')); ?>" method="POST">
<?php echo csrf_field(); ?>
<div class="shadow overflow-hidden sm:rounded-md">
<div class="px-4 py-5 bg-white sm:p-6">
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6 sm:col-span-4">
<label for="id" class="block text-sm font-medium text-gray-700">Tenant ID</label>
<input type="text" name="id" id="id" autocomplete="off" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md p-2 border" placeholder="e.g. tenant1">
<p class="mt-2 text-sm text-gray-500">Unique identifier for the tenant.</p>
</div>
<div class="col-span-6 sm:col-span-4">
<label for="domain" class="block text-sm font-medium text-gray-700">Domain</label>
<input type="text" name="domain" id="domain" autocomplete="off" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md p-2 border" placeholder="e.g. tenant1.localhost">
<p class="mt-2 text-sm text-gray-500">Full domain for the tenant.</p>
</div>
</div>
</div>
<div class="px-4 py-3 bg-gray-50 text-right sm:px-6">
<a href="<?php echo e(route('super-admin.tenants.index')); ?>" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 mr-2">
Cancel
</a>
<button type="submit" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Create
</button>
</div>
</div>
</form>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('super-admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/super-admin/tenants/create.blade.php ENDPATH**/ ?>