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.

116 lines
5.7 KiB

  1. @extends('layout.v2')
  2. @section('content')
  3. <div class="container">
  4. <div class="row mt-3">
  5. <div class="col-lg-10 offset-lg-1">
  6. <h1>{{ $mainTitle }}</h1>
  7. </div>
  8. </div>
  9. <form method="post" action="{{ route('011-connections.post') }}" accept-charset="UTF-8" id="store">
  10. <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
  11. <div class="row mt-3">
  12. <div class="col-lg-10 offset-lg-1">
  13. <div class="card">
  14. <div class="card-header">
  15. {{ $subTitle }}
  16. </div>
  17. <div class="card-body">
  18. <p>Select the connection to use or make a new connection</p>
  19. <p>
  20. Spectre creates connections; a representation of the connection to your financial
  21. institution.
  22. Select below which one the importer must use, or opt to create a new connection if no
  23. connections are visible.
  24. Please read
  25. <a href="https://docs.firefly-iii.org/"
  26. target="_blank"> the documentation for this page</a> if you want to know more.
  27. </p>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="row mt-3">
  33. <div class="col-lg-10 offset-lg-1">
  34. <div class="card">
  35. <div class="card-header">
  36. Connections
  37. </div>
  38. <div class="card-body">
  39. <table class="table table-bordered table-striped">
  40. <thead>
  41. <tr>
  42. <th>&nbsp;</th>
  43. <th>Bank</th>
  44. <th>Last used</th>
  45. <th>Status</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. @foreach($list as $item)
  50. <tr>
  51. <td>
  52. <input
  53. id="{{ $item->id }}"
  54. type="radio"
  55. name="spectre_connection_id"
  56. value="{{ $item->id }}"
  57. @if('disabled' === $item->status) disabled @endif
  58. @if($configuration->getConnection() === $item->id) checked @endif
  59. @if(1 === count($list)) checked @endif
  60. >
  61. </td>
  62. <td>
  63. <label for="{{ $item->id }}">
  64. {{ $item->providerName }} ({{ $item->countryCode }})
  65. </label>
  66. </td>
  67. <td>
  68. Last success: {{ $item->lastSuccess->format("Y-m-d H:i:s") }}<br>
  69. Updated at: {{ $item->updatedAt->format("Y-m-d H:i:s") }}<br>
  70. </td>
  71. <td>
  72. {{ $item->status }}
  73. </td>
  74. </tr>
  75. @endforeach
  76. <tr>
  77. <td>
  78. <input id="new_login" type="radio" name="spectre_connection_id" value="00"
  79. @if(0 === $configuration->getConnection()) checked @endif
  80. >
  81. </td>
  82. <td colspan="3">
  83. <label for="new_login"><em>
  84. Create a new connection
  85. </em>
  86. </label>
  87. </td>
  88. </tr>
  89. </tbody>
  90. </table>
  91. <button type="submit" class="btn btn-primary float-end">Submit &rarr;</button>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <!-- end of selection -->
  97. <div class="row mt-3">
  98. <div class="col-lg-10 offset-lg-1">
  99. <div class="card">
  100. <div class="card-body">
  101. <div class="btn-group btn-group-sm">
  102. <a href="{{ route('back.upload') }}" class="btn btn-secondary"><span
  103. class="fas fa-arrow-left"></span> Go back to upload</a>
  104. <a href="{{ route('flush') }}" class="btn btn-danger text-white btn-sm"><span
  105. class="fas fa-redo-alt"></span> Start over</a>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </form>
  112. </div>
  113. @endsection
  114. @section('scripts')
  115. @endsection