-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9fe911
commit b4744a7
Showing
64 changed files
with
54,507 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use App\Models\category; | ||
use App\Models\subcategory; | ||
use App\Models\product; | ||
class ClientController extends Controller | ||
{ | ||
|
||
public function CategoryPage($id){ | ||
$category = Category::where($id)->FindOrFild()->get(); | ||
return view('userTemp.categoryPage',compact('category')); | ||
} | ||
|
||
|
||
// public function singleProduct(){ | ||
// return view('userTemp.categoryPage'); | ||
// } | ||
public function addToCart(){ | ||
return view('userTemp.singlePage'); | ||
} | ||
public function checkout(){ | ||
return view('userTemp.checkOut'); | ||
} | ||
public function userProfile(){ | ||
return view('userTemp.userProfile'); | ||
} | ||
public function newRelease(){ | ||
return view('userTemp.newRelease'); | ||
} | ||
public function todaysDeal(){ | ||
return view('userTemp.todaysDeal'); | ||
} | ||
public function customerService(){ | ||
return view('userTemp.customerService'); | ||
} | ||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use App\Models\category; | ||
use App\Models\subcategory; | ||
use App\Models\product; | ||
class HomeController extends Controller | ||
{ | ||
|
||
public function index() | ||
{ | ||
// $category = Category::where($id)->FindOrFild()->get(); | ||
return view('userTemp.home'); | ||
} | ||
|
||
|
||
public function create() | ||
{ | ||
// | ||
} | ||
|
||
|
||
public function store(Request $request) | ||
{ | ||
// | ||
} | ||
|
||
|
||
public function show(string $id) | ||
{ | ||
// | ||
} | ||
|
||
|
||
public function edit(string $id) | ||
{ | ||
// | ||
} | ||
|
||
|
||
public function update(Request $request, string $id) | ||
{ | ||
// | ||
} | ||
|
||
|
||
public function destroy(string $id) | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use App\Models\Product; | ||
// use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Illuminate\Support\Str; | ||
/** | ||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Product> | ||
*/ | ||
class ProductFactory extends Factory | ||
{ | ||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array<string, mixed> | ||
*/ | ||
protected $model = Product::class; | ||
public function definition(): array | ||
{ | ||
return [ | ||
'product_name' => $this->faker->word(), | ||
'product_short_des' => $this->faker->sentence(), | ||
'product_des' => $this->faker->paragraph(), | ||
'product_price' => $this->faker->randomFloat(2, 10, 1000), | ||
'product_category_id' => $this->faker->numberBetween(1, 10), | ||
// 'product_category_name' => $this->faker->word(), | ||
'product_subcategory_id' => $this->faker->numberBetween(1, 20), | ||
// 'product_subcategory_name' => $this->faker->word(), | ||
'product_quantity' => $this->faker->numberBetween(1, 100), | ||
'product_img' => $this->faker->imageUrl(), | ||
'slug' => function (array $attributes) { | ||
return Str::slug($attributes['product_name']); | ||
}, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Database\Seeders; | ||
|
||
use Illuminate\Database\Console\Seeds\WithoutModelEvents; | ||
use Illuminate\Database\Seeder; | ||
use App\Models\Product; | ||
class ProductSeeder extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
*/ | ||
|
||
public function run(): void | ||
{ | ||
Product::factory(50)->create(); | ||
} | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.