diff --git a/public/js/views/agentes/atualizaAgente.js b/public/js/views/agentes/atualizaAgente.js new file mode 100644 index 0000000..ba6bb6b --- /dev/null +++ b/public/js/views/agentes/atualizaAgente.js @@ -0,0 +1,29 @@ +function atualizaUsuario(id_user) { + $.ajax({ + type: "get", + url: `users/editar/${id_user}`, + success: function ({ + data + }) { + + const modal = document.querySelector('.modal-edit'); + modal.style.display = 'block'; + modal.querySelector('form').action = `/users/editar/${data.id}`; + + modal.querySelector("input[name='nome']").value = data.nome; + modal.querySelector("input[name='email']").value = data.email; + modal.querySelector("input[name='matricula']").value = data.matricula; + + const containerCheckbox = modal.querySelector(".container-checkbox"); + + if (!data.status) { + containerCheckbox.innerHTML = ` Sim + Não` + } + } + }); +} + +function fecharModal() { + document.querySelector('.modal-edit').style.display = 'none'; +} \ No newline at end of file diff --git a/public/js/views/agentesLogados/index.js b/public/js/views/agentesLogados/index.js new file mode 100644 index 0000000..7e2b9d5 --- /dev/null +++ b/public/js/views/agentesLogados/index.js @@ -0,0 +1,94 @@ +const colorStatus = { + LIVRE: "green-500", + OCUPADO: "red-500", + PAUSA: "red-500", + INDISPONIVEL: "orange-400", + CHAMANDO: "orange-400", +} + +function getFilaId() +{ + const url = window.location.href; + const splitUrl = url.split('/'); + const id = splitUrl[splitUrl.length - 1]; + return id; +} + +function getDadosRelatorioDB(fila_id) { + return new Promise(function(resolve, reject){ + $.ajax({ + type: "get", + dataType: 'json', + url: `/dashboard/agentes/${fila_id}/fila`, + success: function(response) { + const data = response.data; + resolve(data); + } + }); + }) +} + +async function montarRelatorios() +{ + const id = getFilaId(); + const data = await getDadosRelatorioDB(id); + let elementsTable = ""; + + data.forEach(supervisor => { + + const tempoFormatado = supervisor.login.split(".")[0]; + + const btnPlay = ` +
+ @csrf + + +
+ ` + const btnPausa = ``; + + const agenteIsPausa = supervisor.status === "PAUSA" ? btnPlay : btnPausa; + + elementsTable += ` + + ${supervisor.id} + ${supervisor.nome} + ${supervisor.matricula} + ${tempoFormatado} + + ${supervisor.motivo_pausa ?? "Sem Pausa"} + + ${supervisor.status} + + ${supervisor.qtde_atendimento} + + + ${agenteIsPausa} + + +
+ @csrf + + +
+ + + ` + }); + + + $(".table-relatorio").html(elementsTable); +} + +function selecionaAgente(supervisor_id){ + console.log(supervisor_id); + const modal = document.querySelector(".modal"); + modal.style.display = "block"; + modal.querySelector("form").action = `/dashboard/agentes/{{$fila->nome}}/pausar`; + modal.querySelector("input[name='supervisor_id']").value = supervisor_id; +} + diff --git a/public/js/views/app/selectTheme.js b/public/js/views/app/selectTheme.js new file mode 100644 index 0000000..497a1f7 --- /dev/null +++ b/public/js/views/app/selectTheme.js @@ -0,0 +1,7 @@ +function selectTheme() { + if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { + document.documentElement.classList.add('dark') + } else { + document.documentElement.classList.remove('dark') + } +} \ No newline at end of file diff --git a/public/js/views/contatos/atualizaContato.js b/public/js/views/contatos/atualizaContato.js new file mode 100644 index 0000000..1b997c0 --- /dev/null +++ b/public/js/views/contatos/atualizaContato.js @@ -0,0 +1,35 @@ +function atualizaContato(id_contato) { + $.ajax({ + type: "get", + url: `contatos/${id_contato}/edit`, + success: function({ + data + }) { + const contato_data = data.contato_data; + + $(".modal-edit").show(); + $(".modal-edit").find('form').attr('action', `contatos/${id_contato}`); + + $(".modal-edit").find("input[name='nome']").val(contato_data.nome); + $(".modal-edit").find("input[name='email']").val(contato_data.email); + $(".modal-edit").find("textarea[name='descricao']").val(contato_data.notes); + + const numeroFormatado = $(".modal-edit").find("input[name='numero']").masked(contato_data.contato); + $(".modal-edit").find("input[name='numero']").val(numeroFormatado); + + if (contato_data.status) { + $(".modal-edit").find(".container-radio"). + html(` Sim Não`) + + } else { + $(".modal-edit").find(".container-radio"). + html(` Sim + Não`) + } + } + }); +} + +function fecharModal() { + document.querySelector('.modal-edit').style.display = 'none'; +} \ No newline at end of file diff --git a/public/js/views/dashboard/index.js b/public/js/views/dashboard/index.js new file mode 100644 index 0000000..fb9e797 --- /dev/null +++ b/public/js/views/dashboard/index.js @@ -0,0 +1,66 @@ +const eventos = { + EMESPERA: 'Em espera', + TRANSFER: 'Transferidos', + COMPLETE_CALLER: 'Finalizadas pelo cliente', + LOST_CONNECTION: 'Desconectadas', + COMPLETE_AGENT: 'Finalizas pelo Agente', + START: 'Iniciadas', +} + +function getDadosRelatorioDB() { + return new Promise(function(resolve, reject){ + $.ajax({ + type: "get", + dataType: 'json', + url: `dashboard/getRelatorioDados`, + success: function(response) { + const data = response.data; + resolve(data); + } + }); + }) +} + +async function montarRelatorios() +{ + const data = await getDadosRelatorioDB(); + + $(".text-ativos").text(data.totalAgentesAtivos); + $(".text-pausa").text(data.totalAgentesPausa); + $(".text-atendimentoDia").text(data.atendimentosDia); + $(".text-atendimentosMes").text(data.atendimentosPorMes); + + let elementsTable = ""; + + data.relatoriosAtendimento.forEach(relatorio => { + elementsTable += ` + + + + + + + + ${relatorio.fila} + ${relatorio.quantidade_supervisores} + ${relatorio.quantidade_atendimentos} + 0 + +
+ +
+ + + ` + }); + + + $(".table-relatorio").html(elementsTable); +} + +function selecionaFila(fila_id){ + const modal = document.querySelector(".modal"); + modal.style.display = "block"; + modal.querySelector("form").action = `/dashboard/agentes/${fila_id}/pausarAgentesFila`; +} + diff --git a/public/js/views/empresa/atualizaEmpresa.js b/public/js/views/empresa/atualizaEmpresa.js new file mode 100644 index 0000000..d56b736 --- /dev/null +++ b/public/js/views/empresa/atualizaEmpresa.js @@ -0,0 +1,19 @@ +function atualizaEmpresa(empresa_id) { + $.ajax({ + type: "get", + url: `empresas/${empresa_id}/edit`, + success: function({data}) { + const empresa_data = data.empresa_data; + console.log(empresa_data); + $(".modal-edit").show(); + + $(".modal-edit").find('form').attr('action', `empresas/${empresa_id}`); + + $(".modal-edit").find("input[name='nome']").val(empresa_data.nome); + $(".modal-edit").find("input[name='token']").val(empresa_data.token); + $(".modal-edit").find("input[name='email']").val(empresa_data.email); + const cnpjFormatado = $(".modal-edit").find("input[name='cnpj']").masked(empresa_data.cnpj); + $(".modal-edit").find("input[name='cnpj']").val(cnpjFormatado); + } + }); +} \ No newline at end of file diff --git a/public/js/views/fila/atualizaFila.js b/public/js/views/fila/atualizaFila.js new file mode 100644 index 0000000..1be241e --- /dev/null +++ b/public/js/views/fila/atualizaFila.js @@ -0,0 +1,31 @@ +function atualizarFila(id_fila) { + $.ajax({ + type: "get", + url: `filas/editar/${id_fila}`, + success: function({ + data + }) { + console.log(data) + const modal = document.querySelector('.modal-edit'); + + modal.style.display = 'block'; + + modal.querySelector('form').action = `/filas/editar/${data.id}`; + + modal.querySelector("input[name='nome']").value = data.nome; + + const containerCheckbox = modal.querySelector(".container-checkbox"); + + if (!data.is_ativa) { + containerCheckbox.innerHTML = ` Sim + Não` + } + + } + + }); +} + +function fecharModal() { + document.querySelector('.modal-edit').style.display = 'none'; +} \ No newline at end of file diff --git a/public/js/views/graficos/index.js b/public/js/views/graficos/index.js new file mode 100644 index 0000000..d560b87 --- /dev/null +++ b/public/js/views/graficos/index.js @@ -0,0 +1,181 @@ +const eventos = { + EMESPERA: 'Em espera', + TRANSFER: 'Transferidos', + COMPLETE_CALLER: 'Finalizadas pelo cliente', + LOST_CONNECTION: 'Desconectadas', + COMPLETE_AGENT: 'Finalizas pelo Agente', + START: 'Iniciadas', +} + +function getDadosRelatorioDB() { + return new Promise(function(resolve, reject) { + $.ajax({ + type: "get", + dataType: 'json', + url: `graficos/getDados`, + success: function(response) { + const data = response.data; + resolve(data); + } + }); + }) +} + +function montaGrafico1(dataDB) { + + let labels = dataDB.map((value) => value.nome) + let data = dataDB.map((value) => value.qtde_atendimento) + const ctx = document.getElementById('myChart'); + + new Chart(ctx, { + type: 'bar', + data: { + labels: labels, + datasets: [{ + data: data, + label: "Atendimento Por Agente", + font: 90, + borderWidth: 1, + backgroundColor: [ + 'rgba(255, 99, 132, 0.7)', + 'rgba(255, 159, 64, 0.7)', + 'rgba(255, 205, 86, 0.7)', + 'rgba(75, 192, 192, 0.7)', + 'rgba(54, 162, 235, 0.7)', + 'rgba(153, 102, 255, 0.7)', + 'rgba(201, 203, 207, 0.7)' + ], + borderColor: [ + 'rgb(255, 99, 132)', + 'rgb(255, 159, 64)', + 'rgb(255, 205, 86)', + 'rgb(75, 192, 192)', + 'rgb(54, 162, 235)', + 'rgb(153, 102, 255)', + 'rgb(201, 203, 207)' + ], + }], + }, + options: { + color: '#fff', + plugins: { + legend: { + labels: { + font: { + size: 15 + } + } + } + }, + scales: { + y: { + beginAtZero: true, + }, + x: { + ticks: { + color: '#91a0a7', + font: { + size: 13 + }, + } + } + }, + }, + }); +} + +function montaGrafico2(dataDB) { + + const ctx2 = document.getElementById('myChart2'); + const somaPorEvento = {}; + + dataDB.forEach(element => { + if (somaPorEvento[element.evento]) { + somaPorEvento[element.evento] += element.qtde_usados; + } else { + somaPorEvento[element.evento] = element.qtde_usados; + } + }) + + let labels = Object.keys(somaPorEvento).map(label => eventos[label]); + let data = Object.values(somaPorEvento); + + new Chart(ctx2, { + type: 'doughnut', + data: { + labels: labels, + datasets: [{ + data: data, + borderWidth: 1, + backgroundColor: [ + 'rgba(255, 99, 132, 0.8)', + 'rgba(255, 159, 64, 0.8)', + 'rgba(75, 192, 192, 0.8)', + 'rgba(54, 162, 235, 0.8)', + 'rgba(153, 102, 255, 0.8)', + 'rgba(201, 203, 207, 0.8)' + ], + borderColor: [ + 'rgb(255, 99, 132)', + 'rgb(255, 159, 64)', + 'rgb(75, 192, 192)', + 'rgb(54, 162, 235)', + 'rgb(153, 102, 255)', + 'rgb(201, 203, 207)' + ], + }] + }, + + options: { + color: '#91a0a7', + + scales: { + y: { + beginAtZero: true + } + } + } + }); +} + +function montaGrafico3(dataDB) { + + const ctx3 = document.getElementById('myChart3'); + let labels3 = dataDB.map((value) => value.nome) + let data3 = dataDB.map((value) => value.qtde_fila) + + + new Chart(ctx3, { + type: 'pie', + data: { + labels: labels3, + datasets: [{ + label: 'Quantidade de atendimento', + data: data3, + borderWidth: 1, + backgroundColor: [ + 'rgb(255, 99, 132)', + 'rgb(54, 162, 235)', + 'rgb(255, 205, 86)' + ], + fontColor: '#fff', + }] + }, + options: { + color: '#91a0a7', + scales: { + y: { + beginAtZero: true + } + } + } + }); +} + +async function graficos() { + const data = await getDadosRelatorioDB(); + + montaGrafico1(data.atendimentosData); + montaGrafico2(data.atendimentosStatusData); + montaGrafico3(data.filasMaisUsadas); +} \ No newline at end of file diff --git a/public/js/views/pausa/atualizaPausa.js b/public/js/views/pausa/atualizaPausa.js new file mode 100644 index 0000000..aeda07b --- /dev/null +++ b/public/js/views/pausa/atualizaPausa.js @@ -0,0 +1,32 @@ +function atualizarPausa(id_user) { + $.ajax({ + type: "get", + url: `pausas/editar/${id_user}`, + success: function({ + data + }) { + + + const modal = document.querySelector('.modal-edit'); + + modal.style.display = 'block'; + + modal.querySelector('form').action = `/pausas/editar/${data.id}`; + + modal.querySelector("input[name='motivo']").value = data.motivo; + + + const containerCheckbox = modal.querySelector(".container-checkbox"); + + if (!data.is_ativo) { + containerCheckbox.innerHTML = ` Sim + Não` + } + + } + }); +} + +function fecharModal() { + document.querySelector('.modal-edit').style.display = 'none'; +} \ No newline at end of file diff --git a/public/js/views/redirect/atualizaRedirect.js b/public/js/views/redirect/atualizaRedirect.js new file mode 100644 index 0000000..8613183 --- /dev/null +++ b/public/js/views/redirect/atualizaRedirect.js @@ -0,0 +1,59 @@ +function atualizaRedirect(id_redirect) { + $.ajax({ + type: "get", + url: `redirects/${id_redirect}/edit`, + success: function({ + data + }) { + const redirect_data = data.redirect_data; + const numbers_channels = data.numbers; + const modal = document.querySelector('.modal-edit'); + modal.style.display = 'block'; + modal.querySelector('form').action = `redirects/${id_redirect}`; + + modal.querySelector("input[name='nome']").value = redirect_data.name; + modal.querySelector("textarea[name='descricao']").value = redirect_data.description; + + const containerRadioStatus = document.querySelector(".container-radio-status"); + const containerRadioInitial = document.querySelector(".container-radio-initial"); + + if (redirect_data.status) { + containerRadioStatus.innerHTML = + ` Sim + Não` + } else { + containerRadioStatus.innerHTML = + ` Sim + Não` + } + + if (redirect_data.initial) { + containerRadioInitial.innerHTML = + ` Sim + Não` + } else { + containerRadioInitial.innerHTML = + ` Sim + Não` + } + + const containerChannels = modal.querySelector("select[name='channel']"); + numbers_channels.forEach(channel => { + if (redirect_data.id_number === channel.id) { + containerChannels.innerHTML = + ` ` + + } else { + containerChannels.innerHTML = + ` ` + + } + }) + + } + }); +} + +function fecharModal() { + document.querySelector('.modal-edit').style.display = 'none'; +} \ No newline at end of file diff --git a/public/js/views/redirectOption/atualizaRedirectOption.js b/public/js/views/redirectOption/atualizaRedirectOption.js new file mode 100644 index 0000000..9790a25 --- /dev/null +++ b/public/js/views/redirectOption/atualizaRedirectOption.js @@ -0,0 +1,56 @@ +function atualizaRedirectOption(option_id) { + $.ajax({ + type: "get", + url: `options/${option_id}/edit`, + success: async function({ + data + }) { + + const option_data = data.option_data; + const types = data.types + const modal = document.querySelector('.modal-edit'); + + modal.style.display = 'block'; + modal.setAttribute('data-sequenceDB', option_data.sequence); + modal.querySelector("input[name='sequencia']").value = option_data.sequence; + modal.querySelector("textarea[name='descricao']").value = option_data.description; + + modal.querySelector('form').action = `options/${option_id}`; + + if (option_data.hide) { + modal.querySelector(".container-radio").innerHTML = + ` Sim + Não`; + } else { + modal.querySelector(".container-radio").innerHTML = + ` Sim + Não`; + } + + let containerTypes = ''; + + types.forEach(type => { + if (option_data.id_type === type.id) { + containerTypes += + ` ` + } else { + containerTypes += + ` ` + } + }) + + modal.querySelector(".select-types").innerHTML = containerTypes; + montaSelectDestino(option_data.id_type, modal, option_data.code_id); + } + }); +} + +document.querySelectorAll('.select-types').forEach(el => { + el.addEventListener('change', (e) => { + const select = e.target; + const modal = select.closest('.modal') ?? select.closest('.modal-edit'); + const id_redirect = select.value; + + montaSelectDestino(id_redirect, modal); + }) +}) \ No newline at end of file diff --git a/public/js/views/redirectOption/montaSelect.js b/public/js/views/redirectOption/montaSelect.js new file mode 100644 index 0000000..9ca29bb --- /dev/null +++ b/public/js/views/redirectOption/montaSelect.js @@ -0,0 +1,39 @@ +async function montaSelectDestino(id_type, modal, code_id = null) { + const data = await requestType(id_type); + const selectDestino = modal.querySelector(".select-destino"); + const inputDestino = modal.querySelector(".input-destino"); + + if (!data) { + selectDestino.style.display = 'none'; + selectDestino.disabled = true; + inputDestino.disabled = false; + inputDestino.style.display = 'block'; + + return; + } + + selectDestino.style.display = 'block'; + selectDestino.disabled = false; + inputDestino.disabled = true; + inputDestino.style.display = 'none'; + + let selectElements = ""; + if (code_id) { + data.forEach(element => { + let matriculaOrId = element.matricula ?? element.id; + if (matriculaOrId.toString() === code_id.toString()) { + selectElements += + ` ` + } else { + selectElements += + ` ` + } + }) + } else { + data.forEach(element => { + selectElements += `` + }); + } + + selectDestino.innerHTML = selectElements; +} \ No newline at end of file diff --git a/public/js/views/redirectOption/requestType.js b/public/js/views/redirectOption/requestType.js new file mode 100644 index 0000000..0e16c58 --- /dev/null +++ b/public/js/views/redirectOption/requestType.js @@ -0,0 +1,13 @@ +function requestType(id_type) { + return new Promise(function(resolve, reject) { + $.ajax({ + type: "get", + dataType: 'json', + url: `options/${id_type}`, + success: function(response) { + const data = response.data.data; + resolve(data); + } + }); + }); +} \ No newline at end of file diff --git a/public/js/cadastroSystemMessage.js b/public/js/views/systemMessages/cadastroSystemMessage.js similarity index 100% rename from public/js/cadastroSystemMessage.js rename to public/js/views/systemMessages/cadastroSystemMessage.js diff --git a/resources/views/admin/agentesLogados.blade.php b/resources/views/admin/agentesLogados.blade.php index ab82d70..81fb124 100644 --- a/resources/views/admin/agentesLogados.blade.php +++ b/resources/views/admin/agentesLogados.blade.php @@ -47,111 +47,16 @@ - @push('agentesLogados') + - @endpush - + \ No newline at end of file diff --git a/resources/views/admin/configs.blade.php b/resources/views/admin/configs.blade.php index 5d033a8..2647778 100644 --- a/resources/views/admin/configs.blade.php +++ b/resources/views/admin/configs.blade.php @@ -31,8 +31,4 @@ - - - - \ No newline at end of file diff --git a/resources/views/admin/contatos.blade.php b/resources/views/admin/contatos.blade.php index 6508890..0ab8704 100644 --- a/resources/views/admin/contatos.blade.php +++ b/resources/views/admin/contatos.blade.php @@ -69,44 +69,9 @@ - - + + - - $(".modal-edit").show(); - $(".modal-edit").find('form').attr('action', `contatos/${id_contato}`); - - $(".modal-edit").find("input[name='nome']").val(contato_data.nome); - $(".modal-edit").find("input[name='email']").val(contato_data.email); - $(".modal-edit").find("textarea[name='descricao']").val(contato_data.notes); - - const numeroFormatado = $(".modal-edit").find("input[name='numero']").masked(contato_data.contato); - $(".modal-edit").find("input[name='numero']").val(numeroFormatado); - - if (contato_data.status) { - $(".modal-edit").find(".container-radio"). - html(` Sim Não`) - - } else { - $(".modal-edit").find(".container-radio"). - html(` Sim - Não`) - } - } - }); - } - - function fecharModal() { - document.querySelector('.modal-edit').style.display = 'none'; - } - \ No newline at end of file diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index cfeca04..d318b76 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -61,78 +61,14 @@ - + diff --git a/resources/views/admin/empresas.blade.php b/resources/views/admin/empresas.blade.php index ad2ab83..aa125a7 100644 --- a/resources/views/admin/empresas.blade.php +++ b/resources/views/admin/empresas.blade.php @@ -15,7 +15,6 @@ -
- - - + - - + + \ No newline at end of file diff --git a/resources/views/admin/filas.blade.php b/resources/views/admin/filas.blade.php index ceb3ab7..1b3490c 100644 --- a/resources/views/admin/filas.blade.php +++ b/resources/views/admin/filas.blade.php @@ -7,7 +7,6 @@ @endif -

