File Manager Lite
Dir:
/home/codewavebd/public_html/resources/views/admin/leads
Upload
[..]
index.blade.php (6.49 KB)
Edit
Rename
Del
show_contact.blade.php (5.92 KB)
Edit
Rename
Del
show_software.blade.php (6.41 KB)
Edit
Rename
Del
Edit: index.blade.php
@extends('layouts.admin') @section('title', 'Leads Management') @section('page_title', 'Sales Leads & Inquiries') @section('content') <div class="admin-card mb-5"> <!-- Tab Navigation --> <ul class="nav nav-tabs border-secondary mb-4" id="leadsTabs" role="tablist"> <li class="nav-item"> <button class="nav-link text-white active bg-transparent border-0 border-bottom-indigo" id="contactsTab-btn" data-bs-toggle="tab" data-bs-target="#contactsTab" type="button"> <i class="bi bi-person-workspace me-2 text-info"></i> Service Quote Requests </button> </li> <li class="nav-item"> <button class="nav-link text-white bg-transparent border-0" id="leadsTab-btn" data-bs-toggle="tab" data-bs-target="#leadsTab" type="button"> <i class="bi bi-laptop-fill me-2 text-info"></i> Software Demo Requests </button> </li> </ul> <div class="tab-content" id="leadsTabsContent"> <!-- 1. Service Quote Requests Tab --> <div class="tab-pane fade show active" id="contactsTab"> <div class="table-responsive mb-4"> <table class="table table-dark table-hover mb-0"> <thead> <tr class="small text-muted"> <th>Date</th> <th>Name</th> <th>Phone / Email</th> <th>Service Requested</th> <th>Budget</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> @forelse($contacts as $contact) <tr class="small border-secondary"> <td class="text-muted">{{ $contact->created_at->format('Y-m-d H:i') }}</td> <td class="text-white fw-bold">{{ $contact->name }}</td> <td> <span class="d-block text-white">{{ $contact->phone }}</span> <span class="d-block text-muted" style="font-size: 11px;">{{ $contact->email ?? 'No Email' }}</span> </td> <td class="text-white">{{ $contact->service->title ?? 'General' }}</td> <td><span class="badge bg-secondary">{{ $contact->budget ?? 'None' }}</span></td> <td><span class="badge-status {{ $contact->status }}">{{ $contact->status }}</span></td> <td> <a href="{{ route('admin.leads.contact.show', $contact->id) }}" class="btn btn-sm btn-outline-info rounded-pill px-3">Manage</a> </td> </tr> @empty <tr> <td colspan="7" class="text-center text-muted py-5">No service quote requests found.</td> </tr> @endforelse </tbody> </table> </div> <!-- Pagination --> <div class="d-flex justify-content-center"> {{ $contacts->links() }} </div> </div> <!-- 2. Software Demo Requests Tab --> <div class="tab-pane fade" id="leadsTab"> <div class="table-responsive mb-4"> <table class="table table-dark table-hover mb-0"> <thead> <tr class="small text-muted"> <th>Date</th> <th>Name</th> <th>Company</th> <th>Phone / Email</th> <th>Software Product</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> @forelse($leads as $lead) <tr class="small border-secondary"> <td class="text-muted">{{ $lead->created_at->format('Y-m-d H:i') }}</td> <td class="text-white fw-bold">{{ $lead->name }}</td> <td>{{ $lead->company ?? 'Individual' }}</td> <td> <span class="d-block text-white">{{ $lead->phone }}</span> <span class="d-block text-muted" style="font-size: 11px;">{{ $lead->email ?? 'No Email' }}</span> </td> <td class="text-white">{{ $lead->software->name ?? 'General' }}</td> <td><span class="badge-status {{ $lead->status }}">{{ $lead->status }}</span></td> <td> <a href="{{ route('admin.leads.software.show', $lead->id) }}" class="btn btn-sm btn-outline-info rounded-pill px-3">Manage</a> </td> </tr> @empty <tr> <td colspan="7" class="text-center text-muted py-5">No software demo requests found.</td> </tr> @endforelse </tbody> </table> </div> <!-- Pagination --> <div class="d-flex justify-content-center"> {{ $leads->links() }} </div> </div> </div> </div> <style> .border-bottom-indigo { border-bottom: 2px solid var(--admin-accent) !important; } </style> <script> document.addEventListener('DOMContentLoaded', () => { const tabs = document.querySelectorAll('#leadsTabs button'); tabs.forEach(tab => { tab.addEventListener('click', () => { tabs.forEach(t => t.classList.remove('border-bottom-indigo')); tab.classList.add('border-bottom-indigo'); }); }); // Hash-based tab loading if provided in URL const hash = window.location.hash; if (hash) { const activeTab = document.querySelector(`${hash}-btn`); if (activeTab) { activeTab.click(); } } }); </script> @endsection
Simpan