Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spinner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sonu gupta
spinner
Commits
ad30f20d
Commit
ad30f20d
authored
3 years ago
by
sonu gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add confirm in csv upload
parent
b8f2e857
Pipeline
#1195
passed with stage
in 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/Http/Controllers/admin/AdminController.php
app/Http/Controllers/admin/AdminController.php
+1
-0
resources/views/admin/employee/employee_create.blade.php
resources/views/admin/employee/employee_create.blade.php
+1
-1
No files found.
app/Http/Controllers/admin/AdminController.php
View file @
ad30f20d
...
...
@@ -175,6 +175,7 @@ class AdminController extends Controller
// dd(($data));
DB
::
table
(
'employees'
)
->
delete
();
DB
::
table
(
'spinned'
)
->
delete
();
foreach
(
$data
as
$key
=>
$value
)
{
$name
=
$value
[
0
];
$check
=
DB
::
table
(
'employees'
)
->
where
(
'name'
,
$name
)
->
first
();
...
...
This diff is collapsed.
Click to expand it.
resources/views/admin/employee/employee_create.blade.php
View file @
ad30f20d
...
...
@@ -92,7 +92,7 @@
</
div
>
<!--
/.
card
-
header
-->
<!--
form
start
-->
<
form
role
=
"form"
method
=
"post"
action
=
"
{
{url('admin/employee/csv/store')}
}
"
enctype
=
"multipart/form-data"
>
<
form
onSubmit
=
"return confirm('Are you sure it will reset all the history?');"
role
=
"form"
method
=
"post"
action
=
"
{
{url('admin/employee/csv/store')}
}
"
enctype
=
"multipart/form-data"
>
{{
csrf_field
()}}
<
div
class
=
"card-body"
>
@
if
(
Session
::
has
(
'error'
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment