You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-8 col-md-offset-2">
  6. @if(session('status'))
  7. <div class="alert alert-{{ session('status') }}" role="alert">{!! session('status-message') !!}</div>
  8. @endif
  9. <form action="{{ route('sms-send') }}" method="post">
  10. <h3>Broadcast a Message</h3>
  11. <p>Enter a message to send. The message length is limited based on the longest person's name. To include the person's name, enter the placeholder <code>{name}</code>.</p>
  12. <div class="form-group">
  13. <textarea name="text" class="form-control" rows="2" maxlength="{{ $maxlen }}">Hi {name}!</textarea>
  14. </div>
  15. <button type="submit" class="btn btn-primary">Broadcast</button>
  16. {{ csrf_field() }}
  17. </form>
  18. <form action="{{ route('sms-save') }}" method="post">
  19. <h3>Phone Numbers</h3>
  20. <p>Enter your phone number database, one person per line. First name followed by their phone number. Numbers will be normalized to US format when saved.</p>
  21. <div class="form-group">
  22. <textarea name="input" class="form-control" rows="8">
  23. @foreach($numbers as $number)
  24. {{ $number->name }} {{ $number->phone }}
  25. @endforeach</textarea>
  26. </div>
  27. <button type="submit" class="btn btn-primary">Save</button>
  28. {{ csrf_field() }}
  29. </form>
  30. </div>
  31. </div>
  32. </div>
  33. @endsection