Commit ad30f20d authored by sonu gupta's avatar sonu gupta

add confirm in csv upload

parent b8f2e857
Pipeline #1195 passed with stage
in 50 seconds
......@@ -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();
......
......@@ -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'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment