Fix: Force add super-admin views to git
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m52s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m52s
The resources/views directory is ignored by .gitignore, so the custom super-admin views were not being tracked or deployed, causing 'View [super-admin.session.login] not found' errors in production. This commit forces them to be tracked.
This commit is contained in:
42
resources/views/super-admin/tenants/create.blade.php
Normal file
42
resources/views/super-admin/tenants/create.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
@extends('super-admin.layouts.master')
|
||||
|
||||
@section('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 dark:text-white sm:text-3xl sm:truncate">
|
||||
Criar Empresa
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 md:mt-0 md:col-span-2">
|
||||
<form action="{{ route('super-admin.tenants.store') }}" method="POST">
|
||||
@csrf
|
||||
<div class="shadow overflow-hidden sm:rounded-md">
|
||||
<div class="px-4 py-5 bg-white dark:bg-gray-900 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 dark:text-gray-300">ID da Empresa</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 dark:border-gray-700 dark:bg-gray-800 dark:text-white rounded-md p-2 border" placeholder="ex: empresa1">
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">Identificador único para a empresa. Não poderá ser alterado posteriormente.</p>
|
||||
</div>
|
||||
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<label for="domain" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Domínio</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 dark:border-gray-700 dark:bg-gray-800 dark:text-white rounded-md p-2 border" placeholder="ex: empresa1.growuppro.com.br">
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">Domínio completo da empresa.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center justify-end gap-x-2 px-4 py-3 bg-gray-50 dark:bg-gray-800 sm:px-6">
|
||||
<a href="{{ route('super-admin.tenants.index') }}" class="inline-flex justify-center py-2 px-4 border border-gray-300 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">
|
||||
Cancelar
|
||||
</a>
|
||||
<button type="submit" class="primary-button">
|
||||
Criar
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
73
resources/views/super-admin/tenants/index.blade.php
Normal file
73
resources/views/super-admin/tenants/index.blade.php
Normal file
@@ -0,0 +1,73 @@
|
||||
@extends('super-admin.layouts.master')
|
||||
|
||||
@section('content')
|
||||
<div class="flex items-center justify-between gap-4 max-sm:flex-wrap mb-3">
|
||||
<p class="text-xl font-bold text-gray-800 dark:text-white">
|
||||
Empresas
|
||||
</p>
|
||||
|
||||
<div class="flex items-center gap-x-2.5">
|
||||
<a href="{{ route('super-admin.tenants.create') }}" class="primary-button">
|
||||
Criar Empresa
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-7">
|
||||
<div class="box-shadow relative overflow-x-auto rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900">
|
||||
<table class="w-full text-left text-sm text-gray-500 dark:text-gray-400">
|
||||
<thead class="bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-800 dark:text-gray-300">
|
||||
<tr>
|
||||
<th scope="col" class="px-6 py-3">ID</th>
|
||||
<th scope="col" class="px-6 py-3">Domínios</th>
|
||||
<th scope="col" class="px-6 py-3">Criado em</th>
|
||||
<th scope="col" class="px-6 py-3">Última Atualização</th>
|
||||
<th scope="col" class="px-6 py-3">Atualizado por</th>
|
||||
<th scope="col" class="px-6 py-3 text-right"></th>
|
||||
<th scope="col" class="px-6 py-3 text-right"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($tenants as $tenant)
|
||||
<tr class="border-b bg-white hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-900 dark:hover:bg-gray-800">
|
||||
<td class="px-6 py-4 font-medium text-gray-900 dark:text-white">
|
||||
<div class="flex items-center gap-2">
|
||||
@if($tenant->domains->isNotEmpty())
|
||||
<a href="http://{{ $tenant->domains->first()->domain }}" target="_blank" class="text-blue-600 hover:text-blue-800 dark:text-blue-500 dark:hover:text-blue-400">
|
||||
<span class="icon-forward"></span>
|
||||
</a>
|
||||
@endif
|
||||
{{ $tenant->id }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
@foreach($tenant->domains as $domain)
|
||||
<div>{{ $domain->domain }}</div>
|
||||
@endforeach
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
{{ $tenant->created_at->format('d/m/Y H:i') }}
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
{{ $tenant->updated_at->format('d/m/Y H:i') }}
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
{{ $tenant->last_updated_by ?? '-' }}
|
||||
</td>
|
||||
<td class="px-6 py-4 text-right">
|
||||
<a href="{{ route('super-admin.tenants.edit', $tenant->id) }}" class="font-medium text-blue-600 hover:underline dark:text-blue-500">Editar</a>
|
||||
</td>
|
||||
<td class="px-6 py-4 text-right">
|
||||
<form action="{{ route('super-admin.tenants.destroy', $tenant->id) }}" method="POST" onsubmit="return confirm('Tem certeza?');" class="inline-block">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit" class="font-medium text-red-600 hover:underline dark:text-red-500">Excluir</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user