1
0
Fork 0

Merge pull request #6 from 4xmen/master

main
Amirabbas Momeni 1 year ago committed by GitHub
commit 0e56e3915a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ class Acl
return abort(403, __("You dont't have acccess this acction")); return abort(403, __("You dont't have acccess this acction"));
} }
// check delete or destroy with bulk action // check delete or destroy with bulk action
if ($requestPath[2] == 'bulk' && $request->input('bulk') == 'delete') { if (isset($requestPath[2]) && $requestPath[2] == 'bulk' && $request->input('bulk') == 'delete') {
$requestPath[2] = 'delete'; $requestPath[2] = 'delete';
if (!auth()->user()->hasAccess(implode('.', $requestPath))) { if (!auth()->user()->hasAccess(implode('.', $requestPath))) {
$requestPath[2] = 'destroy'; $requestPath[2] = 'destroy';

@ -101,7 +101,10 @@ class User extends Authenticatable
return $this->hasMany(Access::class); return $this->hasMany(Access::class);
} }
public function hasAnyAccess($name){ public function hasAnyAccess($name){
return $this->accesses()->where('route','LIKE','%'.$name.'%')->count() > 0; if ($this->hasRole('super-admin')){
return true;
}
return $this->accesses()->where('route','LIKE','%.'.$name.'.%')->count() > 0;
} }
public function hasAccess($route){ public function hasAccess($route){

@ -19,7 +19,7 @@ class ProductFactory extends Factory
{ {
$rand = rand(1,2); $rand = rand(1,2);
$title = ($rand == 1?'موبایل':'تبلت').' ' . $this->faker->unique()->realText(50); $title = ($rand == 1?'موبایل':'تبلت').' ' . $this->faker->unique()->firstNameFemale;
return [ return [
// //
'name' => $title, 'name' => $title,

@ -21,26 +21,26 @@
"sass-loader": "^11.0.1", "sass-loader": "^11.0.1",
"vue": "^2.6.12", "vue": "^2.6.12",
"vue-loader": "^15.9.8", "vue-loader": "^15.9.8",
"vue-template-compiler": "^2.7.10" "vue-template-compiler": "^2.7.10",
"lightbox2": "^2.11.3",
"owl.carousel": "^2.3.4",
"persian-date": "^1.1.0",
"persian-datepicker": "^1.2.0",
"alertifyjs": "^1.13.1",
"chart.js": "^3.8.2",
"x-mega-menu": "^1.2.0",
"xzoom": "^1.0.15"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^6.1.1", "@fortawesome/fontawesome-free": "^6.1.1",
"alertifyjs": "^1.13.1",
"chart.js": "^3.8.2",
"hc-offcanvas-nav": "^6.1.5",
"jquery": "^2.2.4", "jquery": "^2.2.4",
"jquery-sortable": "^0.9.13", "jquery-sortable": "^0.9.13",
"lightbox2": "^2.11.3",
"owl.carousel": "^2.3.4",
"persian-date": "^1.1.0",
"persian-datepicker": "^1.2.0",
"rvnm": "^1.4.0", "rvnm": "^1.4.0",
"select2": "^4.1.0-rc.0", "select2": "^4.1.0-rc.0",
"vazir-font": "^30.1.0", "vazir-font": "^30.1.0",
"vue-multiselect": "^2.1.6", "vue-multiselect": "^2.1.6",
"vue-select2": "^0.2.6", "vue-select2": "^0.2.6",
"vue-simple-range-slider": "^1.0.0", "vue-simple-range-slider": "^1.0.0"
"x-mega-menu": "^1.2.0",
"xzoom": "^1.0.15"
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('content') @section('content')
<div id="main-conetent"> <div id="main-conetent">
<section id="product" class="wow zoomInUp" data-wow-delay=".5"> <section id="product" class="wow zoomInUp" data-wow-delay=".5">

@ -13,156 +13,173 @@
{{__("Catalog")}} {{__("Catalog")}}
</a> </a>
<ul> <ul>
<li id="product-li"> @if(auth()->user()->hasAnyAccess('product'))
<a> <li id="product-li">
<i class="fa fa-gem"></i> <a>
{{__('Products')}} <i class="fa fa-gem"></i>
</a> {{__('Products')}}
<ul> </a>
<li> <ul>
<a href="{{route('admin.product.index')}}"> <li>
{{__('Products list')}} <a href="{{route('admin.product.index')}}">
</a> {{__('Products list')}}
</li> </a>
<li> </li>
<a href="{{route('admin.product.create')}}"> <li>
{{__('New Product')}} <a href="{{route('admin.product.create')}}">
</a> {{__('New Product')}}
</li> </a>
</ul> </li>
</li> </ul>
<li id="invoices-li"> </li>
<a> @endif
<i class="fa fa-file-invoice"></i> @if(auth()->user()->hasAnyAccess('invoice'))
{{__('Invoices')}} <li id="invoices-li">
</a> <a>
<ul> <i class="fa fa-file-invoice"></i>
<li> {{__('Invoices')}}
<a href="{{route('admin.invoice.index')}}"> </a>
{{__('Invoices list')}} <ul>
</a> <li>
</li> <a href="{{route('admin.invoice.index')}}">
<li> {{__('Invoices list')}}
<a href="{{route('admin.invoice.create')}}"> </a>
{{__('New Invoice')}} </li>
</a> <li>
</li> <a href="{{route('admin.invoice.create')}}">
</ul> {{__('New Invoice')}}
</li> </a>
<li> </li>
<a> </ul>
<i class="fa fa-users"></i> </li>
{{__('Customers')}} @endif
</a> @if(auth()->user()->hasAnyAccess('customer'))
<ul> <li>
<li> <a>
<a href="{{route('admin.customer.index')}}"> <i class="fa fa-users"></i>
{{__('Customers list')}} {{__('Customers')}}
</a> </a>
</li> <ul>
<li> <li>
<a href="{{route('admin.customer.create')}}"> <a href="{{route('admin.customer.index')}}">
{{__('New Customer')}} {{__('Customers list')}}
</a> </a>
</li> </li>
</ul> <li>
</li> <a href="{{route('admin.customer.create')}}">
<li id="discount-li"> {{__('New Customer')}}
<a> </a>
<i class="fa fa-percent"></i> </li>
{{__('Discounts')}} </ul>
</a> </li>
<ul> @endif
<li> @if(auth()->user()->hasAnyAccess('discount'))
<a href="{{route('admin.discount.index')}}"> <li id="discount-li">
{{__('Discounts list')}} <a>
</a> <i class="fa fa-percent"></i>
</li> {{__('Discounts')}}
<li> </a>
<a href="{{route('admin.discount.create')}}"> <ul>
{{__('New discount')}} <li>
</a> <a href="{{route('admin.discount.index')}}">
</li> {{__('Discounts list')}}
</ul> </a>
</li> </li>
<li id="questions-li"> <li>
<a href="{{route('admin.question.index')}}"> <a href="{{route('admin.discount.create')}}">
<i class="fa fa-question"></i> {{__('New discount')}}
{{__('Questions')}} </a>
</a> </li>
</li> </ul>
<li id="tickets-li"> </li>
<a href="{{route('admin.ticket.index')}}"> @endif
<i class="fa fa-envelope"></i> @if(auth()->user()->hasAnyAccess('question'))
{{__('Tickets')}} <li id="questions-li">
</a> <a href="{{route('admin.question.index')}}">
</li> <i class="fa fa-question"></i>
<li> {{__('Questions')}}
<a> </a>
<i class="fa fa-cubes"></i> </li>
{{__('Product categories')}} @endif
</a> @if(auth()->user()->hasAnyAccess('ticket'))
<ul> <li id="tickets-li">
<li> <a href="{{route('admin.ticket.index')}}">
<a href="{{route('admin.cat.index')}}"> <i class="fa fa-envelope"></i>
{{__('Product categories list')}} {{__('Tickets')}}
</a> </a>
</li> </li>
<li> @endif
<a href="{{route('admin.cat.create')}}"> @if(auth()->user()->hasAnyAccess('cat'))
{{__('New Product category')}} <li>
</a> <a>
</li> <i class="fa fa-cubes"></i>
<li> {{__('Product categories')}}
<a href="{{route('admin.cat.sort')}}"> </a>
{{__('Product categories node')}} <ul>
</a> <li>
</li> <a href="{{route('admin.cat.index')}}">
</ul> {{__('Product categories list')}}
</li> </a>
<li> </li>
<a> <li>
<i class="fa fa-truck"></i> <a href="{{route('admin.cat.create')}}">
{{__('Transports')}} {{__('New Product category')}}
</a> </a>
<ul> </li>
<li> <li>
<a href="{{route('admin.transport.index')}}"> <a href="{{route('admin.cat.sort')}}">
{{__('Transports list')}} {{__('Product categories node')}}
</a> </a>
</li> </li>
<li> </ul>
<a href="{{route('admin.transport.create')}}"> </li>
{{__('New transport')}} @endif
</a> @if(auth()->user()->hasAnyAccess('transport'))
</li>
</ul>
</li>
<li>
<a >
<i class="fa fa-project-diagram"></i>
{{__("Properties meta")}}
</a>
<ul>
<li>
<a href="{{route('admin.props.index')}}">
{{__("Properties list")}}
</a>
</li>
<li>
<a href="{{route('admin.props.create')}}">
{{__("New Property")}}
</a>
</li>
</ul>
</li> <li>
<a>
<i class="fa fa-truck"></i>
{{__('Transports')}}
</a>
<ul>
<li>
<a href="{{route('admin.transport.index')}}">
{{__('Transports list')}}
</a>
</li>
<li>
<a href="{{route('admin.transport.create')}}">
{{__('New transport')}}
</a>
</li>
</ul>
</li>
@endif
@if(auth()->user()->hasAnyAccess('props'))
<li>
<a>
<i class="fa fa-project-diagram"></i>
{{__("Properties meta")}}
</a>
<ul>
<li>
<a href="{{route('admin.props.index')}}">
{{__("Properties list")}}
</a>
</li>
<li>
<a href="{{route('admin.props.create')}}">
{{__("New Property")}}
</a>
</li>
</ul>
</li>
@endif
</ul> </ul>
</li> </li>
<li id="cms" class="main-nav"> <li id="cms" class="main-nav">
<a> <a>
<i class="fab fa-internet-explorer"></i> <i class="fab fa-internet-explorer"></i>
@ -170,217 +187,243 @@
{{__("Website contents")}} {{__("Website contents")}}
</a> </a>
<ul> <ul>
<li id="posts-li"> @if(auth()->user()->hasAnyAccess('post'))
<a> <li id="posts-li">
<i class="fa fa-bullhorn"></i> <a>
{{__('Post')}} <i class="fa fa-bullhorn"></i>
</a> {{__('Post')}}
<ul> </a>
<li> <ul>
<a href="{{route('admin.post.index')}}"> <li>
{{__('Post list')}} <a href="{{route('admin.post.index')}}">
</a> {{__('Post list')}}
</li> </a>
<li> </li>
<a href="{{route('admin.post.create')}}"> <li>
{{__('New Post')}} <a href="{{route('admin.post.create')}}">
</a> {{__('New Post')}}
</li> </a>
</ul> </li>
</li> </ul>
<li> </li>
<a> @endif
<i class="fa fa-book"></i> @if(auth()->user()->hasAnyAccess('category'))
{{__('Categories')}} <li>
</a> <a>
<ul> <i class="fa fa-book"></i>
<li> {{__('Categories')}}
<a href="{{route('admin.category.index')}}"> </a>
{{__('Categories list')}} <ul>
</a> <li>
</li> <a href="{{route('admin.category.index')}}">
<li> {{__('Categories list')}}
<a href="{{route('admin.category.create')}}"> </a>
{{__('New category')}} </li>
</a> <li>
</li> <a href="{{route('admin.category.create')}}">
<li> {{__('New category')}}
<a href="{{route('admin.category.sort')}}"> </a>
{{__('Categories node')}} </li>
</a> <li>
</li> <a href="{{route('admin.category.sort')}}">
</ul> {{__('Categories node')}}
</a>
</li>
</ul>
</li> </li>
@endif
@if(auth()->user()->hasAnyAccess('gallery'))
<li>
<a>
<i class="fa fa-images"></i>
{{__("Galleries")}}
</a>
<ul>
<li>
<a href="{{route('admin.gallery.all')}}">
{{-- <i class="fa fa-list-alt"></i> --}}
{{__("Gallery list")}}
</a>
</li>
<li>
<a href="{{route('admin.gallery.create')}}">
{{-- <i class="fa fa-plus-square"></i>--}}
{{__("New gallery")}}
</a>
</li>
</ul>
<li> </li>
<a > @endif
<i class="fa fa-images"></i> @if(auth()->user()->hasAnyAccess('clip'))
{{__("Galleries")}} <li>
</a> <a>
<ul> <i class="fa fa-file-video"></i>
<li> {{__("Video clips")}}
<a href="{{route('admin.gallery.all')}}"> </a>
{{-- <i class="fa fa-list-alt"></i> --}} <ul>
{{__("Gallery list")}} <li>
</a> <a href="{{route('admin.clip.index')}}">
</li> {{__("Video list")}}
<li> </a>
<a href="{{route('admin.gallery.create')}}"> </li>
{{-- <i class="fa fa-plus-square"></i>--}} <li>
{{__("New gallery")}} <a href="{{route('admin.clip.create')}}">
</a> {{__("New Video")}}
</li> </a>
</ul> </li>
</ul>
</li> </li>
<li> @endif
<a > @if(auth()->user()->hasAnyAccess('adv'))
<i class="fa fa-file-video"></i> <li>
{{__("Video clips")}} <a>
</a> <i class="fa fa-atom"></i>
<ul> {{__("Advertise")}}
<li> </a>
<a href="{{route('admin.clip.index')}}"> <ul>
{{__("Video list")}} <li>
</a> <a href="{{route('admin.adv.index')}}">
</li> {{__("Advertise list")}}
<li> </a>
<a href="{{route('admin.clip.create')}}"> </li>
{{__("New Video")}} <li>
</a> <a href="{{route('admin.adv.create')}}">
</li> {{__("New Advertise")}}
</ul> </a>
</li>
</ul>
</li> </li>
<li> @endif
<a > @if(auth()->user()->hasAnyAccess('menu'))
<i class="fa fa-atom"></i> <li>
{{__("Advertise")}} <a href="{{route('admin.menu.index')}}">
</a> <i class="fa fa-list-alt"></i>
<ul> {{__("Menus")}}
<li> </a>
<a href="{{route('admin.adv.index')}}"> </li>
{{__("Advertise list")}} @endif
</a> @if(auth()->user()->hasAnyAccess('props'))
</li> <li>
<li> <a>
<a href="{{route('admin.adv.create')}}"> <i class="fa fa-file-image"></i>
{{__("New Advertise")}} {{__("Slider")}}
</a> </a>
</li> <ul>
</ul> <li>
<a href="{{route('admin.slider.index')}}">
{{__("Slider list")}}
</a>
</li>
<li>
<a href="{{route('admin.slider.create')}}">
{{__("New Slider")}}
</a>
</li>
</ul>
</li> </li>
<li> @endif
<a href="{{route('admin.menu.index')}}" > @if(auth()->user()->hasAnyAccess('poll'))
<i class="fa fa-list-alt"></i> <li>
{{__("Menus")}} <a>
</a> <i class="fa fa-vote-yea"></i>
</li> {{__("Poll")}}
<li> </a>
<a > <ul>
<i class="fa fa-file-image"></i> <li>
{{__("Slider")}} <a href="{{route('admin.poll.index')}}">
</a> {{__("Polls list")}}
<ul> </a>
<li> </li>
<a href="{{route('admin.slider.index')}}"> <li>
{{__("Slider list")}} <a href="{{route('admin.poll.create')}}">
</a> {{__("New Poll")}}
</li> </a>
<li> </li>
<a href="{{route('admin.slider.create')}}"> </ul>
{{__("New Slider")}}
</a>
</li>
</ul>
</li> </li>
<li> @endif
<a >
<i class="fa fa-vote-yea"></i>
{{__("Poll")}}
</a>
<ul>
<li>
<a href="{{route('admin.poll.index')}}">
{{__("Polls list")}}
</a>
</li>
<li>
<a href="{{route('admin.poll.create')}}">
{{__("New Poll")}}
</a>
</li>
</ul>
</li>
</ul> </ul>
</li> </li>
<li> @if(auth()->user()->hasAnyAccess('comment'))
<a href="{{route('admin.comment.index')}}"> <li>
<i class="fa fa-comments"></i> <a href="{{route('admin.comment.index')}}">
{{__('Comments')}} <i class="fa fa-comments"></i>
</a> {{__('Comments')}}
</li> </a>
<li> </li>
<a href="{{route('admin.setting.index')}}"> @endif
<i class="fa fa-cogs"></i> @if(auth()->user()->hasAnyAccess('setting'))
{{__("Setting")}} <li>
</a> <a href="{{route('admin.setting.index')}}">
</li> <i class="fa fa-cogs"></i>
<li> {{__("Setting")}}
<a href="{{route('admin.attachment.index')}}"> </a>
<i class="fa fa-paperclip"></i> </li>
{{__("Attachments")}} @endif
</a> @if(auth()->user()->hasAnyAccess('attachment'))
</li> <li>
<li> <a href="{{route('admin.attachment.index')}}">
<a href="{{route('admin.contact.index')}}"> <i class="fa fa-paperclip"></i>
<i class="fa fa-envelope"></i> {{__("Attachments")}}
{{__("Contact us")}} </a>
</a> </li>
</li> @endif
<li> @if(auth()->user()->hasAnyAccess('contact'))
<a href="{{route('admin.logs.index')}}"> <li>
<i class="fa fa-list-alt"></i> <a href="{{route('admin.contact.index')}}">
{{__('Logs')}} <i class="fa fa-envelope"></i>
</a> {{__("Contact us")}}
</li> </a>
</li>
<li> @endif
<a > @if(auth()->user()->hasAnyAccess('logs'))
<i class="fa fa-users"></i> <li>
{{__("Users")}} <a href="{{route('admin.logs.index')}}">
</a> <i class="fa fa-list-alt"></i>
<ul> {{__('Logs')}}
<li> </a>
<a href="{{route('admin.user.all')}}"> </li>
{{-- <i class="fa fa-list-alt"></i> --}} @endif
{{__("Users list")}} @if(auth()->user()->hasRole('super-admin'))
</a> <li>
</li> <a>
<li> <i class="fa fa-users"></i>
<a href="{{route('admin.user.create')}}"> {{__("Users")}}
{{-- <i class="fa fa-plus-square"></i>--}} </a>
{{__("New user")}} <ul>
</a> <li>
</li> <a href="{{route('admin.user.all')}}">
</ul> {{-- <i class="fa fa-list-alt"></i> --}}
{{__("Users list")}}
</a>
</li>
<li>
<a href="{{route('admin.user.create')}}">
{{-- <i class="fa fa-plus-square"></i>--}}
{{__("New user")}}
</a>
</li>
</ul>
</li> </li>
@endif
@guest @guest
<li > <li>
<a href="{{ route('login') }}"> <i class="fa fas fa-sign-in"></i> {{ __('Login') }}</a> <a href="{{ route('login') }}"> <i class="fa fas fa-sign-in"></i> {{ __('Login') }}</a>
</li> </li>
@if (Route::has('register')) @if (Route::has('register'))
<li > <li>
<a href="{{ route('register') }}"> <i class="fa fas fa-sign-in"></i> {{ __('Register') }}</a> <a href="{{ route('register') }}"> <i class="fa fas fa-sign-in"></i> {{ __('Register') }}</a>
</li> </li>
@endif @endif

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Shopping card")}} - {{__("Shopping card")}} -
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{$cat->name}} - {{$cat->name}} -
@endsection @endsection
@ -42,7 +42,7 @@
@endif @endif
> >
@include('website.sidebar') @include('website.layout.sidebar')
</meta-search> </meta-search>
</aside> </aside>
</div> </div>
@ -50,7 +50,7 @@
<div class="list-grid"> <div class="list-grid">
@foreach($products as $pro) @foreach($products as $pro)
<div class="item"> <div class="item">
@include('website.component.pro',['p' => $pro]) @include('website.component.product-box',['p' => $pro])
</div> </div>
@endforeach @endforeach
</div> </div>

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Compare products")}} - {{__("Compare products")}} -
@endsection @endsection

@ -0,0 +1,94 @@
<footer>
<div class="container">
<div class="row">
<div class="col-md-3">
<h3>
{{\App\Helpers\getSettingCategory('footer1')->name}}
</h3>
<ul>
@foreach(\App\Helpers\getSettingCategory('footer1')->posts as $p)
<li>
<a href="{{route('n.show',$p->slug)}}">
{{$p->title}}
</a>
</li>
@endforeach
</ul>
</div>
<div class="col-md-3">
<h3>
{{\App\Helpers\getSettingCategory('footer2')->name}}
</h3>
<ul>
@foreach(\App\Helpers\getSettingCategory('footer2')->posts as $p)
<li>
<a href="{{route('n.show',$p->slug)}}">
{{$p->title}}
</a>
</li>
@endforeach
</ul>
</div>
<div class="col-md-3">
<h3>
اطلاعات تماس
</h3>
<p class="text-secondary">
افراد گروه سوم از اهمیت به پایان رساندن آگاه هستند. آنها با تفکر منطقی، طرحی روشن ارائه می‌کنند. آنها نه تنها برای پایان دادن به پروژه‌ی خود در آینده برنامه ریزی می‌کنند، بلکه به تمام نتایج و عواقب اجرای آن برنامه هم می‌اندیشند. این افراد کسانی هستند که هنر به پایان رساندن را می‌دانند.
</p>
</div>
<div class="col-md-3">
<h3>
نمادها
</h3>
<div class="text-center namad">
{!! \App\Helpers\getSetting('footer3') !!}
</div>
</div>
<div class="col-md-12 pb-4">
<hr>
<div class="p4 text-center social">
@if(trim(\App\Helpers\getSetting('soc_in')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_in')}}">
<i class="fab fa-instagram"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_tg')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_tg')}}">
<i class="fab fa-telegram"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_wp')) != '')
<a target="_blank"
href="https://api.whatsapp.com/send/?phone={{urlencode(\App\Helpers\getSetting('soc_wp'))}}&text=%D8%A8%D8%A7%20%D8%B3%D9%84%D8%A7%D9%85%0A%D8%A7%D8%B2%20%D8%B3%D8%A7%DB%8C%D8%AA%20%D8%A8%D8%B1%D8%A7%DB%8C%20%D8%B3%D9%81%D8%A7%D8%B1%D8%B4%20%D9%88%20%D9%BE%D8%B4%D8%AA%DB%8C%D8%A8%D8%A7%D9%86%DB%8C%20%D8%AA%D9%85%D8%A7%D8%B3%20%D9%85%DB%8C%DA%AF%DB%8C%D8%B1%D9%85&app_absent=0">
<i class="fab fa-whatsapp"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_tw')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_tw')}}">
<i class="fab fa-twitter"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_yt')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_yt')}}">
<i class="fab fa-youtube"></i>
</a>
@endif
</div>
<hr>
<div class="text-center text-black-50">
{{\App\Helpers\getSetting('copyright')}}
&copy; {{date('Y')}}
</div>
</div>
</div>
</div>
</footer>
<input type="hidden" id="fav-toggle" value="{{route('fav.toggle','')}}">
@yield('js-content')
<script src="{{asset('js/theme.js')}}" defer></script>
@include('component.lang')
</body>
</html>

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="{{config('app.locale')}}">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" <meta name="viewport"
@ -11,10 +11,10 @@
<meta name="robots" content="follow,index"> <meta name="robots" content="follow,index">
{!! \App\Helpers\remTitle( SEO::generate()) !!} {!! \App\Helpers\remTitle( SEO::generate()) !!}
<title> <title>
@yield('title') @yield('title')
{{config('app.name')}} {{config('app.name')}}
</title> </title>
<link rel="stylesheet" href="{{asset('css/theme.css')}}"> <link rel="stylesheet" href="{{asset('css/theme.css')}}">
</head> </head>
@ -106,7 +106,7 @@
data-ajax="{{route('search.ajax')}}" class="form-control" placeholder="جستجو در محصولات..." data-ajax="{{route('search.ajax')}}" class="form-control" placeholder="جستجو در محصولات..."
aria-label="search" aria-label="search"
aria-describedby="addon-wrapping"> aria-describedby="addon-wrapping">
<span class="input-group-text" id="addon-wrapping"> <span class="input-group-text" id="addon-wrapping">
<i class="icofont-search bg-custom2 text-light rounded-circle"></i> <i class="icofont-search bg-custom2 text-light rounded-circle"></i>
</span> </span>
</div> </div>
@ -141,113 +141,3 @@
</section> </section>
@include('website.component.navbar') @include('website.component.navbar')
<div id="main-container" class="@yield('body-class')">
<div id="app">
@yield('content')
</div>
</div>
{{--<a id="card-info" @if(\App\Helpers\cardCount() == 0) style="display: none" @endif href="{{route('card.show')}}">--}}
{{-- <button type="button" class="btn btn-primary position-relative">--}}
{{-- <img src="{{asset('images/basket.svg')}}" class="basket-icon" alt="add to card">--}}
{{-- <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">--}}
{{-- <b id="card-count">--}}
{{-- {{\App\Helpers\cardCount()}}--}}
{{-- </b>--}}
{{-- </span>--}}
{{-- </button>--}}
{{--</a>--}}
<footer>
<div class="container">
<div class="row">
<div class="col-md-3">
<h3>
{{\App\Helpers\getSettingCategory('footer1')->name}}
</h3>
<ul>
@foreach(\App\Helpers\getSettingCategory('footer1')->posts as $p)
<li>
<a href="{{route('n.show',$p->slug)}}">
{{$p->title}}
</a>
</li>
@endforeach
</ul>
</div>
<div class="col-md-3">
<h3>
{{\App\Helpers\getSettingCategory('footer2')->name}}
</h3>
<ul>
@foreach(\App\Helpers\getSettingCategory('footer2')->posts as $p)
<li>
<a href="{{route('n.show',$p->slug)}}">
{{$p->title}}
</a>
</li>
@endforeach
</ul>
</div>
<div class="col-md-3">
<h3>
اطلاعات تماس
</h3>
<p class="text-secondary">
افراد گروه سوم از اهمیت به پایان رساندن آگاه هستند. آنها با تفکر منطقی، طرحی روشن ارائه می‌کنند. آنها نه تنها برای پایان دادن به پروژه‌ی خود در آینده برنامه ریزی می‌کنند، بلکه به تمام نتایج و عواقب اجرای آن برنامه هم می‌اندیشند. این افراد کسانی هستند که هنر به پایان رساندن را می‌دانند.
</p>
</div>
<div class="col-md-3">
<h3>
نمادها
</h3>
<div class="text-center namad">
{!! \App\Helpers\getSetting('footer3') !!}
</div>
</div>
<div class="col-md-12 pb-4">
<hr>
<div class="p4 text-center social">
@if(trim(\App\Helpers\getSetting('soc_in')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_in')}}">
<i class="fab fa-instagram"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_tg')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_tg')}}">
<i class="fab fa-telegram"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_wp')) != '')
<a target="_blank"
href="https://api.whatsapp.com/send/?phone={{urlencode(\App\Helpers\getSetting('soc_wp'))}}&text=%D8%A8%D8%A7%20%D8%B3%D9%84%D8%A7%D9%85%0A%D8%A7%D8%B2%20%D8%B3%D8%A7%DB%8C%D8%AA%20%D8%A8%D8%B1%D8%A7%DB%8C%20%D8%B3%D9%81%D8%A7%D8%B1%D8%B4%20%D9%88%20%D9%BE%D8%B4%D8%AA%DB%8C%D8%A8%D8%A7%D9%86%DB%8C%20%D8%AA%D9%85%D8%A7%D8%B3%20%D9%85%DB%8C%DA%AF%DB%8C%D8%B1%D9%85&app_absent=0">
<i class="fab fa-whatsapp"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_tw')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_tw')}}">
<i class="fab fa-twitter"></i>
</a>
@endif
@if(trim(\App\Helpers\getSetting('soc_yt')) != '')
<a target="_blank" href="{{\App\Helpers\getSetting('soc_yt')}}">
<i class="fab fa-youtube"></i>
</a>
@endif
</div>
<hr>
<div class="text-center text-black-50">
{{\App\Helpers\getSetting('copyright')}}
&copy; {{date('Y')}}
</div>
</div>
</div>
</div>
</footer>
<input type="hidden" id="fav-toggle" value="{{route('fav.toggle','')}}">
@yield('js-content')
<script src="{{asset('js/theme.js')}}" defer></script>
@include('component.lang')
</body>
</html>

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{$title}} {{$title}}
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Customer profile")}} - {{__("Customer profile")}} -
@endsection @endsection
@ -534,7 +534,7 @@
@else @else
@foreach(auth('customer')->user()->products as $p) @foreach(auth('customer')->user()->products as $p)
<div class="col-md-3"> <div class="col-md-3">
@include('website.component.pro',['p' => $p]) @include('website.component.product-box',['p' => $p])
</div> </div>
@endforeach @endforeach
@endif @endif

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('content') @section('content')
<section id="index-top"> <section id="index-top">
<div class="container"> <div class="container">

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Invoice")}} - {{$invoice->id}} {{__("Invoice")}} - {{$invoice->id}}
@endsection @endsection