@@ -82,43 +81,8 @@

- - - @push('updateFila') - - - @endpush + + + \ No newline at end of file diff --git a/resources/views/admin/graficos.blade.php b/resources/views/admin/graficos.blade.php index 4f4d2d0..f3a67f2 100644 --- a/resources/views/admin/graficos.blade.php +++ b/resources/views/admin/graficos.blade.php @@ -31,193 +31,9 @@ - + - @push('graficos') - @endpush \ No newline at end of file diff --git a/resources/views/admin/pausas.blade.php b/resources/views/admin/pausas.blade.php index 8647f2d..0d60d6e 100644 --- a/resources/views/admin/pausas.blade.php +++ b/resources/views/admin/pausas.blade.php @@ -6,7 +6,6 @@ @endif -

@@ -17,7 +16,6 @@ @endcan

-
+ - - - - - @push('updatePausa') - - - @endpush - - + + \ No newline at end of file diff --git a/resources/views/admin/redirectOption.blade.php b/resources/views/admin/redirectOption.blade.php index 3de8567..bf5568a 100644 --- a/resources/views/admin/redirectOption.blade.php +++ b/resources/views/admin/redirectOption.blade.php @@ -89,124 +89,17 @@ - - + + - + + + diff --git a/resources/views/admin/redirects.blade.php b/resources/views/admin/redirects.blade.php index 03d4857..5cfaa9e 100644 --- a/resources/views/admin/redirects.blade.php +++ b/resources/views/admin/redirects.blade.php @@ -81,73 +81,9 @@ - - + + - @push('updateStep') - - - modal.querySelector("input[name='nome']").value = redirect_data.name; - modal.querySelector("textarea[name='descricao']").value = redirect_data.description; - - const containerRadioStatus = document.querySelector(".container-radio-status"); - const containerRadioInitial = document.querySelector(".container-radio-initial"); - - if (redirect_data.status) { - containerRadioStatus.innerHTML = - ` Sim - Não` - } else { - containerRadioStatus.innerHTML = - ` Sim - Não` - } - - if (redirect_data.initial) { - containerRadioInitial.innerHTML = - ` Sim - Não` - } else { - containerRadioInitial.innerHTML = - ` Sim - Não` - } - - const containerChannels = modal.querySelector("select[name='channel']"); - numbers_channels.forEach(channel => { - if (redirect_data.id_number === channel.id) { - containerChannels.innerHTML = - ` ` - - } else { - containerChannels.innerHTML = - ` ` - - } - }) - - } - }); - } - - - function fecharModal() { - document.querySelector('.modal-edit').style.display = 'none'; - } - - @endpush diff --git a/resources/views/admin/supervisor.blade.php b/resources/views/admin/supervisor.blade.php deleted file mode 100644 index 1c89ae9..0000000 --- a/resources/views/admin/supervisor.blade.php +++ /dev/null @@ -1,69 +0,0 @@ - -
- - - @if(session('status')) -
- {{session('status')}} -
- @endif - -
-

