show.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <form class="modal-form form-prevent-multiple-submits" action="{{ route('contact.update', $contact['Id']) }}" method="POST">
  2. @csrf
  3. <div class="form-title">
  4. <h3>연락처 수정</h3>
  5. </div>
  6. <div class="form-group">
  7. <label class="form-label">종류</label>
  8. <div class="d-flex align-items-center">
  9. @forelse ($codeTitle['sort']['company-contact-bd'] ?? [] as $key => $sort)
  10. @if ($sort['Code'] !== '')
  11. <div class="sort-div">
  12. <input type="radio" value="{{ $sort['Code'] }}" name="sort" id="sort-radio-{{ $key }}" {{ $sort['Code'] === $contact['Sort'] ? 'checked' : '' }}>
  13. <label for="sort-radio-{{ $key }}" class="form-label">{{ $sort['Title'] }}</label>
  14. </div>
  15. @endif
  16. @empty
  17. @endforelse
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="form-label">이름</label>
  22. <input class="form-control" type="text" name="contact_name" value="{{ $contact['ContactName'] }}" placeholder="Enter your name" required>
  23. </div>
  24. <div class="form-group">
  25. <label class="form-label">연락처</label>
  26. <input class="form-control" type="text" name="mobile_no" value="{{ $contact['MobileNo'] }}" placeholder="Enter your number" required>
  27. </div>
  28. <button class="form-btn button-prevent-multiple-submits save-prev-scroll-submits" type="submit">
  29. <i class="spinner fa fa-spinner fa-spin"></i>
  30. 저장
  31. </button>
  32. </form>