1
0
Fork 0

optimized blades

optimized product factory
main
A1Gard 1 year ago
parent 04ff56f2a6
commit bbca2e8a70

@ -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,

@ -29,7 +29,6 @@
"persian-datepicker": "^1.2.0", "persian-datepicker": "^1.2.0",
"alertifyjs": "^1.13.1", "alertifyjs": "^1.13.1",
"chart.js": "^3.8.2", "chart.js": "^3.8.2",
"hc-offcanvas-nav": "^6.1.5",
"x-mega-menu": "^1.2.0", "x-mega-menu": "^1.2.0",
"xzoom": "^1.0.15" "xzoom": "^1.0.15"
}, },

@ -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">

@ -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"
@ -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