Skip to content

Commit

Permalink
optimized ui/ux
Browse files Browse the repository at this point in the history
fixed seeder
  • Loading branch information
A1Gard committed Sep 4, 2024
1 parent 5ac382a commit f634f41
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 7 deletions.
5 changes: 4 additions & 1 deletion database/seeders/CustomerSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\State;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;

class CustomerSeeder extends Seeder
{
Expand All @@ -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();
Expand All @@ -25,7 +28,7 @@ public function run(): void
'zip' => rand(12345, 54321),
'lat' => $c->lat,
'lng' => $c->lng,
'address' => 'some address',
'address' =>$faker->address,
]);
}
}
Expand Down
9 changes: 9 additions & 0 deletions database/seeders/PartSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ public function run(): void
$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();


// -------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions resources/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
2 changes: 1 addition & 1 deletion resources/lang/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
"Message": "پیام",
"Message replay": "پاسخ پیام",
"Message...": "پیام...",
"Mobile": "شماره همراه",
"Mobile": "موبایل",
"Model": "ماژول",
"Name": "نام",
"Name and lastname": "نام و نام‌خانوادگی",
Expand Down
4 changes: 2 additions & 2 deletions resources/sass/client.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
img{
height: 64px;
}

.tns-outer{
direction: ltr;
}
.tns-nav,button{
display: inline-block;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()}}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.LatestProducts {
padding: 3rem 0;
h1{
margin-bottom: 1rem;
font-size: 27px;
Expand Down

0 comments on commit f634f41

Please sign in to comment.