暫無描述
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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="gambar"> Gambar <span class="text-danger">*</span> </label>
  17. <input type="file" name="gambar" id="" class="form-control">
  18. </div>
  19. <div class="form-group">
  20. <label for="name"> Nama Kendaraan<span class="text-danger">*</span> </label>
  21. <input type="text" name="name" value="{{ old('name') }}" class="form-control" required id="name" >
  22. </div>
  23. <div class="form-group">
  24. <label for="transportation_identity"> Nomor Kendaraan<span class="text-danger">*</span> </label>
  25. <input type="text" name="transportation_identity" value="{{ old('transportation_identity') }}" class="form-control" required id="transportation_identity" >
  26. </div>
  27. <div class="form-group">
  28. <label for="transportation_type"> Tipe Kendaraan <span class="text-danger">*</span> </label>
  29. <select name="transportation_type" id="transportation_type" class="form-control">
  30. <option value="motor">Sepeda Motor</option>
  31. <option value="car">Mobil</option>
  32. <option value="bus">Bus</option>
  33. <option value="truck">Truk</option>
  34. </select>
  35. </div>
  36. <div class="form-group">
  37. <button type="submit" class="btn btn-success">Simpan</button>
  38. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  39. </div>
  40. </form>
  41. </div>
  42. </div>
  43. @endsection
  44. {{-- load JS yang lu perluin, selain itu no --}}
  45. @push('js')
  46. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  47. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  48. <script src="{{ asset('assets') }}/js/custom.js"></script>
  49. <script src="{{ asset('assets') }}/vendor/datetimepicker/moment.min.js"></script>
  50. <script src="{{ asset('assets') }}/vendor/datetimepicker/tempusdominus-bootstrap-4.min.js"></script>
  51. @endpush