-
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
f90810a
commit 46c6b8c
Showing
13 changed files
with
308 additions
and
32 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
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,12 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Card extends Model | ||
{ | ||
use HasFactory; | ||
protected $fillable = ['user_id', 'product_id', 'product_qty', 'product_price']; | ||
} |
31 changes: 31 additions & 0 deletions
31
database/migrations/2024_08_04_020350_create_cards_table.php
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,31 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('cards', function (Blueprint $table) { | ||
$table->id(); | ||
$table->unsignedBigInteger('user_id'); | ||
$table->unsignedBigInteger('product_id'); | ||
$table->integer('product_qty'); | ||
$table->decimal('product_price', 8, 2); // Make sure this matches your actual use case | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('cards'); | ||
} | ||
}; |
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
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
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,49 @@ | ||
@extends('userTemp.layout.layout') | ||
|
||
@section('main') | ||
<style> | ||
.txl { | ||
text-align: left; | ||
} | ||
</style> | ||
<!-- fashion section start --> | ||
<div class="fashion_section" style="margin-top:10px"> | ||
<div id="electronic_main_slider" class="carousel slide" data-ride="carousel"> | ||
<div class="carousel-inner"> | ||
<div class="carousel-item active"> | ||
<div class="container"> | ||
<h1 class="fashion_taital"> USER </h1> | ||
<div class="fashion_section_2"> | ||
|
||
<div class="row"> | ||
<!-- Display the current product details --> | ||
|
||
<div class="col-lg-3 col-sm-3"> | ||
<div class="box_main"> | ||
<ul> | ||
|
||
<li><a href="{{route('userProfile')}}">Dashboard</a></li> | ||
<li><a href="{{route('pendingOrder')}}">Pending Order</a></li> | ||
<li><a href="{{route('userHistory')}}">History</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-8 col-sm-4"> | ||
<div class="box_main"> | ||
@yield('userProfile') | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
@endsection |
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,8 @@ | ||
@extends('userTemp.layout.user') | ||
|
||
@section('userProfile') | ||
|
||
|
||
<h4>Pending Order</h4> | ||
|
||
@endsection |
Oops, something went wrong.