Skip to content

5 need to create a simple crud #6

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 184 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 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
villanuevajoshua27 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
fb1b276
show-data-in-table-in-user-management
Jhunriz Sep 25, 2023
68bbbb9
show the data table in product
Jhunriz Sep 25, 2023
36e726d
data-show-in-table-
Jhunriz Sep 25, 2023
0f74cfd
add-data-from-database
Jhunriz Sep 25, 2023
e1c370d
responsive in add-qr-done
Jhunriz Sep 25, 2023
2f73b71
update-add-user
Jhunriz Sep 25, 2023
ddcccec
change-typography-value-into-add-account
Jhunriz Sep 25, 2023
73dd192
add-user.name in the add user
Jhunriz Sep 25, 2023
6044686
add-dialog-at-products
Jhunriz Sep 25, 2023
573b0ff
add-dialog-in-qr-items
Jhunriz Sep 25, 2023
e9e0cf2
product-dialog-responsive
Jhunriz Sep 25, 2023
a96c994
add-qr-code-dialog-responsive
Jhunriz Sep 25, 2023
6436404
responsive-revise
Jhunriz Sep 25, 2023
d6c00b3
not-finish-storing-data
Jhunriz Sep 25, 2023
3126c96
update-design-and-inserting-not-finish
Jhunriz Sep 26, 2023
4edb0b1
arrow in table fix
Jhunriz Sep 26, 2023
5d8cfba
asdfsdf
Jhunriz Sep 26, 2023
644e4a6
rename the department into branch
Jhunriz Sep 26, 2023
0702806
edit-error-done
Jhunriz Sep 26, 2023
5691eb0
change the typo-errors
Jhunriz Sep 26, 2023
11561ac
add-message-dropdownNotification
Jhunriz Sep 26, 2023
fa215c3
add message dropdown notification
Jhunriz Sep 26, 2023
907bec4
responsive was done
Jhunriz Sep 26, 2023
4382ec3
update the message design
Jhunriz Sep 26, 2023
07af415
make the badge the color to warning color
Jhunriz Sep 26, 2023
1f394e8
dropdown redesign
Jhunriz Sep 26, 2023
b9318eb
design the messagenotification
Jhunriz Sep 26, 2023
8db0066
asdfasdf
Jhunriz Sep 26, 2023
d202d50
adding of loader in mainlayout
Jhunriz Sep 26, 2023
12a06c0
chang the typography of the card in dashboard
Jhunriz Sep 26, 2023
b419c66
try the white background-navigation
Jhunriz Sep 26, 2023
1109d81
remove-console
Jhunriz Sep 26, 2023
b219cfa
add-file-upload-limit-at-25mb
Jhunriz Sep 27, 2023
a2a7076
add generate qr in add qr record folder
Jhunriz Sep 27, 2023
5e40401
management user adding was done
Jhunriz Sep 27, 2023
435b362
adding of user in database in user management
Jhunriz Sep 27, 2023
113fe8d
adding items in product management
Jhunriz Sep 28, 2023
ef6b617
adding comment in my adding
Jhunriz Sep 28, 2023
93d223a
add alert-in-product
Jhunriz Sep 28, 2023
2c88431
add alert in user
Jhunriz Sep 28, 2023
423019b
add alert message in product
Jhunriz Sep 28, 2023
da54a6f
asdfadfasf
Jhunriz Sep 28, 2023
a29ea97
make the descriptin longtext
Jhunriz Sep 28, 2023
354860d
update route of using resource
Jhunriz Sep 29, 2023
dc34fb5
adding items in add item form
Jhunriz Sep 29, 2023
fe215c1
change typography of the button located at qr
Jhunriz Sep 29, 2023
ff0f4a5
file is added at the database
Jhunriz Sep 29, 2023
11612da
not-finish-adding of qrcode
Jhunriz Sep 29, 2023
329ff3e
adding file save in database feature
Jhunriz Sep 30, 2023
a531ad2
make the arrow justify-end at all the table
Jhunriz Oct 2, 2023
91c460b
removed the loader
Jhunriz Oct 2, 2023
c86f909
arrange icon of side appbar
Jhunriz Oct 2, 2023
58d84dd
make form for the categories
Jhunriz Oct 2, 2023
3afd073
form adjustment
Jhunriz Oct 2, 2023
96f745c
create form for add category and table
Jhunriz Oct 3, 2023
646b7b6
equipment form for creating and show
Jhunriz Oct 3, 2023
f1645ce
make a adding and table for branch
Jhunriz Oct 3, 2023
70dfd7a
add-warranty-table and adding
Jhunriz Oct 3, 2023
e95a6be
make the user form and create a table
Jhunriz Oct 3, 2023
f2f1396
adding data of qrcode and table
Jhunriz Oct 3, 2023
086d287
qrcode adding and table
Jhunriz Oct 3, 2023
efc517f
arrange the mainlayout
Jhunriz Oct 4, 2023
09a2633
adjustment in dashboard adding table
Jhunriz Oct 4, 2023
8a6e787
dashboard product change into equipments
Jhunriz Oct 5, 2023
f2e1ed8
updated Equipment page
Jhunriz Oct 5, 2023
d754d00
updated
Jhunriz Oct 5, 2023
fad99e3
redesign tge category form
Jhunriz Oct 5, 2023
ed58291
remove the generation of qrcode and barcode at equipment
Jhunriz Oct 6, 2023
b5403f3
add input field into branch form
Jhunriz Oct 6, 2023
39511e2
Mainlayout_delete not needed code
Jhunriz Oct 6, 2023
ccc0bfc
dashboard change the class into className
Jhunriz Oct 6, 2023
9bb8e43
remove the not need alert message
Jhunriz Oct 6, 2023
84a1991
make a layout for the primary color change at Mainlayout
Jhunriz Oct 6, 2023
37d0ca4
add div in button into submit to align the button
Jhunriz Oct 6, 2023
d6bb62a
add warning and error color in the MainLayout
Jhunriz Oct 6, 2023
cea6044
add fontFamily in Mainlayout
Jhunriz Oct 6, 2023
871d653
add time and date in dashboard
Jhunriz Oct 6, 2023
a26d479
adding time and date in dashboard page
Jhunriz Oct 6, 2023
a91433d
add design in time and date
Jhunriz Oct 6, 2023
f070669
arrange the card Mainlayout and admin Index
Jhunriz Oct 9, 2023
3eba934
make the categories manageable
Jhunriz Oct 9, 2023
c306516
manage the display of the branch
Jhunriz Oct 9, 2023
3042b98
dashboard typo fixed
Jhunriz Oct 9, 2023
2bc423c
delete not important in dashboard and Mainlayout
Jhunriz Oct 9, 2023
2003d43
arrange the equipment page arrange the table
Jhunriz Oct 9, 2023
881984f
adjustment into tables
Jhunriz Oct 9, 2023
cbb677c
delete-not needed code
Jhunriz Oct 10, 2023
ab5c2e8
delete not need code in branch
Jhunriz Oct 10, 2023
7d5d0c6
Equipment arrange th eforms delete not needed code
Jhunriz Oct 10, 2023
53d678e
delete not needed in Inventory
Jhunriz Oct 10, 2023
2a502a6
delete not need in qr and optimize the dashboard
Jhunriz Oct 10, 2023
9260126
warranty add design
Jhunriz Oct 10, 2023
3901f7e
add user add design
Jhunriz Oct 10, 2023
bba9bd5
add user update button for adding and updating
Jhunriz Oct 10, 2023
4673ec5
organize table
Jhunriz Oct 10, 2023
797ca06
add new design into qr code and remove not need at user
Jhunriz Oct 10, 2023
901f23c
add menu option into table
Jhunriz Oct 10, 2023
ab2817a
arrange the table
Jhunriz Oct 10, 2023
0de6956
arrange table in user
Jhunriz Oct 10, 2023
92e8ebd
remove the dropdown link of create user and qr
Jhunriz Oct 10, 2023
005d2ba
arrange the button
Jhunriz Oct 10, 2023
fc242c1
arrange the data in warranty list
Jhunriz Oct 10, 2023
5db8d1c
add a list borroewed item
Jhunriz Oct 11, 2023
5e648c3
add table for borrowed items
Jhunriz Oct 13, 2023
b36af77
app bar redesign
Jhunriz Oct 23, 2023
2c9e733
typography adjust
Jhunriz Oct 24, 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
20 changes: 20 additions & 0 deletions app/Http/Controllers/BorrowedItem/BorrowedController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Http\Controllers\BorrowedItem;

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

