fixed some problem

optimize default theme
pull/22/head
A1Gard 1 year ago
parent 11bcfe5d5a
commit 9bcfb990e6

@ -9,6 +9,7 @@ use App\Models\Setting;
use Conner\Tagging\Model\Tag;
use Illuminate\Http\Request;
use Xmen\StarterKit\Models\Category;
use Xmen\StarterKit\Models\MenuItem;
use Xmen\StarterKit\Models\Post;
class SettingController extends Controller
@ -124,4 +125,9 @@ class SettingController extends Controller
$query = trim($query);
return Post::where('title', 'LIKE', "%$query%")->limit(5)->get(['id', 'title'])->toArray();
}
public function remMenu($id){
MenuItem::where('menuable_id',$id)->delete();
return true;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

@ -10643,7 +10643,7 @@ tr.border-bottom td {
.long-box .item {
padding: 25px;
/*padding: 25px;*/
}
.fa-bg {
@ -10893,6 +10893,24 @@ tr.border-bottom td {
color: white ;
}
#blog{
padding: 2em 0;
background: #282c34;
color:white;
}
.img-vh100-full-width img {
height: 100vh;
width: 100%;
-o-object-fit: cover;
object-fit: cover;
}
h3.textt{
font-size: 22px;
font-weight: 200;
}
@charset "UTF-8";
:root {
--bg: hsl(223deg, 10%, 90%);
@ -11878,3 +11896,9 @@ a {
display: none;
}
}
.img-vh100-full-width img {
height: 100vh;
width: 100%;
-o-object-fit: cover;
object-fit: cover;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,20 +1,23 @@
jQuery(function () {
$("nav [href='" + window.location.href + "']").closest('li').addClass('current');
// console.log(
setTimeout(function () {
if ($("nav .current").closest('.main-nav').find('> a').attr('href') == undefined){
$("nav .current").closest('.main-nav').find('> a').click();
}
if ($("nav .current").parent().parent().hasClass('rvnm-expandable')){
$("nav .current").parent().parent().find('> a').click();
}
},500);
setTimeout(function () {
if ($("nav .current").closest('.main-nav').find('> a').attr('href') == undefined) {
$("nav .current").closest('.main-nav').find('> a').click();
}
if ($("nav .current").parent().parent().hasClass('rvnm-expandable')) {
$("nav .current").parent().parent().find('> a').click();
}
}, 500);
$("#menu-manage li").bind('dblclick',function () {
if (confirm('Are sure?')){
$(this).remove();
}
});
$("#menu-manage li").bind('dblclick', function () {
if (confirm('Are sure?')) {
let self = this;
axios.post($("#rem-menu").val() + '/' + $(this).data('menuableid')).then(function () {
$(self).slideUp();
});
}
});
// );
// $("nav .current").closest('li').click();
});

@ -9,9 +9,24 @@
" minutes ago": "دقیقه پیش",
" seconds ago": "ثانیه پیش",
" لطفا درگاه بانک را تعویض نمایید.": "",
"!": "",
"!bulk": "کار گروهی",
"!delete": "حذف",
"!destroy": "حذف",
"!manage": "مدیریت",
"!reply": "پاسخ",
"!show": "نمایش",
"!sort": "دیدن ترتیب",
"!sortStore": "ذخیره ترتیب",
"!statue": "تغییر وضعیت",
"!store": "ایجاد کردن",
"!update": "ویرایش کردن",
"!updatetitle": "ویرایش عنوان",
"!user": "کاربر",
"$log->action": "",
":app Dear customer Your :product signed for you.": ":app\nکاربر گرامی محصول «:product» برای شما ثبت شد.",
"A fresh verification link has been sent to your email address.": "یک لینک تاییده برای شما ایمیل شد",
"ACL": "سطح دسترسی",
"ANSWERED": "پاسخ‌ داده شده",
"Action": "عملیات",
"Actions": "عملیات",
@ -150,6 +165,7 @@
"Discounts list": "فهرست تخفیف‌ها",
"Do": "انجام",
"Double click on image to change index image": "دوبار کلیک کنید تا عکس اصلی انتخاب شود",
"Double click to remove": "برای حذف دابل کلیک کنید",
"Draft": "پیش‌نویس",
"Draft now": "پیش‌نویس کن",
"Drafted": "پیش‌نویس شده",
@ -428,6 +444,7 @@
"Shopping card": "سبد خرید",
"Short text": "متن کوتاه",
"Show": "نمایش",
"Show list": "دیدن فهرست",
"Signup or Login": "ورود یا ثبت‌نام",
"Single Select & multi search": "انتخاب تک و جستجوی چندگانه",
"Single multi select type": "نوع انتخاب تکی سرچ چندگانه",
@ -460,6 +477,7 @@
"Text": "متن",
"Text type": "نوع نوشته",
"The first and\/or second image will be index image": "اولی ویا دومین عکس به عنوان شاخص در نظر گرفته می‌شوند",
"The order is duplicate please check invoices list": "سفارش تکاری است لطفا لیست سفارشات خود را چک کنید",
"Thumbnail": "بند انگشتی",
"Thursday": "پنجشنبه",
"Ticket": "پشتیبانی",
@ -511,6 +529,7 @@
"You can choose one or more image together": "شما می‌توانید چندین عکس را با هم انتخاب کنید",
"You disliked ": "شما نپسندید اید",
"You don't have any credit": "شما اعتباری برای پرداخت ندارید",
"You dont't have acccess this acction": "شما تا زمان ورود امکان دسترسی به این بخش را ندارید",
"You have got :count products in your basket, Could you complete your purchase?": " شما در سبد خد محصولاتی دارید آیا مایل به پرداخت و پایان خرید هستید؟",
"You liked ": "شما پسند کرده",
"You liked ago ": "شما قبلا پسند کرده اید",
@ -530,6 +549,7 @@
"action": "عمل",
"adv": "تبلیغ",
"an hour ago": "یک ساعت پیش",
"attachment": "پیوست",
"body": "متن",
"by percent": "با درصد",
"by price": "با قیمت",
@ -539,16 +559,21 @@
"click here to request another": "کلیک برای ثبت درخواست دیگیر",
"clip": "کلیپ",
"clip or cover not uploaded...": "کلیپ یا کاور آن بارگزاری نشده",
"comment": "دیدگاه‌ها",
"contact": "تماس با ما",
"created successfully": "با موفقیت ساخته شد",
"customer": "مشتری",
"deleted successfully": "با موفقیت حذف شد",
"discount": "تخفیف",
"gallery": "گالری تصاویر",
"id": "آی‌دی",
"image": "تصاویر",
"image deleted successfully": "تصاویر حذف شدند",
"images uploaded successfully": "تصاویر بارگزاری دشند",
"invoice": "صورتحساب",
"invoice created successfully": "فاکتور شما با موفقیت اضافه شد",
"logs": "لاگ کاربران",
"menu": "منو",
"minute": "دقیقه",
"name \/ email": "نام | ایمیل",
"not Required": "غیر ضروری",
@ -563,36 +588,16 @@
"preview": "پیش نمایش",
"product": "محصول",
"props": "ویژگی متا",
"question": "پرسش‌ها",
"reply": "پاسخ",
"setting": "تنظیمات",
"slider": "اسلایدر",
"slider or cover not uploaded...": "تصاویر اسلایدر بارگزاری نشده...",
"ticket": "پشتیبانی",
"user": "کاربر",
"transport": "شیوه ارسال",
"transports deleted successfully": "روش ارسال با موفقیت حذف شد",
"updated successfully": "به روز شد",
"weight": "وزن",
"!show": "نمایش",
"!sortStore": "ذخیره ترتیب",
"!sort": "دیدن ترتیب",
"!delete": "حذف",
"!destroy": "حذف",
"!bulk": "کار گروهی",
"!store": "ایجاد کردن",
"!update": "ویرایش کردن",
"!manage": "مدیریت",
"!user": "کاربر",
"!statue": "تغییر وضعیت",
"!reply": "پاسخ",
"!updatetitle": "ویرایش عنوان",
"Show list": "دیدن فهرست",
"ACL": "سطح دسترسی",
"image": "تصاویر",
"menu": "منو",
"comment": "دیدگاه‌ها",
"logs": "لاگ کاربران",
"transport": "شیوه ارسال",
"question": "پرسش‌ها",
"ticket": "پشتیبانی",
"attachment": "پیوست",
"contact": "تماس با ما",
"setting": "تنظیمات",
"yesterday": "دیروز"
}

@ -674,7 +674,7 @@ tr.border-bottom td {
.long-box .item {
padding: 25px;
/*padding: 25px;*/
}
.fa-bg {
@ -913,3 +913,21 @@ tr.border-bottom td {
.btn-outline-primary:hover a{
color: white ;
}
#blog{
padding: 2em 0;
background: #282c34;
color:white;
}
.img-vh100-full-width img {
height: 100vh;
width: 100%;
-o-object-fit: cover;
object-fit: cover;
}
h3.textt{
font-size: 22px;
font-weight: 200;
}

@ -157,6 +157,16 @@ jQuery(function ($) {
items: 4,
// nav: true,
});
$('.owl-single-item').owlCarousel({
loop: true,
margin: 0,
responsiveClass: true,
autoplay: true,
autoplayTimeout: 5000,
autoplayHoverPause: true,
items: 1,
// nav: true,
});
$('#owlx1').owlCarousel({
loop: true,

@ -210,3 +210,11 @@ a{
}
}
.img-vh100-full-width{
img{
height: 100vh;
width: 100%;
object-fit: cover;
}
}

@ -5,159 +5,166 @@
@endsection
@section('content')
@include('starter-kit::component.err')
<div class="container">
<form action="{{route('admin.setting.update')}}" method="post" enctype="multipart/form-data">
@csrf
<ul class="list-group">
@foreach($settings as $set)
<li class="list-group-item">
<div class="row">
<div class="col-md-10">
<div class="form-group">
<label for="{{$set->key}}">
{{$set->title}}
</label>
@switch($set->type)
@case('longtext')
<textarea name="{{$set->key}}" id="{{$set->key}}" class="form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('checkbox')
<div class="row">
<div class="col-md">
</div>
<div class="col-md">
<label>
<input type="radio" name="{{$set->key}}"
@if($set->value == 'yes') checked @endif value="yes">
{{__("Yes")}}
</label>
</div>
<div class="col-md">
<label>
<input type="radio" name="{{$set->key}}" value="no"
@if($set->value == 'no') checked @endif>
{{__("No")}}
</label>
@include('starter-kit::component.err')
<form action="{{route('admin.setting.update')}}" method="post" enctype="multipart/form-data">
@csrf
<ul class="list-group">
@foreach($settings as $set)
<li class="list-group-item">
<div class="row">
<div class="col-md-10">
<div class="form-group">
<label for="{{$set->key}}">
{{$set->title}}
</label>
@switch($set->type)
@case('longtext')
<textarea name="{{$set->key}}" id="{{$set->key}}" class="form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('checkbox')
<div class="row">
<div class="col-md">
</div>
<div class="col-md">
<label>
<input type="radio" name="{{$set->key}}"
@if($set->value == 'yes') checked @endif value="yes">
{{__("Yes")}}
</label>
</div>
<div class="col-md">
<label>
<input type="radio" name="{{$set->key}}" value="no"
@if($set->value == 'no') checked @endif>
{{__("No")}}
</label>
</div>
</div>
</div>
@break
@case('code')
<textarea dir="ltr" name="{{$set->key}}" id="{{$set->key}}" class="form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('editor')
<textarea name="{{$set->key}}" id="{{$set->key}}" class="ckeditor form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('category')
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
@foreach($cats as $cat )
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
@endforeach
</select>
@break
@case('cat')
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
@foreach($pcats as $cat )
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
@endforeach
</select>
@break
@case('image')
<img src="{{asset('images/'.str_replace('_','.',$set->key))}}?{{time()}}"
class="img-fluid" style="max-height: 150px;max-width: 45%" alt="cover">
<input type="file" name="pic[{{$set->key}}]" id="{{$set->key}}"
accept="image/*"
class="form-control-file"/>
@break
@default
<input type="{{$set->type}}" name="{{$set->key}}" id="{{$set->key}}"
class="form-control" value="{{$set->value}}"/>
@endswitch
@break
@case('code')
<textarea dir="ltr" name="{{$set->key}}" id="{{$set->key}}"
class="form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('editor')
<textarea name="{{$set->key}}" id="{{$set->key}}"
class="ckeditor form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('category')
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
@foreach($cats as $cat )
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
@endforeach
</select>
@break
@case('cat')
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
@foreach($pcats as $cat )
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
@endforeach
</select>
@break
@case('image')
<img src="{{asset('images/'.str_replace('_','.',$set->key))}}?{{time()}}"
class="img-fluid" style="max-height: 150px;max-width: 45%" alt="cover">
<input type="file" name="pic[{{$set->key}}]" id="{{$set->key}}"
accept="image/*"
class="form-control-file"/>
@break
@default
<input type="{{$set->type}}" name="{{$set->key}}" id="{{$set->key}}"
class="form-control" value="{{$set->value}}"/>
@endswitch
</div>
</div>
<div class="col-md-2"></div>
</div>
<div class="col-md-2"></div>
</div>
</li>
@endforeach
<li class="list-group-item">
<input type="submit" value="{{__("Save")}}" class="btn btn-primary"/>
<input type="reset" value="{{__("Reset")}}" class="btn btn-secondary"/>
</li>
@endforeach
<li class="list-group-item">
<input type="submit" value="{{__("Save")}}" class="btn btn-primary"/>
<input type="reset" value="{{__("Reset")}}" class="btn btn-secondary"/>
</li>
</ul>
</form>
</ul>
</form>
@if(auth()->user()->hasRole('super-admin'))
<form class="border p-3 m-3" method="post" action="{{route('admin.setting.store')}}">
<h3>
{{__("Add new setting")}}
</h3>
@csrf
@if(auth()->user()->hasRole('super-admin'))
<form class="border p-3 m-3" method="post" action="{{route('admin.setting.store')}}">
<h3>
{{__("Add new setting")}}
</h3>
@csrf
<div class="row">
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="section">
{{__('Section')}}
</label>
<input name="section" type="text" class="form-control @error('section') is-invalid @enderror"
placeholder="{{__('Section')}}" value="{{old('section',$setting->section??null)}}"/>
<div class="row">
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="section">
{{__('Section')}}
</label>
<input name="section" type="text"
class="form-control @error('section') is-invalid @enderror"
placeholder="{{__('Section')}}" value="{{old('section',$setting->section??null)}}"/>
</div>
</div>
</div>
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="type">
{{__('Type')}}
</label>
<select name="type" id="type" class="form-control @error('type') is-invalid @enderror">
<option value="text"
@if (old('type') == 'text' ) selected @endif >{{__("Short text")}} </option>
<option value="longtext"
@if (old('longtext') == 'long' ) selected @endif >{{__("Long text")}} </option>
<option value="code"
@if (old('code') == 'code' ) selected @endif >{{__("Code")}} </option>
<option value="editor"
@if (old('editor') == 'editor' ) selected @endif >{{__("Editor text")}} </option>
<option value="category"
@if (old('type') == 'category' ) selected @endif >{{__("Category")}} </option>
<option value="cat"
@if (old('type') == 'cat' ) selected @endif >{{__("Product category")}} </option>
<option value="checkbox"
@if (old('type') == 'checkbox' ) selected @endif >{{__("Checkbox")}} </option>
<option value="image"
@if (old('type') == 'image' ) selected @endif >{{__("Image")}} </option>
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="type">
{{__('Type')}}
</label>
<select name="type" id="type" class="form-control @error('type') is-invalid @enderror">
<option value="text"
@if (old('type') == 'text' ) selected @endif >{{__("Short text")}} </option>
<option value="longtext"
@if (old('longtext') == 'long' ) selected @endif >{{__("Long text")}} </option>
<option value="code"
@if (old('code') == 'code' ) selected @endif >{{__("Code")}} </option>
<option value="editor"
@if (old('editor') == 'editor' ) selected @endif >{{__("Editor text")}} </option>
<option value="category"
@if (old('type') == 'category' ) selected @endif >{{__("Category")}} </option>
<option value="cat"
@if (old('type') == 'cat' ) selected @endif >{{__("Product category")}} </option>
<option value="checkbox"
@if (old('type') == 'checkbox' ) selected @endif >{{__("Checkbox")}} </option>
<option value="image"
@if (old('type') == 'image' ) selected @endif >{{__("Image")}} </option>
</select>
</select>
</div>
</div>
</div>
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="title">
{{__('Title')}}
</label>
<input name="title" type="text" class="form-control @error('title') is-invalid @enderror"
placeholder="{{__('Title')}}" value="{{old('title',$setting->title??null)}}"/>
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="title">
{{__('Title')}}
</label>
<input name="title" type="text" class="form-control @error('title') is-invalid @enderror"
placeholder="{{__('Title')}}" value="{{old('title',$setting->title??null)}}"/>
</div>
</div>
</div>
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="key">
{{__('Key')}}
</label>
<input name="key" type="text" class="form-control @error('key') is-invalid @enderror"
placeholder="{{__('Key')}}" value="{{old('key',$setting->key??null)}}"/>
<div class="col-md-6 mt-3">
<div class="form-group">
<label for="key">
{{__('Key')}}
</label>
<input name="key" type="text" class="form-control @error('key') is-invalid @enderror"
placeholder="{{__('Key')}}" value="{{old('key',$setting->key??null)}}"/>
</div>
</div>
<div class="col-md-12">
<label> &nbsp;</label>
<input name="" type="submit" class="btn btn-primary mt-2" value="{{__('Add to setting')}}"/>
</div>
</div>
<div class="col-md-12">
<label> &nbsp;</label>
<input name="" type="submit" class="btn btn-primary mt-2" value="{{__('Add to setting')}}"/>
</div>
</div>
</form>
</form>
</div>
@endif
@endsection
@section('js-content')

@ -119,6 +119,9 @@
</ol>
</div>
<div class="col-md-6 p-3">
<div class="alert alert-info">
{{__("Double click to remove")}}
</div>
<form class="" method="post"
enctype="multipart/form-data"
@if (isset($menu))
@ -139,6 +142,7 @@
</div>
<input type="hidden" id="tag-search" value="{{route('admin.ckeditor.tagsearch','')}}"/>
<input type="hidden" id="news-search" value="{{route('admin.ckeditor.newssearch','')}}"/>
<input type="hidden" id="rem-menu" value="{{route('admin.setting.remMenu','')}}">
</div>
@endsection

@ -1,5 +1,14 @@
@extends('website.layout.layout')
@section('content')
<section>
<div class="owl-carousel owl-theme owl-single-item">
@foreach(\Xmen\StarterKit\Models\Slider::where('active',1)->limit(5)->get() as $sld)
<a class="item img-vh100-full-width" href="{{strip_tags($sld->body)}}">
<img src="{{$sld->imgUrl()}}" alt="">
</a>
@endforeach
</div>
</section>
<section id="index-top">
<div class="container">
<div class="grid">
@ -14,7 +23,8 @@
<div class="item">
<div class="box">
<a href="{{route('product',$p->slug)}}">
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}" title="{{$p->name}}">
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}"
title="{{$p->name}}">
<h4>
{{$p->name}}
</h4>
@ -22,7 +32,8 @@
<span>
{{$p->getPrice()}}
</span>
<a href="{{route('card.add',$p->slug)}}" class="add-to-card btn btn-primary btn-block mt-2 mb-2">
<a href="{{route('card.add',$p->slug)}}"
class="add-to-card btn btn-primary btn-block mt-2 mb-2">
<img src="{{asset('images/basket.svg')}}" class="basket-icon" alt=""> &nbsp;
افزودن به سبد خرید
</a>
@ -76,7 +87,7 @@
<h1 class="mb-4">
{{\App\Helpers\getSetting('sectext')}}
</h1>
<div id="owl1" class="owl-carousel owl-theme">
<div id="owl1" class="owl-carousel owl-theme owl1">
@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('seccat'),'id','desc',10) as $p)
<div class="item ">
<div class="box">
@ -92,7 +103,8 @@
</span>
</a>
<div>
<a href="{{route('card.add',$p->slug)}}" class="add-to-card btn btn-primary btn-block mt-2 mb-2 corner">
<a href="{{route('card.add',$p->slug)}}"
class="add-to-card btn btn-primary btn-block mt-2 mb-2 corner">
<img src="{{asset('images/basket.svg')}}" class="basket-icon" alt=""> &nbsp;
افزودن به سبد خرید
</a>
@ -124,10 +136,11 @@
</div>
<div id="da-thumbs" class="da-thumbs">
@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('3cat'),'stock_quantity','desc',12) as $p)
<div class="item custom @foreach($p->categories()->pluck('id')->toArray() as $c) cat{{$c}} @endforeach shad pad">
<div
class="item custom @foreach($p->categories()->pluck('id')->toArray() as $c) cat{{$c}} @endforeach shad pad">
<div class="box">
<a href="{{route('product',$p->slug)}}">
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}" title="{{$p->name}}" >
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}" title="{{$p->name}}">
<h4>
{{$p->name}}
</h4>
@ -144,6 +157,51 @@
</div>
</div>
</section>
<section id="blog">
<div class="container">
<h1>
واپسین مطالب
</h1>
<hr>
<div class="row">
@foreach(\Xmen\StarterKit\Models\Post::where('status',1)->limit(4)->get() as $p)
<div class="col-md-3">
<a href="{{route('n.show',$p->slug)}}" class="text-dark text-decoration-none">
<div class="mb-4 card post-card">
<img src="{{$p->imgurl()}}" class="img-fluid" alt="{{$p->title}}" title="{{$p->title}}">
<div class="card-body">
<h3 class="textt">{{$p->title}}</h3>
<div class="mb-2">
@foreach($p->tags as $tag)
<a class="post-tag ms-2" href="{{route('n.tag',$tag->slug)}}">
{{$tag->name}}
</a>
@endforeach
</div>
<div class="mb-1 text-muted">
{{\App\Helpers\time2persian($p->created_at)}}
</div>
<p>
{{$p->subtitle}}
</p>
<div class="text-muted text-end text-xsmall">
<i class="fa fa-comments"></i>
دیدگاه‌:
{{$p->comments()->count()}}
</div>
</div>
</div>
</a>
</div>
@endforeach
</div>
<a href="{{route('posts')}}" class="btn btn-outline-light float-end">
همه مطالب
</a>
<br>
</div>
</section>
<section id="brand" class="pt-4 pb-4">
<div class="container">
<h1>
@ -153,7 +211,7 @@
@foreach(\App\Helpers\getSubCats(\App\Helpers\getSetting('4cat')) as $cat)
<div class="col-md-2 col-sm-3 col-4">
<a href="{{route('cat',$cat->slug)}}">
<img src="{{$cat->thumbUrl()}}" title="{{$cat->name}}" alt="{{$cat->name}}">
<img src="{{$cat->thumbUrl()}}" title="{{$cat->name}}" alt="{{$cat->name}}">
</a>
</div>
@endforeach

@ -155,6 +155,7 @@ Route::prefix(config('starter-kit.uri'))->name('admin.')->group(
Route::get('index', [\App\Http\Controllers\Admin\SettingController::class, "index"])->name('index');
Route::post('store', [\App\Http\Controllers\Admin\SettingController::class, "store"])->name('store');
Route::post('update', [\App\Http\Controllers\Admin\SettingController::class, "update"])->name('update');
Route::post('remMenu/{id}', [\App\Http\Controllers\Admin\SettingController::class, "remMenu"])->name('remMenu');
}
);

Loading…
Cancel
Save