- Supervisores -

- -
- -
- - - - - - - - - - - - - - - - @foreach($supervisores as $supervisor) - - - - - - - - - - - @endforeach - - -
IDNomeMatriculaFilaMotivo PausaTempo de LoginStatusAções
{{$supervisor->id}}{{$supervisor->nome}}{{$supervisor->matricula}}{{$supervisor->fila}} - @if($supervisor->motivo_pausa) - {{$supervisor->motivo_pausa}} - @else - Sem Pausa - @endif - {{$supervisor->tempo_login}}{{$supervisor->status}} - - - @csrf - @method('delete') - - -
-
-
- - - -
\ No newline at end of file diff --git a/resources/views/admin/systemMessage.blade.php b/resources/views/admin/systemMessage.blade.php index cfb2303..cb7d226 100644 --- a/resources/views/admin/systemMessage.blade.php +++ b/resources/views/admin/systemMessage.blade.php @@ -53,9 +53,9 @@ - - + + - + \ No newline at end of file diff --git a/resources/views/admin/templates.blade.php b/resources/views/admin/templates.blade.php index c3e7fa8..5ac4163 100644 --- a/resources/views/admin/templates.blade.php +++ b/resources/views/admin/templates.blade.php @@ -30,7 +30,7 @@ - + diff --git a/resources/views/admin/users.blade.php b/resources/views/admin/users.blade.php index 291a3d4..0cde6ab 100644 --- a/resources/views/admin/users.blade.php +++ b/resources/views/admin/users.blade.php @@ -77,45 +77,11 @@ - - - - - @push('updateAgente') - - - @endpush + \ No newline at end of file diff --git a/resources/views/components/modalEditContatos.blade.php b/resources/views/components/modal/edit/modalEditContatos.blade.php similarity index 99% rename from resources/views/components/modalEditContatos.blade.php rename to resources/views/components/modal/edit/modalEditContatos.blade.php index c86330f..99ef912 100644 --- a/resources/views/components/modalEditContatos.blade.php +++ b/resources/views/components/modal/edit/modalEditContatos.blade.php @@ -50,7 +50,6 @@ - -@endpush \ No newline at end of file + \ No newline at end of file diff --git a/resources/views/components/modalEditFila.blade.php b/resources/views/components/modal/edit/modalEditFila.blade.php similarity index 100% rename from resources/views/components/modalEditFila.blade.php rename to resources/views/components/modal/edit/modalEditFila.blade.php diff --git a/resources/views/components/modalEditPausa.blade.php b/resources/views/components/modal/edit/modalEditPausa.blade.php similarity index 100% rename from resources/views/components/modalEditPausa.blade.php rename to resources/views/components/modal/edit/modalEditPausa.blade.php diff --git a/resources/views/components/modalEditRedirect.blade.php b/resources/views/components/modal/edit/modalEditRedirect.blade.php similarity index 100% rename from resources/views/components/modalEditRedirect.blade.php rename to resources/views/components/modal/edit/modalEditRedirect.blade.php diff --git a/resources/views/components/modalEditRedirectOption.blade.php b/resources/views/components/modal/edit/modalEditRedirectOption.blade.php similarity index 96% rename from resources/views/components/modalEditRedirectOption.blade.php rename to resources/views/components/modal/edit/modalEditRedirectOption.blade.php index 24d1d86..b42fd18 100644 --- a/resources/views/components/modalEditRedirectOption.blade.php +++ b/resources/views/components/modal/edit/modalEditRedirectOption.blade.php @@ -71,11 +71,6 @@ - - -@push('updateResponseStep') - -@endpush + \ No newline at end of file diff --git a/resources/views/components/modalEditSystemMessage.blade.php b/resources/views/components/modal/edit/modalEditSystemMessage.blade.php similarity index 98% rename from resources/views/components/modalEditSystemMessage.blade.php rename to resources/views/components/modal/edit/modalEditSystemMessage.blade.php index 6b44bdf..730e6e9 100644 --- a/resources/views/components/modalEditSystemMessage.blade.php +++ b/resources/views/components/modal/edit/modalEditSystemMessage.blade.php @@ -35,7 +35,6 @@ -