class BorrowedController extends Controller
{
public function Index()
{
$borrowedItem = Borrowed_item::all();

return Inertia::render('Admin/Borrowed_item/Index', [
'BorrowedItem' => $borrowedItem,
]);
}
}
38 changes: 38 additions & 0 deletions app/Http/Controllers/Branch/BranchController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace App\Http\Controllers\Branch;

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

class BranchController extends Controller
{
public function Index()
{
$branch = Branch::all();

return Inertia::render('Admin/Branch/Index', [
'branch' => $branch,
]);
}

public function create()
{
return Inertia::render('Admin/Branch/Create');
}

public function store(Request $request)
{
$branch = Branch::create([

// create a variable that will coordinated in my frontend form
'branch' => $request->branch,
]);

// You can optionally return a response or redirect the user
// For example, redirect them to the index page or return a success message
return redirect()->route('branch.index')->with('success', 'Category created successfully');
}
}
41 changes: 41 additions & 0 deletions app/Http/Controllers/Categories/CategoriesController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace App\Http\Controllers\Categories;

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

class CategoriesController extends Controller
{
public function index()
{
// $product = Product::all();
// return Inertia::render('Admin/Management/Products/Index', compact('product'));

$categories = Categories::all();

return Inertia::render('Admin/Categories/Index', [
'categories' => $categories,
]);
}

public function create()
{
return Inertia::render('Admin/Categories/Create');
}

public function store(Request $request)
{
$categories = categories::create([

// create a variable that will coordinated in my frontend form
'categories' => $request->categories,
]);

// You can optionally return a response or redirect the user
// For example, redirect them to the index page or return a success message
return redirect()->route('categories.index')->with('success', 'Category created successfully');
}
}
41 changes: 41 additions & 0 deletions app/Http/Controllers/Equipment/EquipmentController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace App\Http\Controllers\Equipment;

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

