import.blade.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/dropify/dropify.min.css" type="text/css" rel="stylesheet">
  4. @endsection
  5. @section('content')
  6. <div class="page-content container">
  7. <div class="panel">
  8. <div class="panel-heading">
  9. <h2 class="panel-title">数据导入</h2>
  10. </div>
  11. @if (Session::has('successMsg'))
  12. <div class="alert alert-success" role="alert">
  13. <button class="close" data-close="alert"></button>
  14. {{Session::get('successMsg')}}
  15. </div>
  16. @endif
  17. @if($errors->any())
  18. <div class="alert alert-danger" role="alert">
  19. <button class="close" data-dismiss="alert" aria-label="Close"><span
  20. aria-hidden="true">&times;</span><span class="sr-only">{{trans('home.close')}}</span>
  21. </button>
  22. <span> {{$errors->first()}} </span>
  23. </div>
  24. @endif
  25. <div class="panel-body">
  26. <form action="/tools/import" method="POST" enctype="multipart/form-data" class="upload-form">
  27. <input type="file" id="inputUpload" name="uploadFile" data-plugin="dropify" data-default-file="" required/>
  28. {{csrf_field()}}
  29. <button type="submit" class="btn btn-success float-right mt-10"> 导入</button>
  30. </form>
  31. </div>
  32. </div>
  33. </div>
  34. @endsection
  35. @section('script')
  36. <script src="/assets/global/vendor/dropify/dropify.min.js" type="text/javascript"></script>
  37. @endsection