frontend Order Section Update

This commit is contained in:
Utkarsh Khedkar
2025-11-26 23:07:12 +05:30
parent bebe0711f4
commit 04b00c9db8
18 changed files with 3604 additions and 1334 deletions

View File

@@ -80,60 +80,158 @@
transition: all 0.2s ease;
}
/* ✨ NEW BADGE STYLES - Same as Invoice System */
.badge {
padding: 7px 16px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
user-select: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
font-size: 11px !important;
font-weight: 600 !important;
padding: 6px 12px 6px 8px !important;
border-radius: 20px !important;
text-transform: uppercase;
letter-spacing: 0.3px;
display: inline-flex !important;
align-items: center;
justify-content: center;
background-size: cover !important;
background-position: center !important;
color: #fff !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
border: 2px solid transparent !important;
min-width: 40px;
box-sizing: border-box;
line-height: 1.2;
gap: 6px;
}
.bg-success {
background-color: #28a745 !important;
color: #fff !important;
box-shadow: 0 0 10px #6ee86e77;
/* Status icons */
.status-icon {
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
}
/* Custom status badge backgrounds with icons */
.badge-active {
background: url('/images/status-bg-paid.png') !important;
}
.badge-inactive {
background: url('/images/status-bg-overdue.png') !important;
}
/* Fallback colors if images don't load - ALL WITH SAME SIZE */
.badge.badge-active {
background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
color: #065f46 !important;
border-color: #10b981 !important;
width: 98px;
}
.badge.badge-inactive {
background: linear-gradient(135deg, #e9d5ff, #c4b5fd) !important;
color: #6b21a8 !important;
border-color: #8b5cf6 !important;
}
/* Animation effects for badges */
.badge.badge-active {
animation: pulseGreen 2s infinite;
}
.badge.badge-inactive {
animation: pulseRed 2s infinite;
}
@keyframes pulseGreen {
0% { box-shadow: 0 0 8px #6ee86e77; }
50% { box-shadow: 0 0 14px #5dd75d88; }
100% { box-shadow: 0 0 8px #6ee86e77; }
}
.bg-danger {
background-color: #dc3545 !important;
color: #fff !important;
box-shadow: 0 0 10px #f97f7f77;
animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
0% { box-shadow: 0 0 8px #f97f7f77; }
50% { box-shadow: 0 0 14px #ff868677; }
100% { box-shadow: 0 0 8px #f97f7f77; }
}
/* ✨ ENHANCED ACTION BUTTONS - Professional & Attractive */
.btn-action {
background-color: #ffd283;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: #1b1c21;
padding: 7px 20px;
font-size: 0.95rem;
border-radius: 8px;
font-weight: 700;
transition: all 0.25s ease;
color: white;
padding: 10px 22px;
font-size: 0.85rem;
border-radius: 12px;
font-weight: 600;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin: 3px;
cursor: pointer;
box-shadow: 0 2px 6px rgba(141, 106, 0, 0.1);
display: inline-block;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
text-decoration: none;
min-width: 120px;
text-transform: uppercase;
letter-spacing: 0.5px;
position: relative;
overflow: hidden;
}
.btn-action::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.5s;
}
.btn-action:hover::before {
left: 100%;
}
.btn-action:hover {
background-color: #ffc85a;
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(141, 106, 0, 0.25);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
color: white;
text-decoration: none;
}
.btn-action:active {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
/* Specific styles for Activate button */
.btn-action-activate {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}
.btn-action-activate:hover {
box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}
/* Specific styles for Deactivate button */
.btn-action-deactivate {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}
.btn-action-deactivate:hover {
box-shadow: 0 8px 25px rgba(250, 112, 154, 0.5);
}
/* Button icons */
.btn-icon {
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
}
.text-muted {
@@ -219,16 +317,28 @@
<td>{{ \Carbon\Carbon::parse($mark->date)->format('d-m-Y') }}</td>
<td>
@if($mark->status == 'active')
<span class="badge bg-success">Active</span>
<span class="badge badge-active">
<i class="bi bi-check-circle-fill status-icon"></i>
Active
</span>
@else
<span class="badge bg-danger">In-Active</span>
<span class="badge badge-inactive">
<i class="bi bi-exclamation-triangle-fill status-icon"></i>
In-Active
</span>
@endif
</td>
<td>
@if($mark->status == 'active')
<a href="{{ route('admin.marklist.toggle', $mark->id) }}" class="btn-action">Deactivate</a>
<a href="{{ route('admin.marklist.toggle', $mark->id) }}" class="btn-action btn-action-deactivate">
<i class="bi bi-power btn-icon"></i>
Deactivate
</a>
@else
<a href="{{ route('admin.marklist.toggle', $mark->id) }}" class="btn-action">Activate</a>
<a href="{{ route('admin.marklist.toggle', $mark->id) }}" class="btn-action btn-action-activate">
<i class="bi bi-play-circle btn-icon"></i>
Activate
</a>
@endif
</td>
</tr>
@@ -254,4 +364,4 @@
</script>
</div>
</div>
@endsection
@endsection