class EquipmentController extends Controller
{
public function index()
{
// $product = Product::all();
// return Inertia::render('Admin/Management/Products/Index', compact('product'));

$equipments = Equipment::all();

return Inertia::render('Admin/Equipment/Index', [
'equipments' => $equipments,
]);
}

public function create()
{
return Inertia::render('Admin/Equipment/Create');
}

public function store(Request $request)
{
$equipments = Equipment::create([

// create a variable that will coordinated in my frontend form
'equipments' => $request->equipments,
]);

// You can optionally return a response or redirect the user
// For example, redirect them to the index page or return a success message
return redirect()->route('equipment.index')->with('success', 'Category created successfully');
}
}
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');
}
}
40 changes: 40 additions & 0 deletions app/Http/Controllers/Management/ProductManagementController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?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'));

$product = Product::all();

return Inertia::render('Admin/Management/Products/Index', [
'products' => $product,
]);
}

public function store(Request $request)
{

// i create a variable located my model named product same as the user

$product = Product::create([

// create a variable that will coordinated in my frontend form
'productName' => $request->productName,
'productId' => $request->productId,
'branch' => $request->branch,
'status' => $request->status,
'productDescription' => $request->productDescription,
'productFileUpload' => $request->productFileUpload,
]);
}
}
51 changes: 51 additions & 0 deletions app/Http/Controllers/Management/UserManagementController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

namespace App\Http\Controllers\Management;

use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Validation\Rules;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Inertia\Inertia;

class UserManagementController extends Controller
{
public function index()
{
$users = User::all();

return Inertia::render('Admin/Management/User/Index', [
'users' => $users,
]);
}

public function create()
{
return Inertia::render('Admin/Management/User/Create');
}



public function store(Request $request)
{
$request->validate([
'name' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:' . User::class,
'password' => ['required', 'confirmed', Rules\Password::defaults()],
]);

$user = User::create([
'name' => $request->name,
'email' => $request->email,
'password' => Hash::make($request->password),
]);

return redirect()->route('management.index')->with('success', 'Category created successfully');

// event(new Registered($user));

// Auth::login($user);
}
}
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');
}
}
44 changes: 44 additions & 0 deletions app/Http/Controllers/Qr/QrController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

namespace App\Http\Controllers\Qr;

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

class QrController extends Controller
{
public function index()
{
$qrcodes = Qrcode::all();

return Inertia::render('Admin/Qr/Index', [
'qrcodes' => $qrcodes,
]);
}

public function create()
{
return Inertia::render('Admin/Qr/Create');
}

public function store(Request $request)
{
// Validate the request data
$validatedData = $request->validate([
'productName' => 'required',
'productId' => 'required',
'branch' => 'required',
'status' => 'required',
'qrDescription' => 'required',
'fileUpload' => 'required',
'qrcode' => 'required',
]);

// Create the Qrcode model with the validated data
$product = Qrcode::create($validatedData);

return redirect()->route('qr.index')->with('success', 'Category created successfully');
}
}
23 changes: 23 additions & 0 deletions app/Http/Controllers/Storage/StorageController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace App\Http\Controllers\Storage;

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

class StorageController extends Controller
{
public function index()
{
// return Inertia::render('Admin/Storage/Index');


$storage = Storage::all();

return Inertia::render('Admin/Storage/Index', [
'storages' => $storage,
]);
}
}
23 changes: 23 additions & 0 deletions app/Http/Controllers/Warranty/WarrantyController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace App\Http\Controllers\Warranty;

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

class WarrantyController extends Controller
{
public function index()
{
// $product = Product::all();
// return Inertia::render('Admin/Management/Products/Index', compact('product'));

$warranty = Warranty::all();

return Inertia::render('Admin/Warranty/Index', [
'warranty' => $warranty,
]);
}
}
Loading