optimized ui/ux

fixed seeder
master
A1Gard 2 weeks ago
parent 5ac382ab9d
commit f634f41bcb

@ -6,6 +6,7 @@ use App\Models\Customer;
use App\Models\State;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;
class CustomerSeeder extends Seeder
{
@ -15,6 +16,8 @@ class CustomerSeeder extends Seeder
public function run(): void
{
//
$faker = Faker::create(config('app.faker_locale'));
Customer::factory(35)->create();
foreach (Customer::all() as $customer) {
$s = State::inRandomOrder()->first();
@ -25,7 +28,7 @@ class CustomerSeeder extends Seeder
'zip' => rand(12345, 54321),
'lat' => $c->lat,
'lng' => $c->lng,
'address' => 'some address',
'address' =>$faker->address,
]);
}
}

@ -179,6 +179,15 @@ class PartSeeder extends Seeder
$part->area_id = Area::where('name', 'clips-list')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'posts_page';
$part->part = 'GridPostListSidebar';
$part->area_id = Area::where('name', 'group')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------

@ -29,6 +29,7 @@ import "../views/segments/product/ProductKaren/ProductKaren.js";
import "../views/segments/posts_page/GridPostListSidebar/GridPostListSidebar.js";
import "../views/segments/post/PostSidebar/PostSidebar.js";
import "../views/segments/clips_page/ClipListGrid/ClipListGrid.js";
import "../views/segments/invoice/LianaInvoice/LianaInvoice.js";
import "../views/segments/clip/DorClip/DorClip.js";
import "../views/segments/galleries_page/GalleriesList/GalleriesList.js";
import "../views/segments/gallery/GallaryGrid/GallaryGrid.js";
@ -38,5 +39,4 @@ import "../views/segments/customer/AvisaCustomer/AvisaCustomer.js";
import "../views/segments/attachments_page/DenaAttachList/DenaAttachList.js";
import "../views/segments/attachment/AttachmentWithPreview/AttachmentWithPreview.js";
import "../views/segments/contact/MeloContact/MeloContact.js";
import "../views/segments/invoice/LianaInvoice/LianaInvoice.js";
import "../views/segments/floats/FollowUsSocial/FollowUsSocial.js";
import "../views/segments/posts_page/GridPostListSidebar/GridPostListSidebar.js";

@ -279,7 +279,7 @@
"Message": "پیام",
"Message replay": "پاسخ پیام",
"Message...": "پیام...",
"Mobile": "شماره همراه",
"Mobile": "موبایل",
"Model": "ماژول",
"Name": "نام",
"Name and lastname": "نام و نام‌خانوادگی",

@ -40,6 +40,7 @@ $xshop-shadow:2px 2px 4px #777777;
@import "../views/segments/posts_page/GridPostListSidebar/GridPostListSidebar";
@import "../views/segments/post/PostSidebar/PostSidebar";
@import "../views/segments/clips_page/ClipListGrid/ClipListGrid";
@import "../views/segments/invoice/LianaInvoice/LianaInvoice";
@import "../views/segments/clip/DorClip/DorClip";
@import "../views/segments/galleries_page/GalleriesList/GalleriesList";
@import "../views/segments/gallery/GallaryGrid/GallaryGrid";
@ -49,5 +50,4 @@ $xshop-shadow:2px 2px 4px #777777;
@import "../views/segments/attachments_page/DenaAttachList/DenaAttachList";
@import "../views/segments/attachment/AttachmentWithPreview/AttachmentWithPreview";
@import "../views/segments/contact/MeloContact/MeloContact";
@import "../views/segments/invoice/LianaInvoice/LianaInvoice";
@import "../views/segments/floats/FollowUsSocial/FollowUsSocial";
@import "../views/segments/posts_page/GridPostListSidebar/GridPostListSidebar";

@ -16,6 +16,10 @@
img{
height: 64px;
}
.tns-outer{
direction: ltr;
}
.tns-nav,button{
display: inline-block;
}

@ -4,7 +4,7 @@
{{__("Latest products")}}
</h1>
<div class="row">
@foreach(\App\Models\Product::where('status',1)->limit(4)->get() as $product)
@foreach(\App\Models\Product::where('status',1)->orderByDesc('id')->limit(4)->get() as $product)
<div class="col-lg-3 col-md-6">
<div class="product-item">
<a class="fav-btn" data-slug="{{$product->slug}}" data-is-fav="{{$product->isFav()}}"

@ -1,4 +1,5 @@
.LatestProducts {
padding: 3rem 0;
h1{
margin-bottom: 1rem;
font-size: 27px;

Loading…
Cancel
Save