unmapped-sms.blade.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends ('layouts/template')
  2. @section('content')
  3. <div class="p-3 mcp-theme-1">
  4. <div class="card">
  5. <div class="card-header px-2 py-1 d-flex align-items-center">
  6. <strong class="mr-4">
  7. <i class="fas fa-user"></i>
  8. Unmapped SMS
  9. </strong>
  10. {{--<select class="ml-auto max-width-300px form-control form-control-sm" onchange="fastLoad('/patients/' + this.value, true, false, false)">
  11. <option value="" {{ $filter === '' ? 'selected' : '' }}>All patients</option>
  12. <option value="not-yet-seen" {{ $filter === 'not-yet-seen' ? 'selected' : '' }}>Patients I have not seen yet</option>
  13. </select>--}}
  14. </div>
  15. <div class="card-body p-0">
  16. <table class="table table-sm table-striped p-0 m-0">
  17. <thead class="bg-light">
  18. <tr>
  19. <th class="px-3 border-0 w-25">Date &amp; Time</th>
  20. <th class="border-0">From</th>
  21. <th class="border-0 w-50">Content</th>
  22. <th class="border-0 w-25">&nbsp;</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. @foreach($unmappedSMS as $sms)
  27. <tr>
  28. <td class="px-3">{{ friendly_date_time($sms->created_at, true) }}</td>
  29. <td>{{ $sms->from_number }}</td>
  30. <td>{{ $sms->body }}</td>
  31. <td>
  32. <div moe>
  33. <a start show>Map to Client</a>
  34. <form url="/api/clientSms/assignIncomingSmsToClient">
  35. <input type="hidden" name="uid" value="{{$sms->uid}}">
  36. <div class="form-group mb-2">
  37. <label for="" class="text-secondary text-sm mb-1">Client</label>
  38. <select name="clientUid" class="form-control form-control-sm">
  39. <option value=""> --select-- </option>
  40. @foreach($patients as $patient)
  41. <option value="{{$patient->uid}}">{{$patient->displayName()}}</option>
  42. @endforeach
  43. </select>
  44. </div>
  45. <div class="form-group m-0">
  46. <button submit class="btn btn-primary btn-sm">submit</button>
  47. </div>
  48. </form>
  49. </div>
  50. </td>
  51. </tr>
  52. @endforeach
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. <div class="mt-2">
  58. {{$unmappedSMS->links()}}
  59. </div>
  60. </div>
  61. @endsection