edit.blade.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @extends('seller.layouts.app')
  2. @section('panel_content')
  3. <div class="aiz-titlebar mt-2 mb-4">
  4. <div class="row align-items-center">
  5. <div class="col-md-6">
  6. <h1 class="h3">{{ translate('Update comment') }}</h1>
  7. </div>
  8. </div>
  9. </div>
  10. <form class="" action="{{route('seller.update', $reviews->id)}}" method="POST" enctype="multipart/form-data"
  11. id="choice_form">
  12. <div class="row gutters-5">
  13. <div class="col-12">
  14. <input name="_method" type="hidden" value="POST">
  15. <input type="hidden" name="lang" value="{{ $lang }}">
  16. <input type="hidden" name="id" value="{{ $reviews->id }}">
  17. @csrf
  18. <div class="card">
  19. <div class="card-body">
  20. <div class="form-group mb-3">
  21. <label for="name">
  22. {{translate('Rating')}}
  23. </label>
  24. <div class="rating rating-input">
  25. <label>
  26. <input type="radio" name="rating" value="1" @if ($reviews->rating == 1) checked @endif required>
  27. <i class="las la-star"></i>
  28. </label>
  29. <label>
  30. <input type="radio" name="rating" value="2" @if ($reviews->rating == 2) checked @endif>
  31. <i class="las la-star"></i>
  32. </label>
  33. <label>
  34. <input type="radio" name="rating" value="3" @if ($reviews->rating == 3) checked @endif>
  35. <i class="las la-star"></i>
  36. </label>
  37. <label>
  38. <input type="radio" name="rating" value="4" @if ($reviews->rating == 4) checked @endif>
  39. <i class="las la-star"></i>
  40. </label>
  41. <label>
  42. <input type="radio" name="rating" value="5" @if ($reviews->rating == 5) checked @endif>
  43. <i class="las la-star"></i>
  44. </label>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="card">
  50. <div class="card-body">
  51. <div class="form-group mb-3">
  52. <label for="name">
  53. {{translate('comment')}}
  54. </label>
  55. <input type="text" name="comment" value="{{ $reviews->comment }}" class="form-control">
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="col-12">
  61. <div class="mar-all text-right mb-2">
  62. <button type="submit" name="button" value="publish"
  63. class="btn btn-primary">{{ translate('Update comment') }}</button>
  64. </div>
  65. </div>
  66. </div>
  67. </form>
  68. @endsection
  69. @section('script')
  70. <script type="text/javascript">
  71. </script>
  72. @endsection