Browse Source

Att adicionadno botão de visualizar conversa na modal de atendimentos abandonados

Matheus
Felipe Fontana 9 months ago
parent
commit
65ad96960a
  1. 17
      resources/views/admin/relatorios/abandonAtendimentos/abandonAtendimentos.blade.php
  2. 2
      resources/views/admin/relatorios/historicoAtendimentos/historicoAtendimento.blade.php

17
resources/views/admin/relatorios/abandonAtendimentos/abandonAtendimentos.blade.php

@ -70,12 +70,13 @@
<th class="p-3 text-sm font-semibold tracking-wide text-left">Protocolo</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Agente</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Interações</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Data Atendimento</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Data Evento</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Inicio Atendimento</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Data Abandono</th>
<th class="p-3 text-sm font-semibold tracking-wide text-left">Ação</th>
</tr>
</thead>
@forelse ($atendimentos as $atendimento)
<tbody>
@forelse ($atendimentos as $atendimento)
<tr class="bg-white dark:bg-gray-800 dark:border-gray-600 border-b-2">
<td class="p-3 text-sm text-gray-700 dark:text-gray-100">{{$atendimento->cliente_id ?? "-"}}</td>
<td class="p-3 text-sm text-gray-700 dark:text-gray-100">{{$atendimento->nome ?? "-"}}</td>
@ -85,6 +86,13 @@
<td class="p-3 text-sm text-gray-700 dark:text-gray-100">{{$atendimento->interacao ?? "-"}}</td>
<td class="p-3 text-sm text-gray-700 dark:text-gray-100">{{\Carbon\Carbon::parse($atendimento->data_reg)->format('Y-m-d H:i:s') ?? "-"}}</td>
<td class="p-3 text-sm text-gray-700 dark:text-gray-100">{{\Carbon\Carbon::parse($atendimento->data_evento)->format('Y-m-d H:i:s') ?? "-"}}</td>
<td class="p-3 text-sm text-gray-700 dark:text-gray-100" title="Visualizar conversa">
<a href="/relatorio/historicoAtendimento/{{$atendimento->uniqueid}}">
<button class="bg-blue-600 text-white p-2 rounded text-lg w-full">
<i class="fas fa-eye"></i>
</button>
</a>
</td>
</tr>
@empty
<div class="flex flex-col gap-3 items-center h-[50vh] justify-center">
@ -93,10 +101,9 @@
</div>
<h1 class="text-gray-100 text-xl">Nenhum registro foi encontrado</h1>
</div>
@endforelse
</tbody>
</table>
</div>
@endforelse
</div>
</div>
</x-app-layout>

2
resources/views/admin/relatorios/historicoAtendimentos/historicoAtendimento.blade.php

@ -1,7 +1,5 @@
<x-app-layout>
<div class="py-8 px-8">
<a href="{{ route('relatorio.historicoAtendimento.index') }}" class="text-blue-500 font-bold text-sm hover:underline mb-5 block">Voltar</a>
<!-- Informações do Contato e do Atendente -->
<div class="border-gray-700 border-b-2 mb-8 pb-4">
<div class="p-6 text-gray-900 dark:text-gray-100">

Loading…
Cancel
Save