Added Anchor Tag On Default theme

This commit is contained in:
Devansh 2022-05-02 12:21:40 +05:30
parent 4ee71c0706
commit d635930778
1 changed files with 15 additions and 13 deletions

View File

@ -1,7 +1,11 @@
<?php $cart = cart()->getCart(); ?>
@php
$cart = cart()->getCart();
@endphp
@if ($cart)
<?php $items = $cart->items; ?>
@php
$items = $cart->items;
@endphp
<div class="dropdown-toggle">
<a class="cart-link" href="{{ route('shop.checkout.cart.index') }}">
@ -37,38 +41,40 @@
<div class="dropdown-content">
@foreach ($items as $item)
<div class="item">
<div class="item-image" >
@php
$images = $item->product->getTypeInstance()->getBaseImage($item);
@endphp
<img src="{{ $images['small_image_url'] }}" alt=""/>
<a href="{{ route('shop.productOrCategory.index', $item->product->url_key) }}" title="{{ $item->name }}">
<img src="{{ $images['small_image_url'] }}" alt=""/>
</a>
</div>
<div class="item-details">
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.name.before', ['item' => $item]) !!}
<div class="item-name">{{ $item->name }}</div>
<div class="item-name">
<a href="{{ route('shop.productOrCategory.index', $item->product->url_key) }}" title="{{ $item->name }}">
{{ $item->name }}
</a>
</div>
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.name.after', ['item' => $item]) !!}
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.options.before', ['item' => $item]) !!}
@if (isset($item->additional['attributes']))
<div class="item-options">
@foreach ($item->additional['attributes'] as $attribute)
<b>{{ $attribute['attribute_name'] }} : </b>{{ $attribute['option_label'] }}</br>
@endforeach
</div>
@endif
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.options.after', ['item' => $item]) !!}
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.price.before', ['item' => $item]) !!}
<div class="item-price">
@ -81,7 +87,6 @@
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.price.after', ['item' => $item]) !!}
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.quantity.before', ['item' => $item]) !!}
<div class="item-qty">Quantity : {{ $item->quantity }}</div>
@ -93,7 +98,6 @@
</div>
</div>
</div>
@endforeach
</div>
@ -116,9 +120,7 @@
</div>
</div>
</div>
@else
<div class="dropdown-toggle" style="pointer-events: none;">
<div style="display: inline-block; cursor: pointer;">
<span class="icon cart-icon"></span>