edit_company.blade.php 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <div class="modal-content">
  2. <form action="{{ route('change_company_info') }}" method="POST">
  3. {{ csrf_field() }}
  4. <input type="hidden" name="id" value="{{ $company->id }}">
  5. <div class="modal-header">
  6. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  7. <h4 class="modal-title">Edit Compant</h4>
  8. </div>
  9. <div class="modal-body">
  10. <table class="table table-company">
  11. <tr>
  12. <th>
  13. Company Name
  14. </th>
  15. <td>
  16. <input type="text" class="form-control" name="com_name" id="com_name" value="{{$company->name}}">
  17. <input type="hidden" value="{{$company->id}}" id="company_id">
  18. </td>
  19. </tr>
  20. <?php
  21. $ary_industry = [
  22. 1=>"Recreation",2=>"Food",3=>"Training",
  23. 4=>"Professionals",5=>"Industry",6=>"Agriculture",7=>"Germents",8=>"Health",9=>"Apperal",10=>"E-Commerce"
  24. ];
  25. ?>
  26. <tr>
  27. <th>Industry</th>
  28. <td>
  29. <select name="industry" class="form-control" id="industry">
  30. <option value="">Select Industry</option>
  31. @foreach($ary_industry as $key=>$indus)
  32. <option {{ $company->industry==$key?'selected':'' }} value="{{ $key }}">
  33. {{$indus}}
  34. </option>
  35. @endforeach
  36. </select>
  37. </td>
  38. </tr>
  39. <tr>
  40. <th>Service Required</th>
  41. <td>
  42. <select name="req_service" id="req_service" class="form-control">
  43. <option {{ $company->service_required==1?'selected':'' }} value="1">All</option>
  44. <option {{ $company->service_required==1?'selected':'' }} value="2">Mobile App</option>
  45. <option {{ $company->service_required==1?'selected':'' }} value="3">Website</option>
  46. <option {{ $company->service_required==1?'selected':'' }} value="4">Software</option>
  47. </select>
  48. </td>
  49. </tr>
  50. <tr>
  51. <th>Mobile1</th>
  52. <td><input type="text" name="mobile1" id="mobile1" class="form-control" value="{{$company->mob1}}" required></td>
  53. </tr>
  54. <tr>
  55. <th>Mobile2</th>
  56. <td><input type="text" name="mobile2" id="mobile2" class="form-control" value="{{$company->mob2}}"></td>
  57. </tr>
  58. <tr>
  59. <th>Email1</th>
  60. <td><input type="email" name="email1" id="email1" class="form-control" value="{{$company->email1}}"></td>
  61. </tr>
  62. <tr>
  63. <th>Email2</th>
  64. <td><input type="email" name="email2" id="email2" class="form-control" value="{{$company->email2}}"></td>
  65. </tr>
  66. <tr>
  67. <th>Website</th>
  68. <td><input type="text" name="web" id="web" class="form-control" value="{{$company->web}}"></td>
  69. </tr>
  70. <tr>
  71. <th>Ddetails</th>
  72. <td><textarea name="details" id="details" class='form-control'>{{$company->details}}</textarea></td>
  73. </tr>
  74. <tr>
  75. <th>Address</th>
  76. <td><textarea name="address" id="address" class='form-control'>{{$company->address}}</textarea></td>
  77. </tr>
  78. <tr>
  79. <th>Remarks</th>
  80. <td><textarea name="remark" id="remark" class="form-control">{{$company->remarks}}</textarea></td>
  81. </tr>
  82. <tr>
  83. <th></th>
  84. <td> <input type="checkbox" {{ $company->display?'checked':'' }} name="display" id="display" value="1"> Display company info.</td>
  85. </tr>
  86. </table>
  87. </div>
  88. <div class="modal-footer">
  89. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  90. <button type="submit" class="btn btn-primary">Update</button>
  91. </div>
  92. </form>
  93. </div>