Compare commits

...

2 Commits

Author SHA1 Message Date
A1Gard 44e5bd3f6e fix some ui problems 6 months ago
A1Gard f43e88b7c7 fix some problems 6 months ago

@ -252,7 +252,7 @@ class ProductController extends Controller
$this->createOrUpdate($product, $request); $this->createOrUpdate($product, $request);
logAdmin(__METHOD__, Product::class, $product->id); logAdmin(__METHOD__, Product::class, $product->id);
if ($request->ajax()) { if ($request->ajax()) {
return ['OK' => true, 'msg' => $product->name . ' ' . __('updated successfully')]; return ['OK' => true, 'msg' => $product->name . ' ' . __('updated successfully'),'data' => $product,'link' => route('admin.product.update',$product->slug)];
} else { } else {
return redirect()->route('admin.product.index')->with(['message' => $product->name . ' ' . __('updated successfully')]); return redirect()->route('admin.product.index')->with(['message' => $product->name . ' ' . __('updated successfully')]);
} }

@ -217,7 +217,7 @@ class WebsiteController extends Controller
public function post(Post $post) public function post(Post $post)
{ {
$comments = $post->comments()->paginate(15); $comments = $post->comments()->paginate(16);
$sld = Slider::inRandomOrder()->first(); $sld = Slider::inRandomOrder()->first();
return view('website.post', compact('post', 'comments', 'sld')); return view('website.post', compact('post', 'comments', 'sld'));
} }

@ -10153,7 +10153,7 @@ aside .form-check {
background: #fff; background: #fff;
} }
#top .logo { #top-top .logo {
max-height: 65px; max-height: 65px;
max-width: 100%; max-width: 100%;
float: right; float: right;
@ -10332,6 +10332,10 @@ aside .form-check {
font-size: 15px; font-size: 15px;
margin-top: 1rem; margin-top: 1rem;
text-align: center; text-align: center;
overflow: hidden;
max-height: 1.3em;
text-overflow: ellipsis;
color: #444; color: #444;
} }

File diff suppressed because one or more lines are too long

@ -84,7 +84,9 @@ $(function () {
if (res.data.url != undefined) { if (res.data.url != undefined) {
window.location.href = res.data.url; window.location.href = res.data.url;
} else { } else {
alertify.success(res.data.msg); if (res.data.link !== undefined){
$("#saveProduct").attr('action',res.data.link)
}
if ($("#price-amount").val().trim() !== '') { if ($("#price-amount").val().trim() !== '') {
window.location.reload(); window.location.reload();
} }

@ -188,7 +188,7 @@ aside .form-check {
background: #fff; background: #fff;
} }
#top .logo { #top-top .logo {
max-height: 65px; max-height: 65px;
max-width: 100%; max-width: 100%;
float: right; float: right;
@ -363,6 +363,10 @@ aside .form-check {
font-size: 15px; font-size: 15px;
margin-top: 1rem; margin-top: 1rem;
text-align: center; text-align: center;
overflow: hidden;
max-height: 1.3em;
text-overflow: ellipsis;
color: #444; color: #444;
} }

@ -86,18 +86,22 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-12 text-start"> <div class="col-lg-4 col-md-12 text-start">
<div class='marquee'> {{-- <div class='marquee'>--}}
<div class="row mt-2 pt-1" > {{-- <div class="row mt-2 pt-1" >--}}
<a class="col" href="tel:{{\App\Helpers\getSetting('tel')}}"> {{-- <a class="col" href="tel:{{\App\Helpers\getSetting('tel')}}">--}}
<i class="fa fa-phone-alt"></i> {{-- <i class="fa fa-phone-alt"></i>--}}
{{\App\Helpers\getSetting('tel')}} {{-- {{\App\Helpers\getSetting('tel')}}--}}
</a> {{-- </a>--}}
<a class="col" href="mail:{{\App\Helpers\getSetting('email')}}"> {{-- <a class="col" href="mail:{{\App\Helpers\getSetting('email')}}">--}}
<i class="fa fa-envelope"></i> {{-- <i class="fa fa-envelope"></i>--}}
{{\App\Helpers\getSetting('email')}} {{-- {{\App\Helpers\getSetting('email')}}--}}
</a> {{-- </a>--}}
</div> {{-- </div>--}}
</div> {{-- </div>--}}
<a href="/">
<img src="{{asset('images/logo.png')}}" class="logo" alt="">
</a>
</div> </div>
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">

@ -1,10 +1,5 @@
<nav> <nav>
<ul id="mega-menu"> <ul id="mega-menu">
<li>
<a href="/">
<img src="{{asset('images/logo.png')}}" class="logo" alt="">
</a>
</li>
@foreach(\App\Helpers\getMainCats(4) as $mcat) @foreach(\App\Helpers\getMainCats(4) as $mcat)
<li> <li>
<a href="{{route('cat',$mcat->slug)}}"> <a href="{{route('cat',$mcat->slug)}}">

@ -85,6 +85,9 @@
<section id="new-products" class="mt-5 long-box"> <section id="new-products" class="mt-5 long-box">
<div class="container pt-4 pb-4"> <div class="container pt-4 pb-4">
<h1 class="mb-4"> <h1 class="mb-4">
<a href="{{route('products')}}" class="float-end btn btn-outline-primary">
همه محصولات
</a>
{{\App\Helpers\getSetting('sectext')}} {{\App\Helpers\getSetting('sectext')}}
</h1> </h1>
<div id="owl1" class="owl-carousel owl-theme owl1"> <div id="owl1" class="owl-carousel owl-theme owl1">
@ -114,9 +117,6 @@
@endforeach @endforeach
</div> </div>
<a href="{{route('products')}}" class="float-end btn btn-outline-primary">
همه محصولات
</a>
<br> <br>
<br> <br>
</div> </div>

Loading…
Cancel
Save