From a8910725b7ada4aa96201375e060c0c840550c0e Mon Sep 17 00:00:00 2001 From: Mahatma Mahardhika Date: Mon, 11 Nov 2024 14:55:03 +0700 Subject: [PATCH] chore: update ui import user --- app/Livewire/ImportUser.php | 13 +++- public/employee_data.xlsx | Bin 16767 -> 16915 bytes .../views/livewire/approval-table.blade.php | 2 +- .../views/livewire/asset-table.blade.php | 2 +- .../livewire/attendance-leave-table.blade.php | 2 +- .../attendance-overtime-table.blade.php | 2 +- .../attendance-switch-off-table.blade.php | 2 +- .../livewire/attendance-time-table.blade.php | 2 +- .../views/livewire/import-branch.blade.php | 2 +- .../views/livewire/import-brand.blade.php | 2 +- .../views/livewire/import-category.blade.php | 2 +- .../views/livewire/import-company.blade.php | 2 +- .../livewire/import-department.blade.php | 2 +- .../views/livewire/import-division.blade.php | 2 +- .../views/livewire/import-inventory.blade.php | 2 +- .../views/livewire/import-level.blade.php | 2 +- .../views/livewire/import-position.blade.php | 2 +- .../livewire/import-sub-category.blade.php | 2 +- .../livewire/import-sub-division.blade.php | 2 +- .../views/livewire/import-user.blade.php | 25 +++---- .../import-working-calendar.blade.php | 2 +- .../livewire/import-working-shift.blade.php | 2 +- .../views/livewire/leave-type-table.blade.php | 2 +- resources/views/livewire/login-page.blade.php | 4 +- .../livewire/register-company-page.blade.php | 8 +-- resources/views/livewire/user-table.blade.php | 66 ++++++++++-------- .../views/livewire/vacancy-table.blade.php | 2 +- resources/views/ui/dropdowns.blade.php | 4 +- 28 files changed, 86 insertions(+), 76 deletions(-) diff --git a/app/Livewire/ImportUser.php b/app/Livewire/ImportUser.php index 1eef9bb..d15507c 100644 --- a/app/Livewire/ImportUser.php +++ b/app/Livewire/ImportUser.php @@ -50,6 +50,17 @@ class ImportUser extends Component public $positionCode; + /** + * Handles the event when the import field is updated. + * + * This function will validate the uploaded file and store it in the + * 'photos' directory. + * The path of the uploaded file will be stored in + public function updatedImport(): void + { + $this->importUser(); + } + /** * Handles the event when the import field is updated. * @@ -163,4 +174,4 @@ public function render(): View { return view('livewire.import-user'); } -} +} \ No newline at end of file diff --git a/public/employee_data.xlsx b/public/employee_data.xlsx index 4ae5442fb32d87076bb4710657a936d8624fa5b7..64550737d622910174b27957bf5c63409a773a1e 100644 GIT binary patch delta 250 zcmez0#5lQyaYMf<-#TBFLyT+;3?MAQF!`Rn)aLD~!Hmp_d6kndY6x$ZRiDmWpR7=1 ztK@B@q)=k3R9sS|WM@-mXQL0o$#yniNgsTYzW5~l@JafEB{|`iZeFb=F3N>)^W-!3 zVT?N_D?8XQ @error('import') diff --git a/resources/views/livewire/asset-table.blade.php b/resources/views/livewire/asset-table.blade.php index 0ff2625..7687a3f 100644 --- a/resources/views/livewire/asset-table.blade.php +++ b/resources/views/livewire/asset-table.blade.php @@ -54,7 +54,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/attendance-leave-table.blade.php b/resources/views/livewire/attendance-leave-table.blade.php index 64c8898..4c6e7d7 100644 --- a/resources/views/livewire/attendance-leave-table.blade.php +++ b/resources/views/livewire/attendance-leave-table.blade.php @@ -72,7 +72,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/attendance-overtime-table.blade.php b/resources/views/livewire/attendance-overtime-table.blade.php index facc8b3..7b390cd 100644 --- a/resources/views/livewire/attendance-overtime-table.blade.php +++ b/resources/views/livewire/attendance-overtime-table.blade.php @@ -72,7 +72,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/attendance-switch-off-table.blade.php b/resources/views/livewire/attendance-switch-off-table.blade.php index d68b31f..6f389d3 100644 --- a/resources/views/livewire/attendance-switch-off-table.blade.php +++ b/resources/views/livewire/attendance-switch-off-table.blade.php @@ -72,7 +72,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/attendance-time-table.blade.php b/resources/views/livewire/attendance-time-table.blade.php index 578b759..ac3a1d3 100644 --- a/resources/views/livewire/attendance-time-table.blade.php +++ b/resources/views/livewire/attendance-time-table.blade.php @@ -72,7 +72,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-branch.blade.php b/resources/views/livewire/import-branch.blade.php index 92990dd..d35602e 100644 --- a/resources/views/livewire/import-branch.blade.php +++ b/resources/views/livewire/import-branch.blade.php @@ -37,7 +37,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-brand.blade.php b/resources/views/livewire/import-brand.blade.php index a3e3ba7..edf9da8 100644 --- a/resources/views/livewire/import-brand.blade.php +++ b/resources/views/livewire/import-brand.blade.php @@ -37,7 +37,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-category.blade.php b/resources/views/livewire/import-category.blade.php index c48ff14..e90485f 100644 --- a/resources/views/livewire/import-category.blade.php +++ b/resources/views/livewire/import-category.blade.php @@ -37,7 +37,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-company.blade.php b/resources/views/livewire/import-company.blade.php index 8996328..be5474c 100644 --- a/resources/views/livewire/import-company.blade.php +++ b/resources/views/livewire/import-company.blade.php @@ -37,7 +37,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-department.blade.php b/resources/views/livewire/import-department.blade.php index 267c01c..dcf7134 100644 --- a/resources/views/livewire/import-department.blade.php +++ b/resources/views/livewire/import-department.blade.php @@ -38,7 +38,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-division.blade.php b/resources/views/livewire/import-division.blade.php index 2a77374..31978a5 100644 --- a/resources/views/livewire/import-division.blade.php +++ b/resources/views/livewire/import-division.blade.php @@ -38,7 +38,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-inventory.blade.php b/resources/views/livewire/import-inventory.blade.php index 6b2bc50..05a335b 100644 --- a/resources/views/livewire/import-inventory.blade.php +++ b/resources/views/livewire/import-inventory.blade.php @@ -37,7 +37,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-level.blade.php b/resources/views/livewire/import-level.blade.php index b53473f..f89bbc9 100644 --- a/resources/views/livewire/import-level.blade.php +++ b/resources/views/livewire/import-level.blade.php @@ -38,7 +38,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-position.blade.php b/resources/views/livewire/import-position.blade.php index a2f7751..2c32c0f 100644 --- a/resources/views/livewire/import-position.blade.php +++ b/resources/views/livewire/import-position.blade.php @@ -38,7 +38,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-sub-category.blade.php b/resources/views/livewire/import-sub-category.blade.php index e1d3e92..c33c93e 100644 --- a/resources/views/livewire/import-sub-category.blade.php +++ b/resources/views/livewire/import-sub-category.blade.php @@ -38,7 +38,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-sub-division.blade.php b/resources/views/livewire/import-sub-division.blade.php index 9bc9eee..415e7cc 100644 --- a/resources/views/livewire/import-sub-division.blade.php +++ b/resources/views/livewire/import-sub-division.blade.php @@ -38,7 +38,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/livewire/import-user.blade.php b/resources/views/livewire/import-user.blade.php index b9c27c3..fd4d265 100644 --- a/resources/views/livewire/import-user.blade.php +++ b/resources/views/livewire/import-user.blade.php @@ -1,4 +1,4 @@ -
+
Employee Template -
diff --git a/resources/views/livewire/user-table.blade.php b/resources/views/livewire/user-table.blade.php index 027eb34..05e68b9 100644 --- a/resources/views/livewire/user-table.blade.php +++ b/resources/views/livewire/user-table.blade.php @@ -21,44 +21,48 @@ class="ml-auto"
@enderror -
-
+
+
-
- - - @if($search) - - @endif + @if($search) + + @endif +
+
+
diff --git a/resources/views/livewire/vacancy-table.blade.php b/resources/views/livewire/vacancy-table.blade.php index 706b99e..116d84e 100644 --- a/resources/views/livewire/vacancy-table.blade.php +++ b/resources/views/livewire/vacancy-table.blade.php @@ -54,7 +54,7 @@ class="w-6 h-6" id="import" name="import" accept=".csv,.xlsx" - class="form-input" + > @error('import') diff --git a/resources/views/ui/dropdowns.blade.php b/resources/views/ui/dropdowns.blade.php index 0d3ee61..e63acac 100644 --- a/resources/views/ui/dropdowns.blade.php +++ b/resources/views/ui/dropdowns.blade.php @@ -1028,7 +1028,7 @@ class="fc-dropdown-open:opacity-100 hidden opacity-0 w-72 p-4 shadow-md rounded- - We'll @@ -1038,7 +1038,7 @@ class="form-text text-sm text-slate-700 dark:text-slate-400">We'll
-