Skip to content

dashboard-designed-add-card #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 78 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
0564f90
dashboard-designed-add-card
Jhunriz Aug 31, 2023
2e697fa
side_navigation_designed_add_icon
Jhunriz Sep 1, 2023
d0f851d
add_user_table_and_modal
Jhunriz Sep 1, 2023
fdf9a3e
qr-code-product-done
Jhunriz Sep 4, 2023
bb109c6
organize-forms user and products
Jhunriz Sep 4, 2023
11755ae
organize form
Jhunriz Sep 4, 2023
cb2c5bc
add-speed-dial
Jhunriz Sep 4, 2023
84e02cc
add-speed-dial
Jhunriz Sep 4, 2023
e5fe2f9
add-barGraph-and-pieGraph
Jhunriz Sep 4, 2023
78e8dc8
add-alert-snackbar
Jhunriz Sep 5, 2023
b3d5425
add-breadcrumbs
Jhunriz Sep 5, 2023
ec92d47
add-tabPanel
Jhunriz Sep 5, 2023
f84d3cf
add-barcode
Jhunriz Sep 5, 2023
1e555ff
add-design-for-qr-scanner-and-barcode
Jhunriz Sep 6, 2023
f1a1306
populate_data
Jhunriz Sep 6, 2023
5ba6beb
arrange-barcode-qr-code
Jhunriz Sep 6, 2023
7bca203
qr-code-and-barcode-designed
Jhunriz Sep 6, 2023
ea87492
sidenav-updated
Jhunriz Sep 6, 2023
135ea6a
update-for-the-inventory-management
Jhunriz Sep 7, 2023
838dc04
barcode-download-and-print-done
Jhunriz Sep 7, 2023
10cb5c0
download-and-print-done
Jhunriz Sep 7, 2023
5f19590
updated-done-download
Jhunriz Sep 7, 2023
0e8b07e
updated-barcode-qrcode
Jhunriz Sep 7, 2023
9aa0278
updated-barcode-download
Jhunriz Sep 7, 2023
3ed8242
update-user-settings
Jhunriz Sep 8, 2023
e784841
darkmode-added
Jhunriz Sep 8, 2023
9a82dc7
darkmode-updated
Jhunriz Sep 8, 2023
5a09cdc
darkMode-added
Jhunriz Sep 11, 2023
47db131
dark-mode/lightmode-done
Jhunriz Sep 11, 2023
16cb09e
other-update
Jhunriz Sep 11, 2023
bd89ef5
arrange this user settings
Jhunriz Sep 12, 2023
078a272
position&location added
Jhunriz Sep 12, 2023
c677f9c
update positopn& company
Jhunriz Sep 12, 2023
49343dd
qr-code scanner
Jhunriz Sep 13, 2023
e33c533
qr-code-scanner
Jhunriz Sep 13, 2023
3f6ba13
add-qr-code-scanner
Jhunriz Sep 13, 2023
ab006bd
fixing button
Jhunriz Sep 13, 2023
3fb4fd0
copybutton-done
Jhunriz Sep 14, 2023
93bf4ff
barcode-scanner-done
Jhunriz Sep 14, 2023
78259c8
update_barcode
Jhunriz Sep 14, 2023
731f82e
other-update
Jhunriz Sep 14, 2023
9496f78
qr-and-barcode make responsive-done
Jhunriz Sep 14, 2023
11da080
mobile-responsive-done
Jhunriz Sep 14, 2023
e84d614
update-barcode-qr-code
Jhunriz Sep 14, 2023
132b2f3
setting-user-have error
Jhunriz Sep 14, 2023
2df7b0d
settings-bug-done
Jhunriz Sep 15, 2023
98cfa81
add-icon-pages
Jhunriz Sep 15, 2023
119e479
navbar-active-icon-avatar
Jhunriz Sep 15, 2023
6c8e0c3
active-icon-user-updatte
Jhunriz Sep 15, 2023
5ee0c39
update-custom-speedial
Jhunriz Sep 15, 2023
d3f20f7
update-user-tabs
Jhunriz Sep 15, 2023
00300fb
library-setting-done
Jhunriz Sep 15, 2023
b15c260
update-library
Jhunriz Sep 15, 2023
8c5f15e
add-notification
Jhunriz Sep 15, 2023
6c0cf7c
make-stactbar-responsive
Jhunriz Sep 18, 2023
4bea7b3
product-mobile-responsive
Jhunriz Sep 18, 2023
3af673d
storage is mobile-responsive
Jhunriz Sep 18, 2023
623135e
qr-responsive
Jhunriz Sep 18, 2023
3db0962
change-icon-at-side-notificationnav-and-
Jhunriz Sep 19, 2023
c32d37b
admin-setting-page-edited
Jhunriz Sep 19, 2023
c08669b
add-font-family
Jhunriz Sep 19, 2023
de78a35
update-qr-generated-add-data
Jhunriz Sep 19, 2023
4f57d3a
update generateqr into generator
koykoy027 Sep 20, 2023
70fb292
user-settings-back-the-design-into-default
Jhunriz Sep 20, 2023
8d4efdd
adjustment-design
Jhunriz Sep 20, 2023
a57d591
add-seeder-and-migration
Jhunriz Sep 20, 2023
e40b419
asdfasfa
Jhunriz Sep 21, 2023
3f95954
Merge branch '3-inventory-management-frontend' of https://github.com/…
Jhunriz Sep 21, 2023
71a7be4
add-form-modal-add-user-in-management
Jhunriz Sep 21, 2023
68c16f8
product-modal-form-designed
Jhunriz Sep 21, 2023
ea51d62
product-user-modal-create.jsx created
Jhunriz Sep 21, 2023
5249ad6
add-records-modal-created
Jhunriz Sep 21, 2023
ec96adb
update
Jhunriz Sep 21, 2023
1aa3686
gender-settings-done
Jhunriz Sep 21, 2023
d8172e3
proper naming at library setting
Jhunriz Sep 21, 2023
1c41fa9
asdfafadsf
Jhunriz Sep 21, 2023
a0c0d44
adjustment of the mobile view
Jhunriz Sep 23, 2023
a5aa846
create-migration-seeder-model
Jhunriz Sep 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/Http/Controllers/Library/SettingController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Http\Controllers\library;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Inertia\Inertia;

