2025-11-06 17:09:52 +05:30
|
|
|
@extends('admin.layouts.app')
|
|
|
|
|
|
2025-11-18 10:01:59 +05:30
|
|
|
@section('page-title', 'Customers')
|
2025-11-06 17:09:52 +05:30
|
|
|
|
|
|
|
|
@section('content')
|
2025-11-18 10:01:59 +05:30
|
|
|
|
|
|
|
|
<style>
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Import Inter font */
|
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
|
overflow-x: hidden; /* Prevent horizontal scroll on body */
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-21 16:15:10 +05:30
|
|
|
.glass-card {
|
|
|
|
|
background: rgba(255, 255, 255, 0.95);
|
|
|
|
|
backdrop-filter: blur(20px);
|
|
|
|
|
border-radius: 15px;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
|
|
|
overflow: hidden;
|
2025-11-18 10:01:59 +05:30
|
|
|
}
|
2025-11-21 16:15:10 +05:30
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* New Stats Container */
|
|
|
|
|
.stats-container {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
|
|
|
gap: 12px;
|
|
|
|
|
margin: 20px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
|
|
|
|
background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
|
|
|
|
|
padding: 16px;
|
2025-11-21 16:15:10 +05:30
|
|
|
border-radius: 12px;
|
2025-12-01 10:38:52 +05:30
|
|
|
border-left: 4px solid #4f46e5;
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
2025-11-21 16:15:10 +05:30
|
|
|
transition: transform 0.3s ease;
|
2025-12-01 10:38:52 +05:30
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
min-height: 70px;
|
2025-11-18 10:01:59 +05:30
|
|
|
}
|
2025-12-01 10:38:52 +05:30
|
|
|
|
|
|
|
|
.stat-card:hover {
|
|
|
|
|
transform: translateY(-2px);
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
2025-12-01 10:38:52 +05:30
|
|
|
|
|
|
|
|
.stat-card.warning {
|
|
|
|
|
border-left-color: #f59e0b;
|
|
|
|
|
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.success {
|
|
|
|
|
border-left-color: #10b981;
|
|
|
|
|
background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.danger {
|
|
|
|
|
border-left-color: #ef4444;
|
|
|
|
|
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.info {
|
|
|
|
|
border-left-color: #3b82f6;
|
|
|
|
|
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.secondary {
|
|
|
|
|
border-left-color: #8b5cf6;
|
|
|
|
|
background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-icon {
|
|
|
|
|
width: 45px;
|
|
|
|
|
height: 45px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: rgba(79, 70, 229, 0.1);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-icon i {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: #4f46e5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.warning .stat-icon {
|
|
|
|
|
background: rgba(245, 158, 11, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.warning .stat-icon i {
|
|
|
|
|
color: #f59e0b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.success .stat-icon {
|
|
|
|
|
background: rgba(16, 185, 129, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.success .stat-icon i {
|
|
|
|
|
color: #10b981;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.danger .stat-icon {
|
|
|
|
|
background: rgba(239, 68, 68, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.danger .stat-icon i {
|
|
|
|
|
color: #ef4444;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.info .stat-icon {
|
|
|
|
|
background: rgba(59, 130, 246, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.info .stat-icon i {
|
|
|
|
|
color: #3b82f6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.secondary .stat-icon {
|
|
|
|
|
background: rgba(139, 92, 246, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card.secondary .stat-icon i {
|
|
|
|
|
color: #8b5cf6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-value {
|
|
|
|
|
font-size: 22px;
|
2025-11-21 16:15:10 +05:30
|
|
|
font-weight: 700;
|
2025-12-01 10:38:52 +05:30
|
|
|
color: #1a202c;
|
|
|
|
|
line-height: 1.2;
|
2025-11-21 16:15:10 +05:30
|
|
|
margin-bottom: 2px;
|
|
|
|
|
}
|
2025-12-01 10:38:52 +05:30
|
|
|
|
|
|
|
|
.stat-label {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #718096;
|
2025-11-21 16:15:10 +05:30
|
|
|
font-weight: 500;
|
2025-12-01 10:38:52 +05:30
|
|
|
line-height: 1.3;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Updated Search Container - Wider with icon on left */
|
2025-11-21 16:15:10 +05:30
|
|
|
.search-container {
|
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
|
border-radius: 10px;
|
2025-12-01 10:38:52 +05:30
|
|
|
padding: 6px 12px;
|
2025-11-21 16:15:10 +05:30
|
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
2025-12-01 10:38:52 +05:30
|
|
|
width: 350px; /* Increased width */
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input {
|
|
|
|
|
border: none;
|
|
|
|
|
background: transparent;
|
2025-12-01 10:38:52 +05:30
|
|
|
padding: 4px 8px;
|
2025-11-21 16:15:10 +05:30
|
|
|
width: 100%;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-size: 13px;
|
2025-11-21 16:15:10 +05:30
|
|
|
outline: none;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input::placeholder {
|
|
|
|
|
color: #9ca3af;
|
|
|
|
|
font-size: 13px;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.filter-btn {
|
|
|
|
|
background: rgba(102, 126, 234, 0.1);
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
color: #667eea;
|
2025-12-01 10:38:52 +05:30
|
|
|
padding: 5px 12px;
|
2025-11-21 16:15:10 +05:30
|
|
|
border-radius: 8px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
transition: all 0.3s ease;
|
2025-12-01 10:38:52 +05:30
|
|
|
margin: 0 3px;
|
2025-11-21 16:15:10 +05:30
|
|
|
text-decoration: none;
|
|
|
|
|
display: inline-block;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-family: 'Inter', sans-serif;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.filter-btn.active {
|
|
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
border-color: #667eea;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.add-customer-btn {
|
|
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 8px;
|
2025-12-01 10:38:52 +05:30
|
|
|
padding: 6px 16px;
|
2025-11-21 16:15:10 +05:30
|
|
|
color: white;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
display: inline-block;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-family: 'Inter', sans-serif;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Updated Table Styles - Fixed horizontal scroll */
|
2025-11-21 16:15:10 +05:30
|
|
|
.table-glass {
|
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
|
2025-12-01 10:38:52 +05:30
|
|
|
font-family: 'Inter', sans-serif;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Single gradient for entire header - Blue to Purple */
|
|
|
|
|
.table thead {
|
2025-11-21 16:15:10 +05:30
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
2025-12-01 10:38:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-header {
|
2025-11-18 10:01:59 +05:30
|
|
|
color: white !important;
|
2025-11-21 16:15:10 +05:30
|
|
|
font-weight: 600;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-size: 0.85rem;
|
|
|
|
|
padding: 14px 12px !important;
|
2025-11-21 16:15:10 +05:30
|
|
|
border: none;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
|
position: relative;
|
|
|
|
|
background: linear-gradient(135deg, #667eea 0%);;
|
|
|
|
|
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Remove individual curved borders */
|
2025-11-21 16:15:10 +05:30
|
|
|
.table-header:first-child {
|
2025-12-01 10:38:52 +05:30
|
|
|
border-top-left-radius: 0;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-header:last-child {
|
2025-12-01 10:38:52 +05:30
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Apply rounded corners to the entire header container */
|
|
|
|
|
.table-container thead tr:first-child th:first-child {
|
|
|
|
|
border-top-left-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-container thead tr:first-child th:last-child {
|
2025-11-21 16:15:10 +05:30
|
|
|
border-top-right-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Updated Table Column Alignment */
|
2025-11-21 16:15:10 +05:30
|
|
|
.table > :not(caption) > * > * {
|
2025-12-01 10:38:52 +05:30
|
|
|
padding: 14px 12px;
|
2025-11-21 16:15:10 +05:30
|
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
2025-12-01 10:38:52 +05:30
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Center align specific columns */
|
|
|
|
|
.table > :not(caption) > * > *:nth-child(2), /* Customer ID */
|
|
|
|
|
.table > :not(caption) > * > *:nth-child(3), /* Orders */
|
|
|
|
|
.table > :not(caption) > * > *:nth-child(4), /* Total */
|
|
|
|
|
.table > :not(caption) > * > *:nth-child(5) { /* Create Date */
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Customer Info column should remain left-aligned */
|
|
|
|
|
.table > :not(caption) > * > *:first-child {
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Status and Actions columns should remain as is */
|
|
|
|
|
.table > :not(caption) > * > *:nth-child(6), /* Status */
|
|
|
|
|
.table > :not(caption) > * > *:nth-child(7) { /* Actions */
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Updated header alignment to match */
|
|
|
|
|
.table-header:nth-child(2),
|
|
|
|
|
.table-header:nth-child(3),
|
|
|
|
|
.table-header:nth-child(4),
|
|
|
|
|
.table-header:nth-child(5) {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Customer Info header stays left */
|
|
|
|
|
.table-header:first-child {
|
|
|
|
|
text-align: Center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Status and Actions headers stay centered */
|
|
|
|
|
.table-header:nth-child(6),
|
|
|
|
|
.table-header:nth-child(7) {
|
|
|
|
|
text-align: center;
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-avatar {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: white;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.premium-badge {
|
|
|
|
|
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.regular-badge {
|
|
|
|
|
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-badge {
|
2025-12-01 10:38:52 +05:30
|
|
|
padding: 5px 10px;
|
2025-11-21 16:15:10 +05:30
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.active-status {
|
|
|
|
|
background: linear-gradient(135deg, #4cd964 0%, #5ac8fa 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.inactive-status {
|
|
|
|
|
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-btn {
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
border: none;
|
|
|
|
|
background: rgba(102, 126, 234, 0.1);
|
|
|
|
|
color: #667eea;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
margin: 0 2px;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-btn:hover {
|
|
|
|
|
background: #667eea;
|
|
|
|
|
color: white;
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-info-column {
|
2025-12-01 10:38:52 +05:30
|
|
|
min-width: 220px;
|
|
|
|
|
max-width: 220px; /* Added max-width to prevent overflow */
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table tbody tr {
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table tbody tr:hover {
|
|
|
|
|
background: rgba(102, 126, 234, 0.03);
|
|
|
|
|
transform: translateX(5px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-details {
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
color: #6c757d;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Remove customer-stats since we're adding columns */
|
2025-11-21 16:15:10 +05:30
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Enhanced table styling - Fixed horizontal scroll */
|
2025-11-21 16:15:10 +05:30
|
|
|
.table-container {
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
overflow: hidden;
|
2025-12-01 10:38:52 +05:30
|
|
|
width: 100%; /* Ensure container takes full width */
|
2025-11-21 16:15:10 +05:30
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Fix table responsiveness */
|
2025-11-26 23:07:12 +05:30
|
|
|
.table-responsive {
|
2025-12-01 10:38:52 +05:30
|
|
|
overflow-x: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
width: 100%;
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
2025-12-01 10:38:52 +05:30
|
|
|
|
|
|
|
|
/* Ensure table doesn't exceed container */
|
2025-11-26 23:07:12 +05:30
|
|
|
.table {
|
|
|
|
|
width: 100%;
|
2025-12-01 10:38:52 +05:30
|
|
|
max-width: 100%;
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
table-layout: auto; /* Changed to auto for better column distribution */
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Fix for search and filter section */
|
|
|
|
|
.search-filter-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
gap: 15px;
|
2025-12-01 10:38:52 +05:30
|
|
|
width: 100%;
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-section {
|
2025-12-01 10:38:52 +05:30
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex-shrink: 0;
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.filter-section {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex-wrap: nowrap;
|
2025-12-01 10:38:52 +05:30
|
|
|
gap: 6px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* New columns styling */
|
|
|
|
|
.orders-column, .total-column, .customer-id-column, .create-date-column {
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
min-width: 80px; /* Added minimum widths for consistency */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.orders-count {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #1a202c;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.total-amount {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #10b981;
|
|
|
|
|
font-weight: 600;
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
2025-11-27 19:39:36 +05:30
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* ---------- Pagination Styles ---------- */
|
2025-11-27 19:39:36 +05:30
|
|
|
.pagination-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
padding: 12px 0;
|
|
|
|
|
border-top: 1px solid #eef3fb;
|
2025-12-01 10:38:52 +05:30
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
|
width: 100%;
|
2025-11-27 19:39:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-info {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #9ba5bb;
|
|
|
|
|
font-weight: 600;
|
2025-12-01 10:38:52 +05:30
|
|
|
flex-shrink: 0;
|
2025-11-27 19:39:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-controls {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
2025-12-01 10:38:52 +05:30
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: flex-end;
|
2025-11-27 19:39:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-btn {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid #e3eaf6;
|
|
|
|
|
color: #1a2951;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-btn:hover:not(:disabled) {
|
|
|
|
|
background: #1a2951;
|
|
|
|
|
color: white;
|
|
|
|
|
border-color: #1a2951;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-btn:disabled {
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
color: #cbd5e0;
|
|
|
|
|
border-color: #e2e8f0;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-page-btn {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid #e3eaf6;
|
|
|
|
|
color: #1a2951;
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
min-width: 36px;
|
|
|
|
|
text-align: center;
|
2025-12-01 10:38:52 +05:30
|
|
|
text-decoration: none;
|
|
|
|
|
display: inline-block;
|
2025-11-27 19:39:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-page-btn:hover {
|
|
|
|
|
background: #1a2951;
|
|
|
|
|
color: white;
|
|
|
|
|
border-color: #1a2951;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-page-btn.active {
|
|
|
|
|
background: #1a2951;
|
|
|
|
|
color: white;
|
|
|
|
|
border-color: #1a2951;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-pages {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
align-items: center;
|
2025-12-01 10:38:52 +05:30
|
|
|
flex-wrap: wrap;
|
2025-11-27 19:39:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-ellipsis {
|
|
|
|
|
color: #9ba5bb;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
padding: 0 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Image-based pagination buttons */
|
|
|
|
|
.pagination-img-btn {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid #e3eaf6;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-img-btn:hover:not(:disabled) {
|
|
|
|
|
background: #1a2951;
|
|
|
|
|
border-color: #1a2951;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-img-btn:disabled {
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
border-color: #e2e8f0;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-img-btn img {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
filter: brightness(0) saturate(100%) invert(26%) sepia(89%) saturate(748%) hue-rotate(201deg) brightness(93%) contrast(89%);
|
|
|
|
|
transition: filter 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-img-btn:hover:not(:disabled) img {
|
|
|
|
|
filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(106%) contrast(101%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-img-btn:disabled img {
|
|
|
|
|
filter: brightness(0) saturate(100%) invert(84%) sepia(8%) saturate(165%) hue-rotate(179deg) brightness(89%) contrast(86%);
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
/* Mobile responsive fixes */
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
|
.table > :not(caption) > * > * {
|
|
|
|
|
padding: 12px 8px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-info-column {
|
|
|
|
|
min-width: 180px;
|
|
|
|
|
max-width: 180px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 992px) {
|
|
|
|
|
.search-container {
|
|
|
|
|
width: 280px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-container {
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
@media (max-width: 768px) {
|
2025-12-01 10:38:52 +05:30
|
|
|
.stats-container {
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
.search-filter-container {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: stretch;
|
2025-12-01 10:38:52 +05:30
|
|
|
gap: 10px;
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-section {
|
2025-12-01 10:38:52 +05:30
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-container {
|
|
|
|
|
width: 100%;
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.filter-section {
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
2025-11-27 19:39:36 +05:30
|
|
|
|
|
|
|
|
.pagination-container {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-controls {
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
2025-12-01 10:38:52 +05:30
|
|
|
|
|
|
|
|
.table > :not(caption) > * > * {
|
|
|
|
|
padding: 10px 6px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-info-column {
|
|
|
|
|
min-width: 150px;
|
|
|
|
|
max-width: 150px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-avatar {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-btn {
|
|
|
|
|
width: 26px;
|
|
|
|
|
height: 26px;
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 576px) {
|
|
|
|
|
.stats-container {
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-responsive {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.customer-info-column {
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
max-width: 120px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.premium-badge,
|
|
|
|
|
.regular-badge,
|
|
|
|
|
.status-badge {
|
|
|
|
|
font-size: 0.6rem;
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
}
|
2025-11-26 23:07:12 +05:30
|
|
|
}
|
2025-11-18 10:01:59 +05:30
|
|
|
</style>
|
|
|
|
|
|
2025-11-21 16:15:10 +05:30
|
|
|
<div class="container-fluid">
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Header - Removed gradient -->
|
2025-11-21 16:15:10 +05:30
|
|
|
<div class="d-flex justify-content-between align-items-center mb-3">
|
2025-12-01 10:38:52 +05:30
|
|
|
<h4 style="color: #2c3e50; font-weight: 700; font-family: 'Inter', sans-serif;">Customer List</h4>
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Stats Cards with NEW DESIGN -->
|
|
|
|
|
<div class="stats-container">
|
|
|
|
|
<!-- Total Customers -->
|
|
|
|
|
<div class="stat-card">
|
|
|
|
|
<div class="stat-icon">
|
|
|
|
|
<i class="bi bi-people-fill"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-content">
|
|
|
|
|
<div class="stat-value">{{ $allCustomers->count() }}</div>
|
|
|
|
|
<div class="stat-label">Total Customers</div>
|
|
|
|
|
</div>
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- New This Month -->
|
|
|
|
|
<div class="stat-card warning">
|
|
|
|
|
<div class="stat-icon">
|
|
|
|
|
<i class="bi bi-person-plus"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-content">
|
|
|
|
|
<div class="stat-value">
|
|
|
|
|
@php
|
|
|
|
|
$newThisMonth = $allCustomers->filter(function($customer) {
|
|
|
|
|
return $customer->created_at->format('Y-m') === now()->format('Y-m');
|
|
|
|
|
})->count();
|
|
|
|
|
@endphp
|
|
|
|
|
{{ $newThisMonth }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-label">New This Month</div>
|
2025-11-26 23:07:12 +05:30
|
|
|
</div>
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Active Customers -->
|
|
|
|
|
<div class="stat-card success">
|
|
|
|
|
<div class="stat-icon">
|
|
|
|
|
<i class="bi bi-activity"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-content">
|
|
|
|
|
<div class="stat-value">
|
|
|
|
|
@php
|
|
|
|
|
$activeCustomers = $allCustomers->where('status', 'active')->count();
|
|
|
|
|
@endphp
|
|
|
|
|
{{ $activeCustomers }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-label">Active Customers</div>
|
2025-11-26 23:07:12 +05:30
|
|
|
</div>
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
|
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Premium Customers -->
|
|
|
|
|
<div class="stat-card secondary">
|
|
|
|
|
<div class="stat-icon">
|
|
|
|
|
<i class="bi bi-award-fill"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-content">
|
|
|
|
|
<div class="stat-value">
|
|
|
|
|
@php
|
|
|
|
|
$premiumCount = $allCustomers->where('customer_type', 'premium')->count();
|
|
|
|
|
@endphp
|
|
|
|
|
{{ $premiumCount }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-label">Premium Customers</div>
|
2025-11-26 23:07:12 +05:30
|
|
|
</div>
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Search and Filter Section -->
|
2025-11-21 16:15:10 +05:30
|
|
|
<div class="glass-card p-3 mb-3">
|
2025-11-26 23:07:12 +05:30
|
|
|
<div class="search-filter-container">
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Search Section - Wider with icon on left -->
|
2025-11-26 23:07:12 +05:30
|
|
|
<div class="search-section">
|
2025-11-21 16:15:10 +05:30
|
|
|
<form method="GET" action="{{ route('admin.customers.index') }}" class="d-flex align-items-center">
|
|
|
|
|
<div class="search-container">
|
|
|
|
|
<i class="bi bi-search text-muted me-2"></i>
|
|
|
|
|
<input type="text"
|
|
|
|
|
name="search"
|
|
|
|
|
value="{{ $search ?? '' }}"
|
|
|
|
|
class="search-input"
|
2025-12-01 10:38:52 +05:30
|
|
|
placeholder="Search customers by name, email, or phone...">
|
2025-11-21 16:15:10 +05:30
|
|
|
@if(!empty($status))
|
|
|
|
|
<input type="hidden" name="status" value="{{ $status }}">
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2025-11-26 23:07:12 +05:30
|
|
|
|
|
|
|
|
<!-- Filter Section -->
|
|
|
|
|
<div class="filter-section">
|
2025-11-18 10:01:59 +05:30
|
|
|
<a href="{{ route('admin.customers.index', ['status'=>'active', 'search'=>$search ?? '']) }}"
|
2025-11-21 16:15:10 +05:30
|
|
|
class="filter-btn {{ ($status ?? '') == 'active' ? 'active' : '' }}">
|
2025-11-18 10:01:59 +05:30
|
|
|
Active
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href="{{ route('admin.customers.index', ['status'=>'inactive', 'search'=>$search ?? '']) }}"
|
2025-11-21 16:15:10 +05:30
|
|
|
class="filter-btn {{ ($status ?? '') == 'inactive' ? 'active' : '' }}">
|
2025-11-18 10:01:59 +05:30
|
|
|
Inactive
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href="{{ route('admin.customers.index') }}"
|
2025-11-21 16:15:10 +05:30
|
|
|
class="filter-btn {{ empty($status) ? 'active' : '' }}">
|
2025-11-18 10:01:59 +05:30
|
|
|
All
|
|
|
|
|
</a>
|
2025-11-21 16:15:10 +05:30
|
|
|
|
2025-12-05 17:16:02 +05:30
|
|
|
@can('customer.create')
|
2025-11-26 23:07:12 +05:30
|
|
|
<a href="{{ route('admin.customers.add') }}" class="add-customer-btn">
|
2025-11-21 16:15:10 +05:30
|
|
|
<i class="bi bi-plus-circle me-1"></i>Add Customer
|
|
|
|
|
</a>
|
2025-12-05 17:16:02 +05:30
|
|
|
@endcan
|
2025-11-18 10:01:59 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-11-21 16:15:10 +05:30
|
|
|
<!-- Customer List Table -->
|
2025-11-26 23:07:12 +05:30
|
|
|
<div class="table-container">
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<table class="table table-hover align-middle mb-0">
|
2025-12-01 10:38:52 +05:30
|
|
|
<thead class="gradient-table-header">
|
2025-11-26 23:07:12 +05:30
|
|
|
<tr>
|
|
|
|
|
<th class="table-header">Customer Info</th>
|
|
|
|
|
<th class="table-header">Customer ID</th>
|
2025-12-01 10:38:52 +05:30
|
|
|
<th class="table-header">Orders</th>
|
|
|
|
|
<th class="table-header">Total</th>
|
2025-11-26 23:07:12 +05:30
|
|
|
<th class="table-header">Create Date</th>
|
|
|
|
|
<th class="table-header">Status</th>
|
2025-12-01 10:38:52 +05:30
|
|
|
<th class="table-header" width="100">Actions</th>
|
2025-11-26 23:07:12 +05:30
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2025-11-27 19:39:36 +05:30
|
|
|
<tbody id="customersTableBody">
|
2025-11-26 23:07:12 +05:30
|
|
|
@forelse($customers as $c)
|
|
|
|
|
<tr>
|
|
|
|
|
<!-- Customer Info Column -->
|
|
|
|
|
<td class="customer-info-column">
|
|
|
|
|
<div class="d-flex align-items-start">
|
|
|
|
|
<div class="customer-avatar me-3">
|
|
|
|
|
{{ strtoupper(substr($c->customer_name,0,1)) }}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="fw-bold">{{ $c->customer_name }}</div>
|
|
|
|
|
@if($c->customer_type == 'premium')
|
|
|
|
|
<span class="premium-badge">Premium Customer</span>
|
|
|
|
|
@else
|
|
|
|
|
<span class="regular-badge">Regular Customer</span>
|
|
|
|
|
@endif
|
|
|
|
|
<div class="customer-details mt-1">
|
|
|
|
|
{{ $c->email }}<br>
|
|
|
|
|
{{ $c->mobile_no }}
|
2025-11-21 16:15:10 +05:30
|
|
|
</div>
|
2025-11-18 10:01:59 +05:30
|
|
|
</div>
|
2025-11-26 23:07:12 +05:30
|
|
|
</div>
|
|
|
|
|
</td>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
<!-- Customer ID -->
|
2025-12-01 10:38:52 +05:30
|
|
|
<td class="customer-id-column">
|
2025-11-26 23:07:12 +05:30
|
|
|
<span class="fw-bold text-primary">{{ $c->customer_id }}</span>
|
|
|
|
|
</td>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-12-01 10:38:52 +05:30
|
|
|
<!-- Orders Column -->
|
|
|
|
|
<td class="orders-column">
|
|
|
|
|
<span class="orders-count">{{ $c->orders->count() }}</span>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<!-- Total Column -->
|
|
|
|
|
<td class="total-column">
|
|
|
|
|
<span class="total-amount">₹{{ number_format($c->orders->sum('ttl_amount'), 2) }}</span>
|
|
|
|
|
</td>
|
|
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
<!-- Create Date -->
|
2025-12-01 10:38:52 +05:30
|
|
|
<td class="create-date-column">
|
2025-11-26 23:07:12 +05:30
|
|
|
<span class="text-muted">{{ $c->created_at ? $c->created_at->format('d-m-Y') : '-' }}</span>
|
|
|
|
|
</td>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
<!-- Status -->
|
|
|
|
|
<td>
|
|
|
|
|
@if($c->status === 'active')
|
|
|
|
|
<span class="status-badge active-status">Active</span>
|
|
|
|
|
@else
|
|
|
|
|
<span class="status-badge inactive-status">Inactive</span>
|
|
|
|
|
@endif
|
|
|
|
|
</td>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
<!-- Actions -->
|
|
|
|
|
<td>
|
2025-12-01 10:38:52 +05:30
|
|
|
<div class="d-flex justify-content-center">
|
2025-11-26 23:07:12 +05:30
|
|
|
<a href="{{ route('admin.customers.view', $c->id) }}"
|
|
|
|
|
class="action-btn" title="View">
|
|
|
|
|
<i class="bi bi-eye"></i>
|
|
|
|
|
</a>
|
2025-11-21 16:15:10 +05:30
|
|
|
|
2025-11-26 23:07:12 +05:30
|
|
|
<form action="{{ route('admin.customers.status', $c->id) }}"
|
|
|
|
|
method="POST" style="display:inline-block;">
|
|
|
|
|
@csrf
|
|
|
|
|
<button class="action-btn" title="Toggle Status" type="submit">
|
|
|
|
|
<i class="bi bi-power"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@empty
|
|
|
|
|
<tr>
|
2025-12-01 10:38:52 +05:30
|
|
|
<td colspan="7" class="text-center py-4">
|
2025-11-26 23:07:12 +05:30
|
|
|
<i class="bi bi-people display-4 text-muted d-block mb-2"></i>
|
|
|
|
|
<span class="text-muted">No customers found.</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@endforelse
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2025-11-18 10:01:59 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-11-27 19:39:36 +05:30
|
|
|
|
|
|
|
|
<!-- Pagination Controls -->
|
|
|
|
|
<div class="pagination-container">
|
|
|
|
|
<div class="pagination-info" id="pageInfo">
|
|
|
|
|
Showing {{ $customers->firstItem() ?? 0 }} to {{ $customers->lastItem() ?? 0 }} of {{ $customers->total() }} entries
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagination-controls">
|
|
|
|
|
<button class="pagination-img-btn" id="prevPageBtn" title="Previous page" {{ $customers->onFirstPage() ? 'disabled' : '' }}>
|
|
|
|
|
<!-- Left arrow SVG -->
|
|
|
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
<div class="pagination-pages" id="paginationPages">
|
|
|
|
|
@for ($i = 1; $i <= $customers->lastPage(); $i++)
|
|
|
|
|
<a href="{{ $customers->url($i) }}"
|
|
|
|
|
class="pagination-page-btn {{ $customers->currentPage() == $i ? 'active' : '' }}">
|
|
|
|
|
{{ $i }}
|
|
|
|
|
</a>
|
|
|
|
|
@endfor
|
|
|
|
|
</div>
|
|
|
|
|
<button class="pagination-img-btn" id="nextPageBtn" title="Next page" {{ $customers->hasMorePages() ? '' : 'disabled' }}>
|
|
|
|
|
<!-- Right arrow SVG -->
|
|
|
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path d="M6 4L10 8L6 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-11-06 17:09:52 +05:30
|
|
|
</div>
|
2025-11-18 10:01:59 +05:30
|
|
|
|
2025-11-27 19:39:36 +05:30
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
// Add hover effects to table rows
|
|
|
|
|
const tableRows = document.querySelectorAll('.table tbody tr');
|
|
|
|
|
tableRows.forEach(row => {
|
|
|
|
|
row.addEventListener('mouseenter', function() {
|
|
|
|
|
this.style.transform = 'translateX(5px)';
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
row.addEventListener('mouseleave', function() {
|
|
|
|
|
this.style.transform = 'translateX(0)';
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Pagination button handlers
|
|
|
|
|
document.getElementById('prevPageBtn').addEventListener('click', function() {
|
|
|
|
|
@if(!$customers->onFirstPage())
|
|
|
|
|
window.location.href = '{{ $customers->previousPageUrl() }}';
|
|
|
|
|
@endif
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
document.getElementById('nextPageBtn').addEventListener('click', function() {
|
|
|
|
|
@if($customers->hasMorePages())
|
|
|
|
|
window.location.href = '{{ $customers->nextPageUrl() }}';
|
|
|
|
|
@endif
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
2025-11-21 16:15:10 +05:30
|
|
|
@endsection
|