fixed ui bugs

master
A1Gard 1 week ago
parent 981ffabf07
commit 63c021658e

@ -23,6 +23,10 @@ class ThemeController extends Controller
} }
} }
$response .= '}'; $response .= '}';
if (langIsRTL(app()->getLocale())) {
$response .= ' .slider-content, .tns-outer .item{ direction: rtl; }';
}
return response($response)->header('Content-Type', 'text/css; charset=utf-8'); return response($response)->header('Content-Type', 'text/css; charset=utf-8');
} }
} }

@ -1,4 +1,5 @@
.tns-outer { .tns-outer {
direction: ltr;
.tns-nav, button { .tns-nav, button {
display: none; display: none;
} }

@ -11,7 +11,7 @@
<div class="section-main"> <div class="section-main">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_category') as $product) @foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_category') as $product)
<div class="item"> <div class="item slider-content">
<div class="tree-product-box"> <div class="tree-product-box">
<a href="{{$product->webUrl()}}"> <a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" alt="{{$product->name}}"> <img src="{{$product->imgUrl()}}" alt="{{$product->name}}">
@ -46,7 +46,7 @@
<div class="section-second"> <div class="section-second">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryx') as $product) @foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryx') as $product)
<div class="item text-center"> <div class="item text-center slider-content">
<a href="{{$product->webUrl()}}"> <a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}"> <img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a> </a>
@ -61,7 +61,7 @@
<div class="section-third"> <div class="section-third">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryy') as $product) @foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryy') as $product)
<div class="item text-center"> <div class="item text-center slider-content">
<a href="{{$product->webUrl()}}"> <a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}"> <img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a> </a>

@ -431,10 +431,10 @@ Route::get('/sitemap.xml', [ClientController::class, 'sitemap'])->name('sitemap'
// to developer test // to developer test
Route::get('login/as/{mobile}', function ($mobile) { Route::get('login/as/{mobile}', function ($mobile) {
if (auth()->check() && auth()->user()->hasRole('developer')) { if (auth()->check() && auth()->user()->hasRole('developer')) {
if ($mobile = 1){ if ($mobile = 1) {
return \Auth::guard('customer') return \Auth::guard('customer')
->loginUsingId(\App\Models\Customer::inRandomOrder()->first()->id); ->loginUsingId(\App\Models\Customer::inRandomOrder()->first()->id);
}else{ } else {
return \Auth::guard('customer') return \Auth::guard('customer')
->loginUsingId(\App\Models\Customer::where('mobile', $mobile)->first()->id); ->loginUsingId(\App\Models\Customer::where('mobile', $mobile)->first()->id);
} }
@ -463,10 +463,10 @@ Route::any('/payment/check/{invoice_hash}/{gateway}', \App\Http\Controllers\Paym
Route::any('{lang}/{any}', [ClientController::class, 'lang']) Route::any('{lang}/{any}', [ClientController::class, 'lang'])
->where('any', '.*') ->where('any', '.*')
->where('lang','[A-Za-z]{2}') ->where('lang', '[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class,\App\Http\Middleware\VisitorCounter::class]); ->middleware([\App\Http\Middleware\LangControl::class, \App\Http\Middleware\VisitorCounter::class]);
Route::any('{lang}', [ClientController::class, 'langIndex']) Route::any('{lang}', [ClientController::class, 'langIndex'])
->where('lang','[A-Za-z]{2}') ->where('lang', '[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class,\App\Http\Middleware\VisitorCounter::class]); ->middleware([\App\Http\Middleware\LangControl::class, \App\Http\Middleware\VisitorCounter::class]);

Loading…
Cancel
Save