create.blade.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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-12 col-lg-12">
  6. <section class="panel tasks-widget">
  7. <header class="panel-heading" style="height:40px;">
  8. <div class="pull-left">
  9. {{$title}}
  10. </div>
  11. <div>
  12. </div>
  13. </header>
  14. <div class="panel-body">
  15. @include('layouts.message')
  16. <form action="{{ url('ticket/save') }}" method="POST" class="form-horizontal" enctype="multipart/form-data">
  17. {{ csrf_field() }}
  18. @if(\Auth::user()->utype!=3)
  19. <div class="form-group">
  20. <label for="client" class="col-sm-2">Client</label>
  21. <div class="col-sm-6">
  22. <select name="client" id="client" class='form-control'>
  23. <option value="">Select Client</option>
  24. @if($clients)
  25. @foreach($clients as $client)
  26. <option value="{{ $client->id }}">{{ $client->name}}</option>
  27. @endforeach
  28. @endif
  29. </select>
  30. </div>
  31. </div>
  32. @endif
  33. <div class="form-group">
  34. <label for="service" class="col-sm-2">Service</label>
  35. <div class="col-sm-6">
  36. <select name="service" id="service" class='form-control' required>
  37. <option value="">Select Service</option>
  38. @if($services)
  39. @foreach($services as $row)
  40. <option value="{{ $row->id }}">{{ $row->name }}</option>
  41. @endforeach
  42. @endif
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label for="title" class="col-sm-2">Title</label>
  48. <div class="col-sm-6">
  49. <input type="text" name="title" id="title" class="form-control" placeholder="Title" required>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="details" class="col-sm-2">Description</label>
  54. <div class="col-sm-6">
  55. <textarea name="details" id="details" class="form-control" placeholder="Description" required></textarea>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="col-sm-2">Priority</label>
  60. <div class="col-sm-6">
  61. <label class="radio-inline">
  62. <input type="radio" name="prority" value="4"> Urgent
  63. </label>
  64. <label class="radio-inline">
  65. <input type="radio" name="prority" value="3"> High
  66. </label>
  67. <label class="radio-inline">
  68. <input type="radio" name="prority" value="2"> Medium
  69. </label>
  70. <label class="radio-inline">
  71. <input type="radio" name="prority " value="1"> Low
  72. </label>
  73. </div>
  74. </div>
  75. <div class="form-group">
  76. <label for="title" class="col-sm-2">Upload your document</label>
  77. <div class="col-sm-6">
  78. <input type="file" name="ticket_document" id="">
  79. </div>
  80. </div>
  81. <div class="form-group">
  82. <div class="col-sm-6 col-sm-offset-2">
  83. <button class="btn btn-primary"><i class="fa fa-save"></i> Create</button>
  84. <button class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
  85. </div>
  86. </div>
  87. </form>
  88. </div>
  89. </section>
  90. </div>
  91. </div>
  92. </section>
  93. @stop