optimized ui/ux of menus and customer

master
A1Gard 2 weeks ago
parent 9332f1e9d2
commit e9402cac80

@ -226,7 +226,7 @@
class="btn btn-outline-primary btn-sm "> class="btn btn-outline-primary btn-sm ">
<i class="ri-eye-line"></i> <i class="ri-eye-line"></i>
</a> </a>
@if($inv->status != 'COMPLETED' && $inv->created_at->timestamp < (time() - 3600) ) @if($inv->status != 'COMPLETED' && $inv->created_at->timestamp > (time() - 3600) )
<a href="#" class="btn btn-outline-primary btn-sm ms-2"> <a href="#" class="btn btn-outline-primary btn-sm ms-2">
<i class="ri-secure-payment-line"></i> <i class="ri-secure-payment-line"></i>
{{__("Pay now")}} {{__("Pay now")}}

@ -1,10 +1,11 @@
import L from 'leaflet'; import L from 'leaflet';
var map,marker ; var map, marker;
window.addEventListener('load',function () { window.addEventListener('load', function () {
try {
// delete L.icon.default.prototype._getIconUrl ; // delete L.icon.default.prototype._getIconUrl ;
if (!import.meta.env.DEV){ if (!import.meta.env.DEV) {
L.Icon.Default.mergeOptions({ L.Icon.Default.mergeOptions({
iconRetinaUrl: "/assets/vendor/leaflet/marker-icon-2x.png", iconRetinaUrl: "/assets/vendor/leaflet/marker-icon-2x.png",
iconUrl: "/assets/vendor/leaflet/marker-icon.png", iconUrl: "/assets/vendor/leaflet/marker-icon.png",
@ -30,4 +31,7 @@ window.addEventListener('load',function () {
marker = L.marker({lat: lat, lng: lng}).addTo(map); marker = L.marker({lat: lat, lng: lng}).addTo(map);
} }
} catch {
}
}); });

@ -86,7 +86,7 @@
<i class="ri-search-line"></i> <i class="ri-search-line"></i>
</a> </a>
</li> </li>
<li> <li class="icon-menu">
<a href="{{route('client.card')}}"> <a href="{{route('client.card')}}">
<i class="ri-shopping-bag-2-line"></i> <i class="ri-shopping-bag-2-line"></i>
<span class="badge bg-danger card-count"> <span class="badge bg-danger card-count">
@ -96,6 +96,19 @@
</span> </span>
</a> </a>
</li> </li>
@if(auth('customer')->check())
<li class="icon-menu">
<a href="{{route('client.profile')}}">
<i class="ri-user-line"></i>
</a>
</li>
@else
<li class="icon-menu">
<a href="{{route('client.sign-in')}}">
<i class="ri-user-line"></i>
</a>
</li>
@endif
<li id="toggler-menu" class="icon-menu"> <li id="toggler-menu" class="icon-menu">
<a href="#"> <a href="#">
<i class="ri-menu-line"></i> <i class="ri-menu-line"></i>

@ -36,6 +36,7 @@
margin: 0 auto; margin: 0 auto;
> li { > li {
flex: 1;
color: white; color: white;
text-align: center; text-align: center;
height: 47px; height: 47px;
@ -98,6 +99,10 @@
display: block; display: block;
padding: .7rem 0; padding: .7rem 0;
} }
&.icon-menu{
flex-grow: .4;
}
} }
} }
@ -150,4 +155,6 @@
~header{ ~header{
margin-top: 44px; margin-top: 44px;
} }
} }

@ -21,6 +21,16 @@
@endif @endif
</span> </span>
</a> </a>
@if(auth('customer')->check())
<a href="{{route('client.profile')}}" class="d-inline-block px-1 card-link">
<i class="ri-user-line"></i>
</a>
@else
<a href="{{route('client.sign-in')}}" class="d-inline-block px-1 card-link">
<i class="ri-user-line"></i>
</a>
@endif
@if(config('app.xlang.active')) @if(config('app.xlang.active'))
@foreach(\App\Models\XLang::all() as $lang) @foreach(\App\Models\XLang::all() as $lang)
@if($lang->tag != app()->getLocale()) @if($lang->tag != app()->getLocale())

@ -21,7 +21,7 @@
padding: 1rem; padding: 1rem;
color: black; color: black;
&:hover{ &:hover{
color: var(--xshop-primary); color: var(--xshop-secondary);
} }
} }
&:first-child{ &:first-child{
@ -34,7 +34,7 @@
padding: 5px !important; padding: 5px !important;
margin: 0; margin: 0;
i{ i{
font-size: 25px; font-size: 22px;
} }
} }
} }

Loading…
Cancel
Save