@ -0,0 +1,9 @@
@include('website.component.header')
<div id="main-container" class="@yield('body-class')">
<div id="app">
@yield('content')
</div>
</div>
@include('website.component.footer')

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{$post->title}} - {{$post->title}} -
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{$title}} - {{$title}} -
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{$pro->name}} - {{$pro->name}} -
@endsection @endsection
@ -368,7 +368,7 @@
<div class="owl-carousel owl-sq"> <div class="owl-carousel owl-sq">
@foreach ($cat->products()->where('stock_quantity','>', 0)->limit(10)->get() as $p) @foreach ($cat->products()->where('stock_quantity','>', 0)->limit(10)->get() as $p)
<div class="item "> <div class="item ">
@include('website.component.pro',['p' => $p]) @include('website.component.product-box',['p' => $p])
</div> </div>
@endforeach @endforeach
</div> </div>

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Products")}} - {{__("Products")}} -
@endsection @endsection
@ -22,13 +22,13 @@
</div> </div>
</div> </div>
<div class="col-xl-3 col-md-4"> <div class="col-xl-3 col-md-4">
@include('website.sidebar') @include('website.layout.sidebar')
</div> </div>
<div class="col-xl-9 col-md-8"> <div class="col-xl-9 col-md-8">
<div class="list-grid"> <div class="list-grid">
@foreach($products as $pro) @foreach($products as $pro)
<div class="item"> <div class="item">
@include('website.component.pro',['p' => $pro]) @include('website.component.product-box',['p' => $pro])
</div> </div>
@endforeach @endforeach
</div> </div>

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Signup or Login")}} - {{__("Signup or Login")}} -
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Signup or Login")}} - {{__("Signup or Login")}} -
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
{{__("Customer profile")}} - {{__("Customer profile")}} -
@endsection @endsection

@ -1,4 +1,4 @@
@extends('website.layout') @extends('website.layout.layout')
@section('title') @section('title')
کدهای رهگیری - کدهای رهگیری -
@endsection @endsection

Loading…
Cancel
Save