Commit a85b51cb by Venkatshiva

mobile resonsive cahgnges and order atus in the admin pannel removed and checkout page setup

parent 3e3455e5
......@@ -24,6 +24,7 @@ class AdminMasterDataController extends Controller
'category', 'categories' => Category::class,
'gallery', 'galleries' => \App\Models\Gallery::class,
'product', 'products' => Product::class,
'order', 'orders' => \App\Models\Order::class,
default => null,
};
}
......@@ -101,6 +102,25 @@ class AdminMasterDataController extends Controller
return redirect('/admin/gallery')->with('success', 'Gallery entry created successfully!');
}
if ($type === 'category' || $type === 'categories') {
$data = $request->only(['name', 'slug', 'description']);
$imageUrl = null;
if ($request->hasFile('image_file')) {
$file = $request->file('image_file');
$filename = time() . '_' . uniqid() . '.' . $file->getClientOriginalExtension();
$file->move(public_path('uploads/categories'), $filename);
$imageUrl = '/uploads/categories/' . $filename;
} elseif ($request->filled('image_url')) {
$imageUrl = $request->input('image_url');
}
$data['image_url'] = $imageUrl;
Category::create($data);
return back()->with('success', 'Category created successfully!');
}
if ($type === 'productprices' || $type === 'product_variants' || $type === 'product_variant') {
$exists = ProductVariant::where('product_id', $request->product_id)
->where('size_id', $request->size_id)
......@@ -151,6 +171,25 @@ class AdminMasterDataController extends Controller
return redirect('/admin/gallery')->with('success', 'Gallery entry updated successfully!');
}
if ($type === 'category' || $type === 'categories') {
$data = $request->only(['name', 'slug', 'description']);
$imageUrl = $record->image_url;
if ($request->hasFile('image_file')) {
$file = $request->file('image_file');
$filename = time() . '_' . uniqid() . '.' . $file->getClientOriginalExtension();
$file->move(public_path('uploads/categories'), $filename);
$imageUrl = '/uploads/categories/' . $filename;
} elseif ($request->filled('image_url')) {
$imageUrl = $request->input('image_url');
}
$data['image_url'] = $imageUrl;
$record->update($data);
return back()->with('success', 'Category updated successfully!');
}
$data = $request->except(['_token', '_method']);
$record->update($data);
......
......@@ -47,7 +47,7 @@ class AdminViewController extends Controller
}
public function categories() {
$categories = Category::all();
$categories = Category::withCount('products')->get();
return view('admin.category', compact('categories'));
}
......@@ -79,11 +79,6 @@ class AdminViewController extends Controller
return view('admin.orders', compact('orders'));
}
public function orderstatuschange() {
$orders = Order::all();
return view('admin.orderstatuschange', compact('orders'));
}
public function announcements() {
$announcements = Announcement::all();
return view('admin.announcements', compact('announcements'));
......
......@@ -15,7 +15,9 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
$middleware->api(append: [
\Illuminate\Session\Middleware\StartSession::class,
]);
})
->withExceptions(function (Exceptions $exceptions) {
//
......
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
$this->call([
AnnouncementSeeder::class,
GallerySeeder::class,
ProductSeeder::class,
LocationSeeder::class,
]);
}
}
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Country;
use App\Models\State;
use App\Models\City;
class LocationSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// Truncate existing data to prevent duplicates
Country::truncate();
State::truncate();
City::truncate();
// 1. Seed Countries
$india = Country::create([
'name' => 'India',
'code' => 'IN',
'status' => 'Active'
]);
Country::create([
'name' => 'United States',
'code' => 'US',
'status' => 'Active'
]);
// 2. Seed States & Cities (10 States)
$locations = [
'Tamil Nadu' => ['Chennai', 'Coimbatore', 'Madurai'],
'Karnataka' => ['Bengaluru', 'Mysuru', 'Mangaluru'],
'Kerala' => ['Kochi', 'Thiruvananthapuram', 'Kozhikode'],
'Andhra Pradesh' => ['Visakhapatnam', 'Vijayawada', 'Guntur'],
'Telangana' => ['Hyderabad', 'Warangal', 'Nizamabad'],
'Maharashtra' => ['Mumbai', 'Pune', 'Nagpur'],
'Gujarat' => ['Ahmedabad', 'Surat', 'Vadodara'],
'Delhi' => ['New Delhi', 'Dwarka', 'Rohini'],
'West Bengal' => ['Kolkata', 'Darjeeling', 'Siliguri'],
'Uttar Pradesh' => ['Lucknow', 'Noida', 'Kanpur']
];
foreach ($locations as $stateName => $cities) {
// Create State
State::create([
'country' => 'India',
'name' => $stateName,
'status' => 'Active'
]);
// Create Cities for this State
foreach ($cities as $cityName) {
City::create([
'state' => $stateName,
'name' => $cityName,
'status' => 'Active'
]);
}
}
}
}
......@@ -4,7 +4,7 @@ let appliedCoupon = false;
function updateCartHeader() {
let count = cart.length; // number of distinct products selected
$('#cart-count').text(cart.reduce((t, i) => t + i.quantity, 0)); // badge shows total qty
$('.cart-count-badge').text(cart.reduce((t, i) => t + i.quantity, 0)); // badge shows total qty
// Summary counts (cart & checkout page)
$('#summary-cart-count').text(count);
......@@ -129,7 +129,7 @@ $(document).ready(function() {
$('#cart-title-label').text(`Shopping Cart (${totalQty} items)`);
$('#summary-items-count').text(totalQty);
$('#summary-items-label').text(`Price (${totalQty} items)`);
$('#cart-count').text(cart.reduce((s, i) => s + i.quantity, 0)); // badge = total qty
$('.cart-count-badge').text(cart.reduce((s, i) => s + i.quantity, 0)); // badge = total qty
let html = '';
let subtotal = 0;
......@@ -345,6 +345,30 @@ $(document).ready(function() {
items: items
};
// Helper function for showing premium error modal
function showErrorModal(title, msg) {
$('#orderErrorModal').remove();
let errModalHtml = `
<div class="modal fade" id="orderErrorModal" tabindex="-1" data-bs-backdrop="false" aria-hidden="true" style="font-family: 'Plus Jakarta Sans', sans-serif; z-index: 10060; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg" style="border-radius: 24px; background: #ffffff;">
<div class="modal-body text-center p-5">
<div class="mb-4 d-inline-flex align-items-center justify-content-center text-white rounded-circle shadow-sm" style="width: 80px; height: 80px; font-size: 2.5rem; background-color: #ef4444; filter: drop-shadow(0 4px 6px rgba(239,68,68,0.2));">
<i class="bi bi-x-lg" style="-webkit-text-stroke: 1.2px currentColor;"></i>
</div>
<h3 class="fw-bold text-dark mb-2">${title}</h3>
<p class="text-muted mb-4 px-lg-2">${msg}</p>
<button type="button" class="btn btn-danger w-100 rounded-pill py-2.5 fw-bold text-white border-0" data-bs-dismiss="modal" style="background-color: #ef4444; font-size: 0.95rem;">Close</button>
</div>
</div>
</div>
</div>
`;
$('body').append(errModalHtml);
const myErrModal = new bootstrap.Modal(document.getElementById('orderErrorModal'));
myErrModal.show();
}
// Submit via AJAX
$.ajax({
url: "/api/place-order",
......@@ -353,17 +377,46 @@ $(document).ready(function() {
data: JSON.stringify(orderData),
success: function(res) {
if (res.success) {
alert('Thank you for your order! Your VSI Mart seashell order has been placed successfully in our database. Order ID: ' + res.data.order_number);
let modalHtml = `
<div class="modal fade" id="orderSuccessModal" tabindex="-1" data-bs-backdrop="false" data-bs-keyboard="false" aria-hidden="true" style="font-family: 'Plus Jakarta Sans', sans-serif; z-index: 10060; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg" style="border-radius: 24px; background: #ffffff;">
<div class="modal-body text-center p-5">
<div class="mb-4 d-inline-flex align-items-center justify-content-center text-white rounded-circle shadow-sm" style="width: 80px; height: 80px; font-size: 2.5rem; background-color: #10b981; filter: drop-shadow(0 4px 6px rgba(16,185,129,0.2));">
<i class="bi bi-check-lg" style="-webkit-text-stroke: 1.2px currentColor;"></i>
</div>
<h3 class="fw-bold text-dark mb-2">Order Confirmed!</h3>
<p class="text-muted mb-4 px-lg-2">Thank you for your order! Your VSI Mart seashell order has been placed successfully in our database.</p>
<div class="p-3 bg-light rounded-4 mb-4">
<span class="d-block text-muted small text-uppercase tracking-wider fw-bold mb-1" style="font-size: 0.72rem; letter-spacing: 0.05em;">Order Reference ID</span>
<span class="fw-bold text-dark fs-5">${res.data.order_number}</span>
</div>
<button type="button" class="btn btn-primary w-100 rounded-pill py-2.5 fw-bold text-white border-0" id="btnContinueShopping" style="background-color: #2b59c3; font-size: 0.95rem;">Continue Shopping</button>
</div>
</div>
</div>
</div>
`;
$('body').append(modalHtml);
const myModal = new bootstrap.Modal(document.getElementById('orderSuccessModal'));
myModal.show();
localStorage.removeItem('vsimart_cart');
cart = [];
window.location.href = '/';
updateCartHeader();
$('#btnContinueShopping').click(function() {
myModal.hide();
window.location.href = '/';
});
} else {
alert('Error: ' + res.message);
showErrorModal('Error', res.message);
}
},
error: function(xhr) {
let err = xhr.responseJSON ? xhr.responseJSON.message : 'Something went wrong. Please check stock limits or input details.';
alert('Order Failed: ' + err);
showErrorModal('Order Failed', err);
}
});
});
......@@ -582,19 +635,19 @@ $(document).ready(function() {
}
function updateAuthUI(isLoggedIn, name = '') {
const container = $('.header-signin-btn').parent();
const container = $('.header-auth-container');
if (!container.length) return;
if (isLoggedIn) {
container.html(`
<span class="text-white me-3" style="font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; font-weight: 600;">Welcome, ${name}</span>
<span class="text-white me-3 d-none d-md-inline" style="font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; font-weight: 600;">Welcome, ${name}</span>
<a href="/dashboard" class="text-white text-decoration-none opacity-85 hover-opacity-100 fw-bold me-3" style="font-size: 0.88rem;">Dashboard</a>
<a href="#" class="header-signout-btn text-white text-decoration-none opacity-85 hover-opacity-100 fw-bold" style="font-size: 0.88rem;">Logout</a>
`);
} else {
container.html(`
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
`);
}
......
......@@ -4,7 +4,7 @@ let appliedCoupon = false;
function updateCartHeader() {
let count = cart.reduce((total, item) => total + item.quantity, 0);
$('#cart-count').text(count);
$('.cart-count-badge').text(count);
// Summary counts (cart & checkout page)
$('#summary-cart-count').text(count);
......
......@@ -1048,7 +1048,39 @@ footer a:hover {
/* Responsive Media Queries */
@media (max-width: 991.98px) {
.navbar-custom {
padding: 0.8rem 1rem;
padding: 0.5rem 0.75rem !important;
min-height: 56px !important;
}
/* Scale down the logo text on mobile instead of hiding it */
.navbar-brand img[alt="VSI MART"] {
display: inline-block !important;
height: 18px !important;
}
.navbar-custom .navbar-brand img:first-child {
height: 32px !important;
margin-right: 6px !important;
}
/* Make header cart button compact on mobile */
.header-cart-btn {
padding: 6px 12px !important;
font-size: 0.85rem !important;
gap: 0.25rem !important;
}
.header-cart-btn svg {
width: 18px !important;
height: 18px !important;
}
/* Mobile menu custom items styling */
.btn-cart-mobile, .header-signin-btn-mobile {
color: rgba(255, 255, 255, 0.75) !important;
transition: color 0.2s ease, background-color 0.2s ease;
padding-left: 1rem !important;
padding-right: 1rem !important;
border-radius: 8px;
}
.btn-cart-mobile:hover, .header-signin-btn-mobile:hover {
color: #ffffff !important;
background-color: rgba(255, 255, 255, 0.08);
}
.navbar-collapse {
background-color: var(--primary-blue);
......@@ -1074,6 +1106,10 @@ footer a:hover {
}
@media (max-width: 768px) {
.hero-wave svg,
.why-wave svg {
height: 35px !important;
}
.hero-title {
font-size: 2.8rem !important;
}
......
......@@ -22,7 +22,7 @@
<!-- CRUD Modal -->
<div class="modal fade" id="crudModal" tabindex="-1">
<div class="modal-dialog">
<form method="POST" action="" id="crudForm">
<form method="POST" action="" id="crudForm" enctype="multipart/form-data">
@csrf
<input type="hidden" name="_method" id="crudMethod" value="POST">
<div class="modal-content">
......@@ -40,6 +40,20 @@
<label class="form-label">Slug</label>
<input type="text" class="form-control" name="slug" id="crud_slug" required>
</div>
<div class="mb-3">
<label class="form-label">Category Image File</label>
<input type="file" class="form-control" name="image_file" id="crud_image_file" accept="image/*">
<small class="text-muted">Or upload a new image file</small>
</div>
<div class="mb-3">
<label class="form-label">Category Image URL</label>
<input type="text" class="form-control" name="image_url" id="crud_image_url" placeholder="https://example.com/image.jpg">
<small class="text-muted">Or paste an image URL directly</small>
</div>
<div class="mb-3 text-center d-none" id="image_preview_container">
<label class="form-label d-block text-start">Current/Preview Image</label>
<img id="image_preview" src="" alt="Category Image" class="img-thumbnail" style="max-height: 120px;">
</div>
</div>
<div class="modal-footer border-0 pt-0">
<button type="button" class="btn btn-light rounded-pill px-4" data-bs-dismiss="modal">Cancel</button>
......@@ -61,6 +75,9 @@
document.getElementById('crud_name').value = '';
document.getElementById('crud_slug').value = '';
document.getElementById('crud_image_file').value = '';
document.getElementById('crud_image_url').value = '';
document.getElementById('image_preview_container').classList.add('d-none');
}
function openEditModal(type, id) {
......@@ -75,6 +92,17 @@
document.getElementById('crud_name').value = item.name || '';
document.getElementById('crud_slug').value = item.slug || '';
document.getElementById('crud_image_file').value = '';
document.getElementById('crud_image_url').value = item.image_url || '';
const previewContainer = document.getElementById('image_preview_container');
const previewImg = document.getElementById('image_preview');
if (item.image_url) {
previewImg.src = item.image_url;
previewContainer.classList.remove('d-none');
} else {
previewContainer.classList.add('d-none');
}
const modal = new bootstrap.Modal(document.getElementById('crudModal'));
modal.show();
......@@ -84,9 +112,10 @@
<div class="panel-card">
<div class="table-responsive">
<table class="table mb-0">
<table class="table mb-0 align-middle">
<thead>
<tr>
<th style="width: 80px;">Image</th>
<th>Name</th>
<th>Slug</th>
<th>Product Count</th>
......@@ -97,9 +126,18 @@
@foreach($categories as $item)
<tr>
<td>
@if($item->image_url)
<img src="{{ $item->image_url }}" alt="{{ $item->name }}" class="rounded shadow-sm" style="width: 50px; height: 50px; object-fit: cover;">
@else
<div class="rounded bg-light text-muted d-flex align-items-center justify-content-center shadow-sm" style="width: 50px; height: 50px;">
<i class="fa-regular fa-image text-muted"></i>
</div>
@endif
</td>
<td>{{ $item->name }}</td>
<td>{{ $item->slug }}</td>
<td>{{ $item->count }}</td>
<td>{{ $item->products_count }}</td>
<td>
<button class="btn-action" onclick="openEditModal('category', {{ $item->id }})"><i class="fa-solid fa-pen"></i></button>
<button class="btn-action" onclick="deleteRecord('category', {{ $item->id }})"><i class="fa-solid fa-trash"></i></button>
......
......@@ -32,15 +32,27 @@
@foreach($orders as $item)
<tr>
<td>{{ $item->orderId }}</td>
<td>{{ $item->customer }}</td>
<td>{{ $item->order_number }}</td>
<td>{{ $item->customer_name }}</td>
<td>{{ $item->phone }}</td>
<td>{{ $item->total }}</td>
<td>₹{{ number_format($item->total, 2) }}</td>
<td>{{ $item->pincode }}</td>
<td>{{ $item->status }}</td>
<td>
<button class="btn-action" onclick="openEditModal('orders', {{ $item->id }})"><i class="fa-solid fa-pen"></i></button>
<button class="btn-action" onclick="deleteRecord('orders', {{ $item->id }})"><i class="fa-solid fa-trash"></i></button>
<div class="d-flex flex-column gap-1">
<span class="status-badge status-{{ strtolower($item->order_status) }} mb-1">
{{ ucfirst($item->order_status) }}
</span>
<select id="selStatus-{{ $item->id }}" class="form-select form-select-sm" style="max-width:140px; font-size: 0.75rem; padding: 0.25rem 0.5rem;" onchange="updateOrderStatus({{ $item->id }})">
<option value="pending" {{ strtolower($item->order_status) === 'pending' ? 'selected' : '' }}>Pending</option>
<option value="processing" {{ strtolower($item->order_status) === 'processing' ? 'selected' : '' }}>Processing</option>
<option value="shipped" {{ strtolower($item->order_status) === 'shipped' ? 'selected' : '' }}>Shipped</option>
<option value="delivered" {{ strtolower($item->order_status) === 'delivered' ? 'selected' : '' }}>Delivered</option>
<option value="cancelled" {{ strtolower($item->order_status) === 'cancelled' ? 'selected' : '' }}>Cancelled</option>
</select>
</div>
</td>
<td>
<button class="btn-action text-danger" onclick="deleteRecord('orders', {{ $item->id }})" title="Delete Order"><i class="fa-solid fa-trash"></i></button>
</td>
</tr>
@endforeach
......@@ -56,3 +68,46 @@
</div>
@endsection
@push('scripts')
<script>
function updateOrderStatus(id) {
const status = document.getElementById('selStatus-' + id).value;
fetch('/admin/orders/' + id + '/status', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': '{{ csrf_token() }}'
},
body: JSON.stringify({
order_status: status
})
})
.then(response => response.json())
.then(data => {
if (data.success) {
const toast = document.getElementById('toastBox');
document.getElementById('toastMsg').innerText = data.message || "Order status updated successfully!";
const icon = toast.querySelector('.fa-solid');
if (icon) {
icon.className = 'fa-solid fa-circle-check text-success';
}
toast.classList.add('show');
setTimeout(() => {
toast.classList.remove('show');
window.location.reload();
}, 1000);
} else {
alert(data.message || "Failed to update order status");
}
})
.catch(error => {
console.error('Error:', error);
alert('An error occurred while updating order status');
});
}
</script>
@endpush
@extends('layouts.admin')
@section('breadcrumbs')
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item"><a href="{{ url('/admin/dashboard') }}">Admin</a></li>
<li class="breadcrumb-item">Manage Portal</li>
<li class="breadcrumb-item active" aria-current="page">Order Status Change</li>
</ol>
</nav>
@endsection
@section('page_title', 'Order Status')
@section('page_description', 'Update order statuses and track shipments.')
@section('content')
<div class="panel-card">
<div class="table-responsive">
<table class="table mb-0">
<thead>
<tr>
<th>Order ID</th>
<th>Customer Name</th>
<th>Current Status</th>
<th>Change State</th>
</tr>
</thead>
<tbody id="orderstatuschange-tbody">
@foreach($orders as $item)
<tr>
<td>{{ $item->orderId }}</td>
<td>{{ $item->customer }}</td>
<td>{{ $item->status }}</td>
<td>
<div class="d-flex gap-2">
<select id="selStatus-{{ $item->id }}" class="form-select form-select-sm" style="max-width:180px;">
<option value="Pending" {{ $item->status === 'Pending' ? 'selected' : '' }}>Pending</option>
<option value="Shipped" {{ $item->status === 'Shipped' ? 'selected' : '' }}>Shipped</option>
<option value="Delivered" {{ $item->status === 'Delivered' ? 'selected' : '' }}>Delivered</option>
</select>
<button class="btn btn-sm btn-primary rounded-pill px-3" onclick="updateOrderStatus({{ $item->id }})">Update</button>
</div>
</td>
</tr>
@endforeach
@if(count($orders) === 0)
<tr>
<td colspan="10" class="text-center text-muted py-4">No records found.</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
@endsection
......@@ -33,6 +33,24 @@
<img src="header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -51,15 +69,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......
......@@ -28,6 +28,24 @@
<a class="navbar-brand" href="{{ url('/') }}">
<i class="bi bi-tsunami"></i> VSI Mart
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -46,15 +64,13 @@
<a class="nav-link" href="index.html#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......
......@@ -31,6 +31,24 @@
<img src="header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -49,15 +67,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......
......@@ -106,6 +106,24 @@
<img src="header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -124,15 +142,11 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<div class="d-flex align-items-center">
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
......
......@@ -31,6 +31,24 @@
<img src="header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -49,15 +67,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......
......@@ -30,6 +30,25 @@
<img src="header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -48,15 +67,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......@@ -118,61 +135,20 @@
<p class="text-muted">Discover our wide range of handcrafted oceanic treasures, perfect for gifting and interior decoration.</p>
</div>
<div class="row row-cols-1 row-cols-md-3 g-4">
<!-- Card 1 -->
@foreach($categories as $item)
<div class="col">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='shop.html?category=handcrafts'">
<img src="https://images.unsplash.com/photo-1595855759920-86582396756a?w=600&auto=format&fit=crop&q=80" class="card-img object-fit-cover" alt="Seashell Hand Crafts" height="300">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='{{ url('/shop?category=' . $item->slug) }}'">
<img src="{{ $item->image_url ?? 'https://images.unsplash.com/photo-1595855759920-86582396756a?w=600' }}" class="card-img object-fit-cover" alt="{{ $item->name }}" height="300">
<div class="card-img-overlay d-flex flex-column justify-content-end p-4">
<h4 class="card-title fw-bold m-0 text-white">Seashell Hand Crafts</h4>
<h4 class="card-title fw-bold m-0 text-white">{{ $item->name }}</h4>
<p class="m-0 text-white-50 small mt-1">View Detailed &rarr;</p>
</div>
</div>
</div>
<!-- Card 2 -->
<div class="col">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='shop.html?category=gifts'">
<img src="https://images.unsplash.com/photo-1549465220-1a8b9238cd48?w=600&auto=format&fit=crop&q=80" class="card-img object-fit-cover" alt="Gift Articles" height="300">
<div class="card-img-overlay d-flex flex-column justify-content-end p-4">
<h4 class="card-title fw-bold m-0 text-white">Gift Articles</h4>
</div>
</div>
</div>
<!-- Card 3 -->
<div class="col">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='shop.html?category=decor'">
<img src="https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=600&auto=format&fit=crop&q=80" class="card-img object-fit-cover" alt="Fancy Decorative Items" height="300">
<div class="card-img-overlay d-flex flex-column justify-content-end p-4">
<h4 class="card-title fw-bold m-0 text-white">Fancy Decorative Items</h4>
</div>
</div>
</div>
<!-- Card 4 -->
<div class="col">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='shop.html?category=theme'">
<img src="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=600&auto=format&fit=crop&q=80" class="card-img object-fit-cover" alt="Ocean Theme Decor" height="300">
<div class="card-img-overlay d-flex flex-column justify-content-end p-4">
<h4 class="card-title fw-bold m-0 text-white">Ocean Theme Decor</h4>
</div>
</div>
</div>
<!-- Card 5 -->
<div class="col">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='shop.html?category=jewelry'">
<img src="https://images.unsplash.com/photo-1599643478518-a784e5dc4c8f?w=600&auto=format&fit=crop&q=80" class="card-img object-fit-cover" alt="Handmade Shell Jewelry" height="300">
<div class="card-img-overlay d-flex flex-column justify-content-end p-4">
<h4 class="card-title fw-bold m-0 text-white">Handmade Shell Jewelry</h4>
</div>
</div>
</div>
<!-- Card 6 -->
<div class="col">
<div class="card collection-card text-white border-0 overflow-hidden rounded-4" onclick="location.href='shop.html?category=souvenirs'">
<img src="https://images.unsplash.com/photo-1520038410233-7141be7e6f97?w=600&auto=format&fit=crop&q=80" class="card-img object-fit-cover" alt="Beach Souvenirs" height="300">
<div class="card-img-overlay d-flex flex-column justify-content-end p-4">
<h4 class="card-title fw-bold m-0 text-white">Beach Souvenirs</h4>
</div>
</div>
</div>
@endforeach
@if(count($categories) === 0)
<div class="col-12 text-center text-muted py-4">No categories found.</div>
@endif
</div>
</section>
......
......@@ -599,10 +599,8 @@
<!-- Sidebar Layout -->
<div class="sidebar" id="adminSidebar">
<div class="brand-logo d-flex align-items-center">
<svg viewBox="0 0 100 100" class="me-2 text-warning" style="width: 28px; height: 28px; filter: drop-shadow(0 0 4px rgba(255,185,0,0.8));">
<path d="M50,15 C45,30 35,45 25,60 C20,70 22,80 32,82 C40,83 45,72 50,65 C55,72 60,83 68,82 C78,80 80,70 75,60 C65,45 55,30 50,15 Z" fill="#FFB900" />
</svg>
<div class="brand-logo d-flex align-items-center py-2">
<img src="{{ asset('header_logo.png') }}" alt="VSI Logo" style="height: 40px; margin-right: 10px; object-fit: contain;">
<span>VSI Admin</span>
</div>
......@@ -636,7 +634,6 @@
<li class="{{ Request::is('admin/products') ? 'active' : '' }}"><a href="{{ url('/admin/products') }}"><i class="fa-solid fa-boxes-stacked"></i>Products</a></li>
<li class="{{ Request::is('admin/productprices') ? 'active' : '' }}"><a href="{{ url('/admin/productprices') }}"><i class="fa-solid fa-tags"></i>Product Prices</a></li>
<li class="{{ Request::is('admin/orders') ? 'active' : '' }}"><a href="{{ url('/admin/orders') }}"><i class="fa-solid fa-cart-shopping"></i>Orders</a></li>
<li class="{{ Request::is('admin/orderstatuschange') ? 'active' : '' }}"><a href="{{ url('/admin/orderstatuschange') }}"><i class="fa-solid fa-truck-ramp-box"></i>Order Status Change</a></li>
<li class="{{ Request::is('admin/announcements') ? 'active' : '' }}"><a href="{{ url('/admin/announcements') }}"><i class="fa-solid fa-bullhorn"></i>Announcements</a></li>
<li class="{{ Request::is('admin/gallery') ? 'active' : '' }}"><a href="{{ url('/admin/gallery') }}"><i class="fa-regular fa-image"></i>Gallery</a></li>
<li class="{{ Request::is('admin/pincodes') ? 'active' : '' }}"><a href="{{ url('/admin/pincodes') }}"><i class="fa-solid fa-map-pin"></i>Pincodes</a></li>
......
......@@ -31,6 +31,25 @@
<img src="/header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="/footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -49,15 +68,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......
......@@ -33,6 +33,25 @@
<img src="header_logo.png" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="footer_logo.png" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -51,15 +70,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......@@ -85,7 +102,7 @@
</header>
<!-- Shop Main Area -->
<div class="container-fluid py-5 px-lg-4">
<div class="container-fluid py-5 px-lg-4" id="shop-products">
<div class="row g-4">
<!-- Filter Sidebar -->
......@@ -260,11 +277,20 @@
<script>
$(document).ready(function() {
let currentCategory = 'all';
// Check if there is a category parameter in the URL
const urlParams = new URLSearchParams(window.location.search);
let currentCategory = urlParams.get('category') || 'all';
let currentSearch = '';
let currentSort = 'latest';
let currentPage = 1;
if (urlParams.has('category')) {
// Scroll to the products area on page load
$('html, body').animate({
scrollTop: $('#shop-products').offset().top - 100
}, 600);
}
// Load Categories dynamically
function loadCategories() {
$.ajax({
......
......@@ -31,6 +31,25 @@
<img src="{{ asset('header_logo.png') }}" alt="VSI Logo" style="height: 45px; margin-right: 10px; object-fit: contain;">
<img src="{{ asset('footer_logo.png') }}" alt="VSI MART" style="height: 24px; object-fit: contain;">
</a>
<!-- Header Actions -->
<div class="d-flex align-items-center gap-3 ms-auto me-2 me-lg-0 order-lg-last">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn text-white position-relative active" title="Wishlist"><i class="bi bi-heart fs-5"></i></a>
<!-- Desktop Cart -->
<a href="{{ url('/cart') }}" class="header-cart-btn text-white position-relative" title="Cart">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg>
<span class="cart-count-badge badge rounded-pill bg-danger position-absolute top-0 start-100 translate-middle" style="font-size: 0.62rem; display: none;">0</span>
</a>
<!-- Desktop Sign In -->
<div class="header-auth-container d-none d-lg-inline-block">
<a href="#" class="header-signin-btn text-white text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> <span class="d-none d-md-inline">Sign In</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
......@@ -49,15 +68,13 @@
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex align-items-center gap-4">
<a href="{{ url('/wishlist') }}" class="header-wishlist-btn active" title="Wishlist"><i class="bi bi-heart"></i></a>
<a href="{{ url('/cart') }}" class="header-cart-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:middle;"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/><line x1="6" y1="10" x2="21" y2="10"/><line x1="7" y1="14" x2="20" y2="14"/></svg> Cart
<span id="cart-count" style="display: none;">0</span>
</a>
<a href="#" class="header-signin-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
<!-- Mobile Actions (Inside Hamburger Menu) -->
<div class="d-flex d-lg-none flex-column gap-2 mt-3 pt-3 border-top border-light border-opacity-25">
<div class="header-auth-container-mobile">
<a href="#" class="header-signin-btn-mobile text-white text-decoration-none py-2 d-block" style="font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;vertical-align:middle;"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg> Sign In
</a>
</div>
</div>
</div>
</div>
......
......@@ -3,6 +3,7 @@
use App\Http\Controllers\Backend\AdminViewController;
use App\Http\Controllers\Backend\AdminMasterDataController;
use App\Http\Controllers\Backend\AdminAuthController;
use App\Http\Controllers\Backend\OrderController;
use Illuminate\Support\Facades\Route;
/*
......@@ -37,7 +38,7 @@ Route::prefix('admin')->group(function () {
Route::get('/products/{id}/edit', [AdminViewController::class, 'productsEdit']);
Route::get('/productprices', [AdminViewController::class, 'productprices']);
Route::get('/orders', [AdminViewController::class, 'orders']);
Route::get('/orderstatuschange', [AdminViewController::class, 'orderstatuschange']);
Route::put('/orders/{id}/status', [OrderController::class, 'updateOrderStatus']);
Route::get('/announcements', [AdminViewController::class, 'announcements']);
Route::get('/gallery', [AdminViewController::class, 'gallery']);
Route::get('/gallery/create', [AdminViewController::class, 'galleryCreate']);
......
......@@ -15,7 +15,8 @@ use App\Http\Controllers\FrontendController;
*/
Route::get('/', function () {
return view('index');
$categories = \App\Models\Category::all();
return view('index', compact('categories'));
});
Route::get('/shop', function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment