Read Cart Items with JOINS

This commit is contained in:
UronShrestha
2024-07-05 12:40:14 +05:45
parent 080094d2dd
commit 71944f3245
7 changed files with 117 additions and 118 deletions

View File

@ -74,8 +74,15 @@
<div class="col-lg-6 col-md-5">
<div class="header__top__right">
<div class="header__top__links">
<a href="#">Sign in</a>
<a href="#">FAQs</a>
@if (session()->has('id'))
<a href="{{ URL::to('/logout') }}">Logout</a>
@else
<a href="{{ URL::to('/login') }}">Login</a>
<a href="{{ URL::to('/register') }}">Register</a>
@endif
{{-- <a href="{{ URL::to('/register') }}">Sign in</a>
<a href="{{ URL::to('/login') }}">Login</a> --}}
</div>
<div class="header__top__hover">
<span>Usd <i class="arrow_carrot-down"></i></span>
@ -105,19 +112,19 @@
<li><a href="#">Pages</a>
<ul class="dropdown">
<li><a href="{{ URL::to('about') }}">About Us</a></li>
<li><a href="{{ URL::to('singleProduct') }}">Single Product</a></li>
{{-- <li><a href="{{ URL::to('singleProduct') }}">Single Product</a></li> --}}
<li><a href="{{ URL::to('cart') }}">Shopping Cart</a></li>
<li><a href="{{ URL::to('checkout') }}">Check Out</a></li>
<li><a href="{{ URL::to('blogDetails') }}">Blog Details</a></li>
{{-- <li><a href="{{ URL::to('blogDetails') }}">Blog Details</a></li> --}}
</ul>
</li>
@if (session()->has('id'))
{{-- @if (session()->has('id'))
<li><a href="{{ URL::to('/logout') }}">Logout</a></li>
@else
<li><a href="{{ URL::to('/login') }}">Login</a></li>
<li><a href="{{ URL::to('/register') }}">Register</a></li>
@endif
@endif --}}
</ul>
</nav>
@ -127,7 +134,8 @@
<a href="#" class="search-switch"><img src="{{ URL::asset('img/icon/search.png') }}"
alt=""></a>
<a href="#"><img src="{{ URL::asset('img/icon/heart.png') }}" alt=""></a>
<a href="#"><img src="{{ URL::asset('img/icon/cart.png') }}" alt="">
<a href="{{ URL::to('cart') }}"><img src="{{ URL::asset('img/icon/cart.png') }}"
alt="">
<span>0</span></a>
<div class="price">Rs 0.00</div>
</div>