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.

create.blade.php 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 }} Tambah</h2>
  9. </div>
  10. </div>
  11. </div>
  12. <div class="card-body">
  13. <form action="{{ route($route.'create_action') }}" class="form-global-handle" method="POST" enctype="multipart/form-data">
  14. @csrf
  15. <div class="form-group">
  16. <label for="start_date"> Start Date <span class="text-danger">*</span> </label>
  17. <input type="text" name="start_date" value="{{ old('start_date') }}" class="form-control flat-picker-date" required id="start_date" >
  18. </div>
  19. <div class="form-group">
  20. <label for="end_date"> End Date <span class="text-danger">*</span> </label>
  21. <input type="text" name="end_date" value="{{ old('end_date') }}" class="form-control flat-picker-date" required id="end_date" >
  22. </div>
  23. <div class="form-group">
  24. <label for="banner"> Banner <span class="text-danger">*</span> </label>
  25. <input type="file" name="banner" id="" class="form-control">
  26. </div>
  27. <div class="form-group">
  28. <label for="deskripsi"> Deskripsi <span class="text-danger">*</span> </label>
  29. <textarea name="deskripsi" class="form-control"></textarea>
  30. </div>
  31. <div class="form-group">
  32. <button type="submit" class="btn btn-success">Simpan</button>
  33. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. @endsection
  39. {{-- load JS yang lu perluin, selain itu no --}}
  40. @push('js')
  41. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  42. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  43. <script src="{{ asset('assets') }}/js/custom.js"></script>
  44. <script src="{{ asset('assets') }}/vendor/datetimepicker/moment.min.js"></script>
  45. <script src="{{ asset('assets') }}/vendor/datetimepicker/tempusdominus-bootstrap-4.min.js"></script>
  46. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
  47. <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
  48. <script>
  49. $('.flat-picker-date').flatpickr({
  50. enableTime: false,
  51. dateFormat: "Y-m-d",
  52. })
  53. </script>
  54. @endpush