Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. @extends('layouts.navbar_user')
  2.  
  3. @section('content')
  4.  
  5. <div class="container">
  6. <div class="row justify-content-center">
  7.  
  8. <div class="jumbotron">
  9. <h1 class="display-4">Hello, {{ Auth::user()->name }}!</h1>
  10. <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
  11. <hr class="my-4">
  12. <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
  13. <!-- Button trigger modal -->
  14. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#profile">
  15. Profile
  16. </button>
  17.  
  18. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#newOrder">
  19. New order
  20. </button>
  21.  
  22. </div>
  23.  
  24. <div class="col-md-8">
  25. <div class="card">
  26. <div class="card-header">Dashboard</div>
  27.  
  28. <div class="card-body">
  29. @if (session('status'))
  30. <div class="alert alert-danger" role="alert">
  31. {{ session('status') }}
  32. </div>
  33. @endif
  34.  
  35. You are logged in!
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41.  
  42. <!-- Modal profile -->
  43. <div class="modal fade" id="profile" tabindex="-1" role="dialog" aria-labelledby="profileLabel" aria-hidden="true">
  44. <div class="modal-dialog" role="document">
  45. <div class="modal-content">
  46. <div class="modal-header">
  47. <h5 class="modal-title" id="profileLabel">Sewa baru - {{ Auth::user()->name }}</h5>
  48. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  49. <span aria-hidden="true">&times;</span>
  50. </button>
  51. </div>
  52. <div class="modal-body">
  53.  
  54. </div>
  55. <div class="modal-footer">
  56. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  57. <button type="submit" class="btn btn-primary" data-dismiss="modal">Submit</button>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62.  
  63. <!-- Modal newOrder -->
  64. <div class="modal fade" id="newOrder" tabindex="-1" role="dialog" aria-labelledby="newOrderLabel" aria-hidden="true">
  65. <div class="modal-dialog" role="document">
  66. <div class="modal-content">
  67. <div class="modal-header">
  68. <h5 class="modal-title" id="newOrderLabel">Sewa baru - {{ Auth::user()->name }}</h5>
  69. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  70. <span aria-hidden="true">&times;</span>
  71. </button>
  72. </div>
  73. <div class="modal-body">
  74. <form method="post" action="/home/new_order">
  75. {{ csrf_field() }}
  76. <div class="form-row">
  77. <div class="form-group col-md-6">
  78. <label for="nama">Nama penyewa</label>
  79. <input type="text" name="nama" class="form-control" id="nama" placeholder="{{ Auth::user()->name }}" value="{{ Auth::user()->name }}" readonly>
  80. <small id="namaHelp" class="form-text text-muted">Nama penyewa haru sama dengan Jaminan.</small>
  81. </div>
  82. <div class="form-group col-md-6">
  83. <label for="no_hp">Nomor telfon</label>
  84. <input type="text" class="form-control" id="no_hp" placeholder="{{ Auth::user()->phone }}" value="{{ Auth::user()->phone }}" readonly>
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label for="alamat">Alamat / Fakultas dan jurusan </label>
  89. <input type="text" name="alamat" class="form-control" id="alamat" placeholder="Alamat / Fakultas dan jurusan">
  90. </div>
  91. <div class="form-group">
  92. <label for="acara">Acara</label>
  93. <input type="text" name="acara" class="form-control" id="acara" placeholder="Nama acara / kegiatan">
  94. </div>
  95. <div class="form-row">
  96. <div class="form-group col-md-6">
  97. <label for="tanggal_sewa">Tanggal sewa</label>
  98. <input type="text" name="tanggal_sewa" class="form-control" id="tanggal_sewa">
  99. </div>
  100. <div class="form-group col-md-4">
  101. <label for="jumlah_hari">Jumlah hari</label>
  102. <select id="jumlah_hari" name="jumlah_hari" class="form-control">
  103. <option selected>Choose...</option>
  104. @for ($i = 1; $i < 11; $i++)
  105. <option value="{{ $i }}">{{ $i }}</option>
  106. @endfor
  107. </select>
  108. </div>
  109. <div class="form-group col-md-2">
  110. <label for="jumlah_unit">Unit</label>
  111. <input type="number" name="jumlah_unit" class="form-control" id="jumlah_unit">
  112. </div>
  113. </div>
  114. </form>
  115.  
  116. </div>
  117. <div class="modal-footer">
  118. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  119. <button type="reset" class="btn btn-danger pull-right">Reset</button>
  120. <button type="submit" class="btn btn-primary pull-right">Submit</button>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement