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 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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="start_date"> Start Date <span class="text-danger">*</span> </label>
  18. <input type="text" name="start_date" value="{{ $data->start_date }}" class="form-control flat-picker-date" required id="start_date" >
  19. </div>
  20. <div class="form-group">
  21. <label for="end_date"> End Date <span class="text-danger">*</span> </label>
  22. <input type="text" name="end_date" value="{{ $data->end_date }}" class="form-control flat-picker-date" required id="end_date" >
  23. </div>
  24. <div class="form-group">
  25. <div class="row">
  26. <div class="col-md-2">
  27. <img src="{{ asset('storage/images/event_organisasi/'.$data->banner) }}" alt="..." class="img-thumbnail" style="width:100px">
  28. </div>
  29. <div class="col-md-10">
  30. <label for="banner"> Banner</label>
  31. <input type="file" name="banner" id="" class="form-control">
  32. </div>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label for="deskripsi"> Deskripsi <span class="text-danger">*</span> </label>
  37. <textarea name="deskripsi" class="form-control">{{ $data->deskripsi }}</textarea>
  38. </div>
  39. <div class="form-group">
  40. <button type="submit" class="btn btn-success">Simpan</button>
  41. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. @endsection
  47. {{-- load JS yang lu perluin, selain itu no --}}
  48. @push('js')
  49. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  50. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  51. <script src="{{ asset('assets') }}/js/custom.js"></script>
  52. <script src="{{ asset('assets') }}/vendor/datetimepicker/moment.min.js"></script>
  53. <script src="{{ asset('assets') }}/vendor/datetimepicker/tempusdominus-bootstrap-4.min.js"></script>
  54. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
  55. <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
  56. <script>
  57. $('.flat-picker-date').flatpickr({
  58. enableTime: false,
  59. dateFormat: "Y-m-d",
  60. })
  61. </script>
  62. @endpush