Download billing.html from mfsobrin/pharmatech-solutions-rx: direct link, hf CLI and curl.
- Browser
- Download file 9.6 kB
-
https://huggingface.co/spaces/mfsobrin/pharmatech-solutions-rx/resolve/main/billing.html
- Command line
-
hf download hf://spaces/mfsobrin/pharmatech-solutions-rx/billing.html
-
curl -L -o billing.html https://huggingface.co/spaces/mfsobrin/pharmatech-solutions-rx/resolve/main/billing.html
9.6 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Cobranças Pendentes</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| </head> | |
| <body> | |
| <custom-navbar></custom-navbar> | |
| <div class="container mx-auto p-4"> | |
| <h1 class="text-2xl font-bold mb-6">Cobranças Pendentes</h1> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6"> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <h2 class="font-bold text-lg mb-2">Total Pendente</h2> | |
| <p class="text-3xl text-blue-600">R$ 3.500,00</p> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <h2 class="font-bold text-lg mb-2">Vencidos</h2> | |
| <p class="text-3xl text-red-600">R$ 2.000,00</p> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <h2 class="font-bold text-lg mb-2">A Vencer</h2> | |
| <p class="text-3xl text-green-600">R$ 1.500,00</p> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <button id="batch-send" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded"> | |
| <i class="fas fa-paper-plane mr-2"></i>Enviar Cobrança em Lote | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-1 gap-6"> | |
| <!-- Group 1 --> | |
| <div class="bg-gray-50 rounded-lg shadow p-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-xl font-bold">Comunidade Sergio Ferreira da Silva 2</h2> | |
| <button class="group-send bg-green-500 hover:bg-green-600 text-white px-3 py-1 rounded text-sm" data-group="Comunidade Sergio Ferreira da Silva 2"> | |
| <i class="fab fa-whatsapp mr-1"></i>Enviar Grupo | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full bg-white rounded-lg overflow-hidden"> | |
| <thead class="bg-gray-100"> | |
| <tr> | |
| <th class="py-2 px-4 text-left">Nome</th> | |
| <th class="py-2 px-4 text-left">Telefone</th> | |
| <th class="py-2 px-4 text-left">Valor</th> | |
| <th class="py-2 px-4 text-left">Vencimento</th> | |
| <th class="py-2 px-4 text-left">Status</th> | |
| <th class="py-2 px-4 text-left">Ações</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b hover:bg-gray-50"> | |
| <td class="py-3 px-4">MARCIO DOS SANTOS PEREIRA</td> | |
| <td class="py-3 px-4">(65) 99324-4111</td> | |
| <td class="py-3 px-4">R$ 500,00</td> | |
| <td class="py-3 px-4">30/10/2025</td> | |
| <td class="py-3 px-4"> | |
| <span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Pendente</span> | |
| </td> | |
| <td class="py-3 px-4"> | |
| <button class="send-whatsapp bg-green-500 hover:bg-green-600 text-white px-3 py-1 rounded text-sm" data-name="MARCIO DOS SANTOS PEREIRA" data-phone="65993244111" data-value="500" data-due="30/10/2025"> | |
| <i class="fab fa-whatsapp mr-1"></i>Enviar | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="border-b hover:bg-gray-50"> | |
| <td class="py-3 px-4">ATAIDE PEREIRA DE SOUZA</td> | |
| <td class="py-3 px-4">(65) 99347-8422</td> | |
| <td class="py-3 px-4">R$ 500,00</td> | |
| <td class="py-3 px-4">30/10/2025</td> | |
| <td class="py-3 px-4"> | |
| <span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Pendente</span> | |
| </td> | |
| <td class="py-3 px-4"> | |
| <button class="send-whatsapp bg-green-500 hover:bg-green-600 text-white px-3 py-1 rounded text-sm" data-name="ATAIDE PEREIRA DE SOUZA" data-phone="65993478422" data-value="500" data-due="30/10/2025"> | |
| <i class="fab fa-whatsapp mr-1"></i>Enviar | |
| </button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Group 2 --> | |
| <div class="bg-gray-50 rounded-lg shadow p-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-xl font-bold">Outro Grupo</h2> | |
| <button class="group-send bg-green-500 hover:bg-green-600 text-white px-3 py-1 rounded text-sm" data-group="Outro Grupo"> | |
| <i class="fab fa-whatsapp mr-1"></i>Enviar Grupo | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full bg-white rounded-lg overflow-hidden"> | |
| <thead class="bg-gray-100"> | |
| <tr> | |
| <th class="py-2 px-4 text-left">Nome</th> | |
| <th class="py-2 px-4 text-left">Telefone</th> | |
| <th class="py-2 px-4 text-left">Valor</th> | |
| <th class="py-2 px-4 text-left">Vencimento</th> | |
| <th class="py-2 px-4 text-left">Status</th> | |
| <th class="py-2 px-4 text-left">Ações</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b hover:bg-gray-50"> | |
| <td class="py-3 px-4">OUTRO CLIENTE</td> | |
| <td class="py-3 px-4">(65) 99999-9999</td> | |
| <td class="py-3 px-4">R$ 500,00</td> | |
| <td class="py-3 px-4">15/11/2025</td> | |
| <td class="py-3 px-4"> | |
| <span class="bg-red-100 text-red-800 px-2 py-1 rounded">Vencido</span> | |
| </td> | |
| <td class="py-3 px-4"> | |
| <button class="send-whatsapp bg-green-500 hover:bg-green-600 text-white px-3 py-1 rounded text-sm" data-name="OUTRO CLIENTE" data-phone="65999999999" data-value="500" data-due="15/11/2025"> | |
| <i class="fab fa-whatsapp mr-1"></i>Enviar | |
| </button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Individual WhatsApp send | |
| document.querySelectorAll('.send-whatsapp').forEach(btn => { | |
| btn.addEventListener('click', () => { | |
| const name = btn.dataset.name; | |
| const phone = btn.dataset.phone; | |
| const value = btn.dataset.value; | |
| const due = btn.dataset.due; | |
| const message = `Olá ${name}, identificamos um pagamento pendente no valor de R$ ${value} com vencimento em ${due}. Por favor, regularize sua situação.`; | |
| const whatsappUrl = `https://wa.me/55${phone}?text=${encodeURIComponent(message)}`; | |
| window.open(whatsappUrl, '_blank'); | |
| }); | |
| }); | |
| // Group WhatsApp send | |
| document.querySelectorAll('.group-send').forEach(btn => { | |
| btn.addEventListener('click', () => { | |
| const group = btn.dataset.group; | |
| if(confirm(`Deseja enviar cobranças para todo o grupo ${group}?`)) { | |
| // In a real app, this would send to all group members | |
| alert(`Cobranças enviadas para o grupo ${group}`); | |
| } | |
| }); | |
| }); | |
| // Batch send | |
| document.getElementById('batch-send').addEventListener('click', () => { | |
| if(confirm('Deseja enviar cobranças para todos os clientes com pagamentos pendentes?')) { | |
| // In a real app, this would send to all pending clients | |
| alert('Cobranças enviadas em lote para todos os clientes pendentes'); | |
| } | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |