fix some problems

pull/36/head
A1Gard 1 year ago
parent 33912bce1f
commit f43e88b7c7

@ -252,7 +252,7 @@ class ProductController extends Controller
$this->createOrUpdate($product, $request);
logAdmin(__METHOD__, Product::class, $product->id);
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 {
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)
{
$comments = $post->comments()->paginate(15);
$comments = $post->comments()->paginate(16);
$sld = Slider::inRandomOrder()->first();
return view('website.post', compact('post', 'comments', 'sld'));
}

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

File diff suppressed because one or more lines are too long

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

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

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

@ -1,10 +1,5 @@
<nav>
<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)
<li>
<a href="{{route('cat',$mcat->slug)}}">

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

Loading…
Cancel
Save