payment.blade.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @extends('layouts.master')
  2. @section('content')
  3. <section class="content">
  4. <div class="row">
  5. <div class="col-xs-12 col-sm-12 col-md-7 col-lg-7">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. <h3 class="panel-title">Make Payment</h3>
  9. </div>
  10. <div class="panel-body">
  11. @include('layouts.message')
  12. <form action="{{ url('account/journal/payment/save') }}" method="POST" class="form-horizontal" role="form">
  13. {{ csrf_field() }}
  14. <input type="hidden" name="hdn_req_id" value="{{ $fund_req->id }}">
  15. <input type="hidden" name="hdn_id" value="{{ $fund_req->purpose }}">
  16. <input type="hidden" name="hdn_payable_amount" value="{{ $fund_req->amount }}">
  17. <div class="form-group">
  18. <label for="account_head" class="col-sm-12 col-xs-12 col-md-2 col-lg-2 control-label">Account Head</label>
  19. <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
  20. <select name="account_head" id="account_head" class="form-control">
  21. <option value="">-Select Account Head-</option>
  22. @if($acc_head)
  23. @foreach($acc_head as $head)
  24. <option value="{{ $head->id }}">{{ $head->name }}</option>
  25. @if($head->children)
  26. @foreach($head->children as $child)
  27. <option value="{{ $child->id }}">&nbsp;&nbsp;&nbsp;{{ $child->name }}</option>
  28. @endforeach
  29. @endif
  30. @endforeach
  31. @endif
  32. </select>
  33. </div>
  34. </div>
  35. <div id='bank_div' class="form-group hide">
  36. <label for="bank_name" class="col-sm-12 col-xs-12 col-md-2 col-lg-2 control-label">Bank Name</label>
  37. <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
  38. <select name="bank_name" id="bank_name" class="form-control">
  39. </select>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label for="amount" class="col-sm-12 col-xs-12 col-md-2 col-lg-2 control-label">Amount</label>
  44. <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
  45. <input type="text" name="amount" id="amount" class="form-control" onkeypress="return checkNumber(event)" required placeholder="Amount" value="{{ $fund_req->amount }}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label for="remarks" class="col-sm-12 col-xs-12 col-md-2 col-lg-2 control-label">Remarks</label>
  50. <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
  51. <textarea name="remarks" id="remarks" class="form-control date" placeholder="Remarks"></textarea>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <div class="col-sm-10 col-sm-offset-2">
  56. <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Pay Now</button>
  57. <a href="{{ url('account/journal') }}" class="btn btn-default"><i class="fa fa-times"></i> Cancel</a>
  58. </div>
  59. </div>
  60. </form>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
  65. <div class="panel panel-default">
  66. <div class="panel-heading">
  67. <h3 class="panel-title">Requested Amount</h3>
  68. </div>
  69. <div class="panel-body">
  70. <ul class="list-group">
  71. <li class="list-group-item">Requested Amount : <span>Tk. {{ $fund_req->amount }}</span></li>
  72. {{-- <li class="list-group-item">Remarks:<span>{{ $journal_comment->remarks }}</span></li> --}}
  73. <li class="list-group-item">Request By: <span>{{ $fund_req->user?$fund_req->user->name:'' }}</span></li>
  74. </ul>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </section>
  80. @stop
  81. @section('style')
  82. <style>
  83. .list-group-item span{
  84. display: inline-block;
  85. margin-left: 25%;
  86. }
  87. </style>
  88. @stop
  89. @section('script')
  90. <script type="text/javascript">
  91. $(document).ready(function() {
  92. $('#account_type').change(function(){
  93. var id=$(this).val();
  94. if(id==4)
  95. {
  96. $('#bank_div').removeClass('hide');
  97. }
  98. else
  99. {
  100. $('#bank_div').addClass('hide');
  101. }
  102. });
  103. });
  104. </script>
  105. @stop