index.blade.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row">
  5. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. <h3 class="panel-title">Fund Request</h3>
  9. </div>
  10. <div class="panel-body">
  11. <form action="{{ url('account/fund_req/save') }}" method="POST" class="form-horizontal" role="form">
  12. {{ csrf_field() }}
  13. <div class="form-group">
  14. <label for="purpose" class="col-sm-2">Fund Purpose</label>
  15. <div class="col-sm-5">
  16. <select name="purpose" id="purpose" class="form-control" required>
  17. <option value="">Select Fund Purpose</option>
  18. @if($acc_head)
  19. @foreach($acc_head as $head)
  20. <option value="{{ $head->id }}">{{ $head->name }}</option>
  21. @if($head->children)
  22. @foreach($head->children as $child)
  23. <option value="{{ $child->id }}">&nbsp;&nbsp;&nbsp;{{ $child->name }}</option>
  24. @endforeach
  25. @endif
  26. @endforeach
  27. @endif
  28. </select>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label for="description" class="col-sm-2">Description</label>
  33. <div class="col-sm-5">
  34. <textarea name="description" id="description" class="form-control" placeholder="Description"></textarea>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label for="amount" class="col-sm-2">Amount</label>
  39. <div class="col-sm-5">
  40. <input type='text' name="amount" id="amount" class="form-control" required placeholder="Amount">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label for="due_date" class="col-sm-2">Due Date</label>
  45. <div class="col-sm-5">
  46. <input type='text' name="due_date" id="due_date" class="form-control date" placeholder="Due Date">
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <div class="col-sm-10 col-sm-offset-2">
  51. <button type="submit" class="btn btn-info">Request</button>
  52. </div>
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. @stop
  61. @section('script')
  62. <script type="text/javascript">
  63. $(document).ready(function() {
  64. $( ".date" ).datepicker({
  65. changeMonth: true,
  66. changeYear: true,
  67. dateFormat:"yy-mm-dd"
  68. });
  69. });
  70. </script>
  71. @stop