No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.blade.php 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @extends('admin.layouts.app')
  2. @section('content')
  3. <div class="card shadow">
  4. <div class="card-header bg-transparent">
  5. <div class="row align-items-center">
  6. <div class="col">
  7. <h6 class="text-uppercase text-muted ls-1 mb-1">{{ $sub_header }}</h6>
  8. <h2 class="mb-0">{{ $header }} Update</h2>
  9. </div>
  10. </div>
  11. </div>
  12. <div class="card-body">
  13. <form action="{{ route($route.'update_action') }}" class="form-global-handle" method="POST" enctype="multipart/form-data">
  14. @csrf
  15. <input type="hidden" name="id" value="{{ Hashids::encode($data->id) }}">
  16. <div class="form-group">
  17. <label for="type"> Point Type <span class="text-danger">*</span> </label>
  18. <input type="text" name="type" value="{{ $data->type }}" class="form-control" required id="type" >
  19. </div>
  20. <div class="form-group">
  21. <label for="value"> Point Value <span class="text-danger">*</span> </label>
  22. <input type="text" name="value" value="{{ $data->value }}" class="form-control" required id="value" >
  23. </div>
  24. <div class="form-group">
  25. <button type="submit" class="btn btn-success">Simpan</button>
  26. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  27. </div>
  28. </form>
  29. </div>
  30. </div>
  31. @endsection
  32. {{-- load JS yang lu perluin, selain itu no --}}
  33. @push('js')
  34. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  35. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  36. <script src="{{ asset('assets') }}/js/custom.js"></script>
  37. <script src="{{ asset('assets') }}/vendor/datetimepicker/moment.min.js"></script>
  38. <script src="{{ asset('assets') }}/vendor/datetimepicker/tempusdominus-bootstrap-4.min.js"></script>
  39. <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css" rel="stylesheet">
  40. <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js"></script>
  41. <script>
  42. $('#summernote').summernote({
  43. height: 200
  44. });
  45. </script>
  46. @endpush