Просмотр файла resources/views/admin/offers/reply.blade.php

Размер файла: 2.33Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('offers.reply_record'))
  4.  
  5. @section('breadcrumb')
  6. <nav>
  7. <ol class="breadcrumb">
  8. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  9. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  10. <li class="breadcrumb-item"><a href="/admin/offers/{{ $offer->type }}">{{ __('index.offers') }}</a></li>
  11. <li class="breadcrumb-item"><a href="/admin/offers/{{ $offer->id }}">{{ $offer->title }}</a></li>
  12. <li class="breadcrumb-item active">{{ __('offers.reply_record') }}</li>
  13. </ol>
  14. </nav>
  15. @stop
  16.  
  17. @section('content')
  18. <div class="section-form mb-3 shadow">
  19. <form action="/admin/offers/reply/{{ $offer->id }}" method="post">
  20. @csrf
  21. <div class="mb-3{{ hasError('reply') }}">
  22. <label for="reply" class="form-label">{{ __('offers.answer') }}:</label>
  23. <textarea class="form-control markItUp" id="reply" rows="5" name="reply" required>{{ getInput('reply', $offer->reply) }}</textarea>
  24. <div class="invalid-feedback">{{ textError('reply') }}</div>
  25. </div>
  26.  
  27. <div class="mb-3{{ hasError('status') }}">
  28. <label for="status" class="form-label">{{ __('offers.status') }}:</label>
  29.  
  30. <?php $inputStatus = getInput('status', $offer->status); ?>
  31. <select class="form-select" name="status" id="status">
  32. @foreach ($statuses as $status)
  33. <?php $selected = ($status === $inputStatus) ? ' selected' : ''; ?>
  34. <option value="{{ $status }}"{{ $selected }}>{{ __('offers.' . $status) }}</option>
  35. @endforeach
  36. </select>
  37.  
  38. <div class="invalid-feedback">{{ textError('status') }}</div>
  39. </div>
  40.  
  41. <div class="form-check">
  42. <input type="hidden" value="0" name="closed">
  43. <input type="checkbox" class="form-check-input" value="1" name="closed" id="closed"{{ getInput('closed', $offer->closed) ? ' checked' : '' }}>
  44. <label class="form-check-label" for="closed">{{ __('main.close_comments') }}</label>
  45. </div>
  46.  
  47. <button class="btn btn-primary">{{ __('main.reply') }}</button>
  48. </form>
  49. </div>
  50. @stop