class SettingController extends Controller
{
public function index()
{
return Inertia::render('Admin/Library/Settings/Index');
}
}
17 changes: 17 additions & 0 deletions app/Http/Controllers/Management/ProductManagementController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace App\Http\Controllers\Management;

use App\Http\Controllers\Controller;
use App\Models\Product;
use Illuminate\Http\Request;
use Inertia\Inertia;

class ProductManagementController extends Controller
{
public function index()
{
$product = Product::all();
return Inertia::render('Admin/Management/Products/Index', compact('product'));
}
}
15 changes: 15 additions & 0 deletions app/Http/Controllers/Management/UserManagementController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Http\Controllers\Management;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Inertia\Inertia;

class UserManagementController extends Controller
{
public function index()
{
return Inertia::render('Admin/Management/User/Index');
}
}
4 changes: 4 additions & 0 deletions app/Http/Controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public function edit(Request $request): Response
]);
}

public function show()
{
return Inertia::render('Profile/Show');
}
/**
* Update the user's profile information.
*/
Expand Down
15 changes: 15 additions & 0 deletions app/Http/Controllers/Qr/GenerateQrController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Http\Controllers\Qr;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Inertia\Inertia;

class GenerateQrController extends Controller
{
public function index()
{
return Inertia::render('Admin/Qr/GenerateQr/Index');
}
}
15 changes: 15 additions & 0 deletions app/Http/Controllers/Qr/QrController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Http\Controllers\Qr;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Inertia\Inertia;

class QrController extends Controller
{
public function index()
{
return Inertia::render('Admin/Qr/Index');
}
}
15 changes: 15 additions & 0 deletions app/Http/Controllers/Storage/StorageController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Http\Controllers\Storage;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Inertia\Inertia;

class StorageController extends Controller
{
public function index()
{
return Inertia::render('Admin/Storage/Index');
}
}
11 changes: 11 additions & 0 deletions app/Models/Product.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
use HasFactory;
}
11 changes: 11 additions & 0 deletions app/Models/Storage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Storage extends Model
{
use HasFactory;
}
31 changes: 31 additions & 0 deletions database/migrations/2023_09_20_071116_create_products_table.php
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('products', function (Blueprint $table) {
$table->id();
$table->string('productName');
$table->string('productId');
$table->string('itemName');
$table->boolean('status')->default(true); // Default to active
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('products');
}
};
31 changes: 31 additions & 0 deletions database/migrations/2023_09_23_125944_create_storages_table.php
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('storages', function (Blueprint $table) {
$table->id();
$table->string('productName');
$table->integer('productId');
$table->string('itemName');
$table->boolean('status')->default(true);
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('storages');
}
};
17 changes: 13 additions & 4 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ public function run(): void
{
// \App\Models\User::factory(10)->create();

// \App\Models\User::factory()->create([
// 'name' => 'Test User',
// 'email' => '[email protected]',
// ]);
\App\Models\User::factory()->create([
'name' => 'Jhunriz',
'email' => '[email protected]',
'password' => '123456789'
]);

$this->call([
ProductsTableSeeder::class,
]);

$this->call([
StorageTableSeeder::class,
]);
}
}
34 changes: 34 additions & 0 deletions database/seeders/ProductsTableSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace Database\Seeders;

use App\Models\Product;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

use Faker\Factory as Faker;

class ProductsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run()

{
for ($i = 0; $i < 100; $i++) {
Product::create(['productName' => fake()->word(), 'productId' => fake()->randomNumber(), 'itemName' => fake()->word(), "status" => true]);
}



// \App\Models\User::factory()->create([
// 'productName' => 'Product 1',
// 'productId' => 'PROD001',
// 'itemName' => 'Item 1',
// 'status' => true,
// ]);
}
}
25 changes: 25 additions & 0 deletions database/seeders/StorageTableSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Database\Seeders;

use App\Models\Storage;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class StorageTableSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
for ($i = 0; $i < 10; $i++) {
DB::table('storages')->insert([
'productName' => \Faker\Factory::create()->word(),
'productId' => \Faker\Factory::create()->randomNumber(),
'itemName' => \Faker\Factory::create()->word(),
'status' => true,
]);
}
}
}
Loading